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

Comparing ray/src/util/compamb.csh (file contents):
Revision 3.3 by gwlarson, Fri Oct 16 17:31:06 1998 UTC vs.
Revision 3.6 by greg, Wed Feb 16 05:40:11 2005 UTC

# Line 1 | Line 1
1   #!/bin/csh -f
2 < # SCCSid "$SunId$ SGI"
2 > # RCSid: $Id$
3   #
4   # Compute best ambient value for a scene and append to rad input file
5   #
# Line 22 | Line 22 | if ( $#argv != 1 ) then
22          exit 1
23   endif
24   onintr quit
25 < set tf=/usr/tmp/ca$$
25 > set tf=/tmp/ca$$
26   set oct=`rad -w -s -e -v 0 $argv[1] QUA=High AMB=$tf.amb OPT=$tf.opt | sed -n 's/^OCTREE= //p'`
27   rad -n -s -V $argv[1] \
28          | rpict @$tf.opt -av 0 0 0 -aw 16 -dv- -S 1 -x 16 -y 16 -ps 1 $oct \
# Line 30 | Line 30 | rad -n -s -V $argv[1] \
30   echo \# Rad input file modified by $0 `date` >> $argv[1]
31   if ( $?doexpos ) then
32          (echo -n 'EXPOSURE= '; \
33 <                total -u $tf.dat | rcalc -e '$1=1/(.265*$1+.670*$2+.065*$3)') \
33 >                total -u $tf.dat | rcalc -e '$1=2/(.265*$1+.670*$2+.065*$3)') \
34                  >> $argv[1]
35   endif
36   lookamb -h -d $tf.amb | rcalc -e '$1=$10;$2=$11;$3=$12' >> $tf.dat

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines