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 2.6 by gwlarson, Wed Jun 10 17:50:49 1998 UTC vs.
Revision 2.12 by greg, Tue Jan 13 22:19:25 2009 UTC

# Line 1 | Line 1
1   #!/bin/csh -f
2 < # SCCSid "$SunId$ SGI"
2 > # RCSid: $Id$
3   #
4   # Make a nice view of an object
5   # Arguments are scene input files
6   #
7 < set tmpdir=/usr/tmp
7 > set tmpdir=/tmp
8   set octree=$tmpdir/ov$$.oct
9   set lights=$tmpdir/lt$$.rad
10   set rif=$tmpdir/ov$$.rif
11 < set tmpfiles="$octree $lights $rif"
11 > set ambf=$tmpdir/af$$.amb
12 > set tmpfiles="$octree $lights $rif $ambf"
13 > set raddev="x11"
14   set up="Z"
15   set vw="XYZ"
16 + set rendopts=""
17   set opts=""
18   while ($#argv > 0)
19          switch ($argv[1])
20 <        case -g:
20 >        case -g*:
21                  set usegl
22                  breaksw
23          case -u:
# Line 25 | Line 28 | while ($#argv > 0)
28          case -w:
29                  set opts=($opts $argv[1])
30                  breaksw
31 +        case -b*:
32 +                set rendopts=($rendopts -bv)
33 +                breaksw
34          case -v:
35                  shift argv
36 <                set vw=$argv[1]
36 >                set vw="$argv[1]"
37                  breaksw
38 +        case -N:
39 +                shift argv
40 +                set opts=($opts -N $argv[1])
41 +                set radopt
42 +                breaksw
43          case -o:
44                  shift argv
45 <                set opts=($opts -o $argv[1])
45 >                set raddev="$argv[1]"
46                  set radopt
47                  breaksw
48          case -V:
# Line 40 | Line 51 | while ($#argv > 0)
51                  set radopt
52                  breaksw
53          case -S:
43        case -b:
54                  set opts=($opts $argv[1])
55                  set glradopt
56                  breaksw
57          case -*:
58                  echo "Bad option: $argv[1]"
59                  exit 1
50                breaksw
60          default:
61                  break
62          endsw
# Line 89 | Line 98 | UP= $up
98   view= $vw
99   OCTREE= $octree
100   oconv= -f
101 + AMBF= $ambf
102 + render= $rendopts
103   _EOF_
104  
105   if ( $?usegl ) then
106          glrad $opts $rif
107   else
108 <        rad -o x11 $opts $rif
108 >        rad -o $raddev $opts $rif
109   endif
110  
111   quit:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines