X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=visualize;h=665cb67a3a925cbbd76b21d536ec722da6a08613;hb=fded518c681aadf28947fe73b0023290e129614b;hp=7dc964ea638e8053330f70b07b85a645687ebaa4;hpb=42cf5612e9b7a14314b5dd295d692ebe19ecd295;p=physik%2Fposic.git diff --git a/visualize b/visualize index 7dc964e..665cb67 100755 --- a/visualize +++ b/visualize @@ -31,7 +31,7 @@ width="640" height="480" radius="0.6" x0="-0.6"; y0="-0.6"; z0="-0.6"; -x1="+0.6"; y1="+0.6"; z1="+0.6"; +x1="0.6"; y1="0.6"; z1="0.6"; cx=""; cy=""; cz=""; lx="0"; ly="-100"; lz="100"; ortographic="" @@ -92,6 +92,7 @@ done [ "$lc" = "c" ] && lc=3.566 offset=`echo 0.125 \* $lc | bc` +#offset=0.0 x0=`echo $x0 \* $lc + $offset | bc` y0=`echo $y0 \* $lc + $offset | bc` @@ -123,6 +124,11 @@ fi POVRAY="povray -W${width} -H${height} -d" +# convert options + +COPTS="-font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf" +COPTS="$COPTS -depth 8 -fill white -stroke blue -pointsize 24" + # do it ... if [ -d $directory ]; then @@ -281,6 +287,8 @@ EOF # mv png $POVRAY temp.pov > /dev/null 2>&1 + time=`echo $file | awk -F. '{ print $1 }' | awk -F_ '{ print $3 }'` + convert $COPTS -draw "text 5,20 't = $time fs'" temp.png temp.png mv temp.png `echo $file | sed 's/\.xyz/\.png/'` done