forked from tTh/FloatImg
31 lines
488 B
Bash
Executable File
31 lines
488 B
Bash
Executable File
#!/bin/bash
|
|
|
|
src="/dev/shm/foo.fimg"
|
|
dst="hf.tga"
|
|
|
|
POVOPT="-w512 -h342 +q9 -a "
|
|
|
|
rm /tmp/hf???.png
|
|
|
|
for idx in $(seq 0 24)
|
|
do
|
|
|
|
echo "========================== " $idx
|
|
|
|
grabvidseq -v \
|
|
-d /dev/video0 -s 640x480 \
|
|
-n 20 -p 0 \
|
|
-o ${src}
|
|
|
|
./fimg2povhf $src $dst
|
|
|
|
out=$(printf "/tmp/hf%03d.png" $idx)
|
|
echo "raytracing " ${POVOPT} $out
|
|
povray -iscene.pov ${POVOPT} -o${out} 2> pov.stderr
|
|
# tail -15 pov.stderr
|
|
|
|
done
|
|
|
|
convert -delay 10 -colors 240 /tmp/hf???.png foo.gif
|
|
|