Compare commits

..

No commits in common. "c61251ad53e2b379dde2d441a55d3db0d93adf85" and "a8d1e18650f35d8a6c3d35ff0a28570c0118688d" have entirely different histories.

4 changed files with 12 additions and 14 deletions

View File

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

View File

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

View File

@ -5,7 +5,7 @@
COPT = -Wall -fpic -g -DDEBUG_LEVEL=1 -lm COPT = -Wall -fpic -g -DDEBUG_LEVEL=1 -lm
DEPS = ../floatimg.h ../libfloatimg.a Makefile DEPS = ../floatimg.h ../libfloatimg.a Makefile
LIBS = ../libfloatimg.a -ltiff -lpnglite -lcfitsio -lm LIBS = ../libfloatimg.a -ltiff -lpnglite -lcfitsio
all: assemblage extracteur muxplanes movepixels all: assemblage extracteur muxplanes movepixels

View File

@ -63,7 +63,7 @@ if (fimg_images_not_compatible(src, dst)) {
return -98; return -98;
} }
if (verbosity > 1) { if (verbosity) {
fimg_show_filter("essai", filtr); fimg_show_filter("essai", filtr);
} }