diff --git a/BloubWorld/runme.sh b/BloubWorld/runme.sh index 59ce2b0..561762f 100755 --- a/BloubWorld/runme.sh +++ b/BloubWorld/runme.sh @@ -7,8 +7,9 @@ INCFILE="bloubs.inc" TMPPNG="/dev/shm/bloubs7.png" -POVOPT="+Q9 -v -d -W640 -H480" +POVOPT="+Q9 +a -v -d -W640 -H480" DDIR="frames" +LOGERR="log.error" make all err=$? @@ -22,37 +23,38 @@ fi # ./genbloubs in.blbs 10000 -for idx in $(seq 0 40) +for idx in $(seq 0 50) do echo "======== run passe $idx =========" ./exportbloubs in.blbs | awk -f toinc.awk > $INCFILE - povray -Iscene.pov -K${idx} -O${TMPPNG} ${POVOPT} 2> toto + povray -Iscene.pov -K${idx} -O${TMPPNG} ${POVOPT} 2> $LOGERR grep "Trace Tim" toto txt=$(date +'%F %R:%S') PNG=$(printf "%s/%05d.png" ${DDIR} $idx) - echo $PNG $txt + echo $txt convert ${TMPPNG} \ -font fixed \ - -pointsize 12 \ + -pointsize 14 \ -fill orange \ -gravity south-east \ - -annotate +10+10 "$txt" \ + -annotate +15+10 "$txt" \ $PNG + echo $PNG '[done]' + ./movebloubs in.blbs out.blbs + mv out.blbs in.blbs + echo - cp out.blbs in.blbs - - sleep 2 ; echo done -rm toto +rm $LOGERR -convert -delay 10 -colors 32 $DDIR/*.png foo.gif +convert -delay 10 -colors 192 $DDIR/*.png foo.gif diff --git a/BloubWorld/scene.pov b/BloubWorld/scene.pov index 0cb0f4b..c6fa6e6 100644 --- a/BloubWorld/scene.pov +++ b/BloubWorld/scene.pov @@ -25,16 +25,35 @@ plane { <0, 1, 0>, 0 texture { pigment { color Gray10 } - finish { phong 0.58 metallic 0.45 } + finish { phong 0.18 metallic 0.45 } } } -light_source { <4, 1, -9> color White } -light_source { <4, 9, 9> color White } +// ---------------------------------------------------------- + +#declare Les_Bornes = object +{ +#declare BH = 5; +#declare BV = 3; +#declare BR = 0.02; +union { + cylinder { <-BH, 0, -BH>, <-BH, BV, -BH>, BR pigment { color Blue } } + cylinder { < BH, 0, -BH>, < BH, BV, -BH>, BR pigment { color Green } } + cylinder { <-BH, 0, BH>, <-BH, BV, BH>, BR pigment { color Green } } + cylinder { < BH, 0, BH>, < BH, BV, BH>, BR pigment { color Red } } + } +} + +object { Les_Bornes } + +// ---------------------------------------------------------- + +light_source { <4, 12, -11> color Gray80 } +light_source { <4, 9, 9> color White } camera { - location <1, 3, -5> + location <7, 5, -16> look_at <0, 0, 0> right x*image_width/image_height - angle 48 + angle 54 }