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

Comparing ray/src/util/objview.csh (file contents):
Revision 1.1 by greg, Wed Apr 24 18:27:10 1991 UTC vs.
Revision 2.4 by saba, Wed Jan 6 10:46:47 1993 UTC

# Line 2 | Line 2
2   # SCCSid "$SunId$ LBL"
3   #
4   # Make a nice view of an object
5 < # Standard input is description made to fit in unit cube in positive quadrant
5 > # Arguments are scene input files
6   #
7 set objdir=/usr/local/lib/ray/lib
7   set tmpdir=/usr/tmp
9 set vw="-vp 3 3 3 -vd -1 -1 -1 -vh 20 -vv 20"
10 set rview="rview -av .2 .2 .2 $vw $*"
8   set octree=$tmpdir/ov$$.oct
9   set tmpfiles="$octree"
10 + if ( ! $?RVIEW ) set RVIEW="rview"
11   onintr quit
12  
13 < oconv $objdir/testroom - > $octree
14 < $rview $octree
13 > oconv - $argv[*]:q > $octree <<_EOF_
14 > void glow dim 0 0 4 .1 .1 .15 0
15 > dim source background 0 0 4 0 0 1 360
16 > void light bright 0 0 3 1000 1000 1000
17 > bright source sun1 0 0 4 1 .2 1 5
18 > bright source sun2 0 0 4 .3 1 1 5
19 > bright source sun3 0 0 4 -1 -.7 1 5
20 > _EOF_
21 >
22 > set vp=`getinfo -d <$octree|rcalc -e '$1=$1-3.5*$4;$2=$2-3.5*$4;$3=$3+2.5*$4'`
23 >
24 > $RVIEW -av .2 .2 .2 -vp $vp -vd 1 1 -.5 -vv 15 -vh 15 $octree
25  
26   quit:
27   rm -f $tmpfiles

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines