--- ray/src/util/glare.csh 1991/05/02 16:07:22 1.7 +++ ray/src/util/glare.csh 1991/11/12 12:07:24 1.11 @@ -71,7 +71,10 @@ _EOF_ echo "Cannot read $picture" exit 1 endif - set fgargs=($fgargs -p $picture -vf $picture) + set fgargs=($fgargs -p $picture) + if ( "$view" != "" ) then + set view=(-vf $picture $view) + endif endif set fgargs=($fgargs $view) if ( $octree != $nofile ) then @@ -85,6 +88,10 @@ With an octree, you should give the same options for - so forth as are used to render the scene. Please enter them below. _EOF_ + if ($picture != $nofile) then + echo "These are the parameters from the picture:" + getinfo $picture + endif readvar rtargs set fgargs=($fgargs $rtargs $octree) endif @@ -131,16 +138,16 @@ _EOF_ echo "Starting calculation..." echo findglare $fgargs findglare $fgargs > $glarefile + if ($status) then + echo "Uh-oh. Something went wrong with findglare\!" + rm $glarefile + exit 1 + endif endif if ($?DISPLAY && $picture != $nofile) then echo "" echo "Displaying glare sources in '$picture'..." - xglaresrc $picture $glarefile >& /dev/null - if ($status) then - x11image =+0+0 -g 2.6 $picture & - sleep 40 - xglaresrc $picture $glarefile - endif + xglaresrc $picture $glarefile endif set ndxnam=("Guth Visual Comfort Probability" "Guth Disability Glare Ratio" "CIE Glare Index") set ndxcom=("glarendx -t guth_vcp" "glarendx -t guth_dgr" "glarendx -t cie_cgi")