release of voxel-2

This commit is contained in:
tth
2022-04-10 01:41:42 +02:00
parent 85d6b57eee
commit 694066169c
4 changed files with 35 additions and 24 deletions

View File

@@ -12,34 +12,36 @@ fi
./voxelize > WS/voxels.dat
./vox2inc.awk < WS/voxels.dat > WS/voxels.inc
grep NbrVox WS/voxels.inc
TMPNG="/dev/shm/voxvidz.png"
NBIMG=360
for idx in $( seq 0 $(( NBIMG - 1)) )
do
dst=$(printf "frames/voxel/%05d.png" $idx)
delta=$( echo "scale=3 ; ${idx}/360" | bc -l)
echo "Renderbox work on " $dst " tu" $delta
delta=$( echo "scale=6 ; ${idx}/360" | bc -l)
echo "Renderbox work on "$dst" delta = " $delta
povray -ishowvoxels.pov -K$idx ${POVOPT} \
-O${TMPNG} 2> WS/toto.err
if [ $? -ne 0 ] ; then
echo "ERROR ERROR ERROR ERROR"
echo "ERROR ERROR ERROR ERROR ERROR ERROR"
tail -15 WS/toto.err
sleep 20
#exit 1
fi
titre='>>> Voxelisation - tTh - avril 2022'
titre='Voxelisation - tTh - avril 2022'
numbers=$(tail -1 WS/camvox.log | \
awk '{printf ">>> %6.3f %6.3f %6.3f", $1, $2, $3}')
echo $numbers
awk '{printf " %6.3f %6.3f %6.3f", $1, $2, $3}')
echo "$numbers"
convert ${TMPNG} \
-fill Cyan \
-fill Gray70 \
-kerning 1 \
-pointsize 16 \
-pointsize 24 \
-font AvantGarde-Book \
-gravity South-West \
-annotate +20+32 "$titre" \
@@ -51,4 +53,4 @@ do
done
./encode.sh frames/voxel/ voxel-1.mp4
./encode.sh frames/voxel/ voxel-2.mp4