: Usage:   pvq filename

: expects filename.anm and filename.dat to be present
: creates then deletes filename_xxx.dat, filename_xxx.tga, filename_0.xxx
:                         where xxx is in the range 0..??
: creates filename.fli

animdat $1
i=0
echo $1_$i.pov
while test -r $1_$i.pov
do
	nice povray -i$1_$i.pov -o$1_$i.tga +w320 +h200 +ft +l/usr/local/povray +mv1.0 +v
	times
	rm $1_$i.pov
	i="`expr $i + 1`"
done
echo Raytracing finished
times
nice octree  -N=$i $1
animfli $1 $1
times
