From 4c38ff032acb873980e4a50a3bbdb3664592d5d8 Mon Sep 17 00:00:00 2001 From: tTh Date: Sun, 9 Jan 2022 09:32:39 +0100 Subject: [PATCH] fine tuning the 3d contrib --- contrib/raytrace.sh | 11 ++++++----- contrib/scene.pov | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/contrib/raytrace.sh b/contrib/raytrace.sh index b18fe4eb..2c9f3114 100755 --- a/contrib/raytrace.sh +++ b/contrib/raytrace.sh @@ -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 diff --git a/contrib/scene.pov b/contrib/scene.pov index 1703c7a0..adb74eca 100644 --- a/contrib/scene.pov +++ b/contrib/scene.pov @@ -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 } +