ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/glare.csh
(Generate patch)

Comparing ray/src/util/glare.csh (file contents):
Revision 1.8 by greg, Fri May 3 10:06:06 1991 UTC vs.
Revision 1.11 by greg, Tue Nov 12 12:07:24 1991 UTC

# Line 71 | Line 71 | _EOF_
71                          echo "Cannot read $picture"
72                          exit 1
73                  endif
74 <                set fgargs=($fgargs -p $picture -vf $picture)
74 >                set fgargs=($fgargs -p $picture)
75 >                if ( "$view" != "" ) then
76 >                        set view=(-vf $picture $view)
77 >                endif
78          endif
79          set fgargs=($fgargs $view)
80          if ( $octree != $nofile ) then
# Line 85 | Line 88 | With an octree, you should give the same options for -
88   so forth as are used to render the scene.  Please enter them below.
89  
90   _EOF_
91 +                if ($picture != $nofile) then
92 +                        echo "These are the parameters from the picture:"
93 +                        getinfo $picture
94 +                endif
95                  readvar rtargs
96                  set fgargs=($fgargs $rtargs $octree)
97          endif
# Line 131 | Line 138 | _EOF_
138          echo "Starting calculation..."
139          echo findglare $fgargs
140          findglare $fgargs > $glarefile
141 +        if ($status) then
142 +                echo "Uh-oh.  Something went wrong with findglare\!"
143 +                rm $glarefile
144 +                exit 1
145 +        endif
146   endif
147   if ($?DISPLAY && $picture != $nofile) then
148          echo ""
149          echo "Displaying glare sources in '$picture'..."
150 <        xglaresrc $picture $glarefile >& /dev/null
139 <        if ($status == 2) then
140 <                echo "Starting ximage..."
141 <                ximage =+0+0 $picture &
142 <                WaitAndTryXglrAgain:
143 <                        sleep 10
144 <                        xglaresrc $picture $glarefile >& /dev/null
145 <                if ($status == 2) goto WaitAndTryXglrAgain
146 <        endif
150 >        xglaresrc $picture $glarefile
151   endif
152   set ndxnam=("Guth Visual Comfort Probability" "Guth Disability Glare Ratio" "CIE Glare Index")
153   set ndxcom=("glarendx -t guth_vcp" "glarendx -t guth_dgr" "glarendx -t cie_cgi")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines