home *** CD-ROM | disk | FTP | other *** search
- : Usage: anim.sh 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
-
- makeanim $1 $1
- i=0
- echo $1_$i.dat
- while test -r $1_$i.dat
- do
- pvray -i$1_$i.dat -o$1_$i.tga -l../ +a -q9 +ft -w320 -h200 -c
- times
- rm $1_$i.dat
- i="`expr $i + 1`"
- done
- heckbert -t=1 -i=1 -s=0 -n=$i $1
- rm $1*.tga
- animfli $1 $1
- rm $1.[0-9]*
- times
-