fine tuning the 3d contrib

This commit is contained in:
tTh 2022-01-09 09:32:39 +01:00
parent a8d1e18650
commit 4c38ff032a
2 changed files with 12 additions and 10 deletions

View File

@ -2,29 +2,30 @@
src="/dev/shm/foo.fimg"
dst="hf.tga"
TMPDIR=${HOME}/TMP
POVOPT="-w512 -h342 +q9 -a "
rm /tmp/hf???.png
rm $TMPDIR/hf???.png
for idx in $(seq 0 24)
for idx in $(seq 0 60)
do
echo "========================== " $idx
grabvidseq -v \
-d /dev/video0 -s 640x480 \
-n 20 -p 0 \
-n 60 -p 1.0 \
-o ${src}
./fimg2povhf $src $dst
out=$(printf "/tmp/hf%03d.png" $idx)
out=$(printf "%s/hf%03d.png" $TMPDIR $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
convert -delay 10 -colors 240 $TMPDIR/hf???.png foo.gif

View File

@ -13,14 +13,14 @@ global_settings {
height_field {
tga "hf.tga"
smooth
pigment { color Orange*0.5 }
pigment { color Orange*0.7 }
translate <-0.5, 0, -0.5>
scale 2
translate y*0.01
// scale 2
translate y*0.002
}
camera {
location <-0.86, 3, -6.20>
location <-0.86, 4, -6.20>
look_at <0, 0, 0>
angle 14
}
@ -37,4 +37,5 @@ plane {
}
light_source { <-9, 2, -3> color White }
light_source { <-9, 2, 3> color White }