--- ray/src/util/compamb.csh 1998/10/16 17:31:06 3.3 +++ ray/src/util/compamb.csh 2005/02/16 05:40:11 3.6 @@ -1,5 +1,5 @@ #!/bin/csh -f -# SCCSid "$SunId$ SGI" +# RCSid: $Id: compamb.csh,v 3.6 2005/02/16 05:40:11 greg Exp $ # # Compute best ambient value for a scene and append to rad input file # @@ -22,7 +22,7 @@ if ( $#argv != 1 ) then exit 1 endif onintr quit -set tf=/usr/tmp/ca$$ +set tf=/tmp/ca$$ set oct=`rad -w -s -e -v 0 $argv[1] QUA=High AMB=$tf.amb OPT=$tf.opt | sed -n 's/^OCTREE= //p'` rad -n -s -V $argv[1] \ | rpict @$tf.opt -av 0 0 0 -aw 16 -dv- -S 1 -x 16 -y 16 -ps 1 $oct \ @@ -30,7 +30,7 @@ rad -n -s -V $argv[1] \ echo \# Rad input file modified by $0 `date` >> $argv[1] if ( $?doexpos ) then (echo -n 'EXPOSURE= '; \ - total -u $tf.dat | rcalc -e '$1=1/(.265*$1+.670*$2+.065*$3)') \ + total -u $tf.dat | rcalc -e '$1=2/(.265*$1+.670*$2+.065*$3)') \ >> $argv[1] endif lookamb -h -d $tf.amb | rcalc -e '$1=$10;$2=$11;$3=$12' >> $tf.dat