4 echo "no such directory -> $1"
8 POVRAY="povray -W1024 -H768 -d"
10 echo "processing $1 ..."
12 for file in $1/povray_*.in ; do
15 #include "textures.inc"
24 count=`grep '# \[C\]' $file | awk '{ print $3 }'`
25 time=`grep '# \[T\]' $file | awk '{ print $3 }'`
26 camloc=`grep '# \[L\]' $file | awk '{ print $3 }'`
29 cat $file | grep -v '#' | while read radius x y z ; do #temp dis; do
30 cat >> temp.pov <<-EOF
34 pigment { color Yellow }
45 cat $file | grep '# \[D\]' | while read foo bar x1 y1 z1 x2 y2 z2 ; do
46 cat >> temp.pov <<-EOF
48 <$x1, $z1, $y1>, <$x2, $z2, $y2>, 0.05
49 pigment { color White }
54 # add camera and light source
55 cat >> temp.pov <<-EOF
61 light_source { <0,10000,0> color White shadowless }
65 $POVRAY temp.pov > /dev/null 2>&1
66 mv temp.png `echo $file | sed 's/\.in/\.png/'`