begin of a new era, maybe

This commit is contained in:
tth
2022-03-31 22:14:11 +02:00
parent c47bcfe298
commit 595c6901c9
19 changed files with 208 additions and 274 deletions

View File

@@ -1,12 +1,20 @@
#!/bin/bash
POVOPT=" -d +q9 +a +W1920 +H1080 -v +WT4"
PASS=600
POVOPT=" -d +q9 +a +W1280 +H1024 -v +WT2"
PASS=999
ERR="/tmp/pov.error"
POVINC="WS/pickover.inc"
TMPF="/dev/shm/pickover.png"
make pickover
if [ $? -ne 0 ] ; then
echo
echo "Make error " $?
exit 1
fi
./pickover foo.pgm | awk -f pick2pov.awk > $POVINC
head $POVINC
# head $POVINC
for pass in $(seq 0 $(( PASS-1 )) )
do
@@ -16,18 +24,24 @@ do
povray -ipick3d.pov -K${pass} \
Declare=NBPASS=${PASS} \
$POVOPT -O${dstname} 2> $ERR
$POVOPT -O${TMPF} 2> $ERR
if [ $? -ne 0 ]
then
tail $ERR
tail -20 $ERR
exit
fi
sleep 16
convert ${TMPF} \
-fill Gray50 \
-gravity South-West \
-pointsize 24 \
-annotate +20+10 "tTh" \
$dstname
sleep 10
done
ffmpeg -nostdin \
-loglevel warning \
-y -r 25 -f image2 -i frames/pick3d/%05d.png \