ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rv2.c
(Generate patch)

Comparing ray/src/rt/rv2.c (file contents):
Revision 2.7 by greg, Tue Feb 18 16:38:51 1992 UTC vs.
Revision 2.10 by greg, Fri Oct 2 16:19:43 1992 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1992 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 65 | Line 65 | char  *s;
65          int  change = 0;
66          VIEW  nv;
67  
68 +        while (isspace(*s))
69 +                s++;
70 +        if (*s == '-') {                        /* command line parameters */
71 +                copystruct(&nv, &ourview);
72 +                if (sscanview(&nv, s))
73 +                        newview(&nv);
74 +                else
75 +                        error(COMMAND, "bad view option(s)");
76 +                return;
77 +        }
78          if (sscanf(s, "%s", buf) == 1) {        /* write parameters to a file */
79                  if ((fname = getpath(buf, NULL, 0)) == NULL ||
80                                  (fp = fopen(fname, "a")) == NULL) {
# Line 176 | Line 186 | char  *s;
186   getaim(s)                               /* aim camera */
187   char  *s;
188   {
179        extern double  tan(), atan();
189          double  zfact;
190          VIEW  nv;
191  
# Line 207 | Line 216 | char  *s;
216   getrotate(s)                            /* rotate camera */
217   char  *s;
218   {
210        extern double  normalize(), tan(), atan();
219          VIEW  nv;
220          FVECT  v1;
221          double  angle, elev, zfact;
# Line 386 | Line 394 | register char  *s;
394          extern double  shadcert;
395          extern COLOR  ambval;
396          extern double  ambacc;
389        extern double  minarad;
397          extern int  ambres;
398          extern int  ambdiv;
399          extern int  ambssamp;
# Line 464 | Line 471 | register char  *s;
471                          break;
472                  case 'r':
473                          if (getparam(s+2, "ambient resolution", 'i', &ambres))
474 <                                minarad = ambres > 0 ?
468 <                                                thescene.cusize/ambres : 0.0;
474 >                                setambres(ambres);
475                          break;
476                  default:
477                          goto badparam;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines