Fortraneries/Fraktalism/mkvoxvidz.sh

34 lines
564 B
Bash
Executable File

#!/bin/bash
echo
source "./common.sh"
make voxelize
if [ $? -ne 0 ] ; then
echo
echo "Make error " $?
exit 1
fi
./voxelize > WS/voxels.dat
./vox2inc.awk < WS/voxels.dat > WS/voxels.inc
for idx in $(seq 0 359)
do
dst=$(printf "frames/voxel/%05d.png" $idx)
echo "renderbox work on " $dst
povray -ishowvoxels.pov -K$idx ${POVOPT} \
-O${dst} 2> WS/toto.err
if [ $? -ne 0 ] ; then
echo "ERROR ERROR ERROR ERROR"
tail -20 WS/toto.err
exit 1
fi
grep 'Parse Time' WS/toto.err
grep 'Trace Time' WS/toto.err
done
./encode.sh frames/voxel/ foo.mp4