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

Comparing ray/src/rt/rview.c (file contents):
Revision 1.2 by greg, Wed Jun 7 08:35:29 1989 UTC vs.
Revision 1.6 by greg, Sat Jul 29 00:11:31 1989 UTC

# Line 28 | Line 28 | double  maxdiff = .15;                 /* max. sample difference */
28   double  exposure = 1.0;                 /* exposure for scene */
29  
30   double  dstrsrc = 0.0;                  /* square source distribution */
31 < double  shadthresh = .05;               /* shadow threshold */
31 > double  shadthresh = .1;                /* shadow threshold */
32 > double  shadcert = .25;                 /* shadow certainty */
33  
34   int  maxdepth = 4;                      /* maximum recursion depth */
35   double  minweight = 1e-2;               /* minimum ray weight */
36  
37   COLOR  ambval = BLKCOLOR;               /* ambient value */
38   double  ambacc = 0.2;                   /* ambient accuracy */
39 < int  ambres = 64;                       /* ambient resolution */
39 > int  ambres = 8;                        /* ambient resolution */
40   int  ambdiv = 32;                       /* ambient divisions */
41   int  ambssamp = 0;                      /* ambient super-samples */
42   int  ambounce = 0;                      /* ambient bounces */
# Line 67 | Line 68 | int  code;
68   devopen(dname)                          /* open device driver */
69   char  *dname;
70   {
71 <        extern char  *progname;
71 >        extern char  *progname, *octname;
72          char  *devargv[3];
73          register int  i;
74 +
75 +        devargv[0] = dname;
76 +        devargv[1] = octname!=NULL ? octname : progname;
77 +        devargv[2] = NULL;
78                                                  /* check device table */
79          for (i = 0; devtable[i].name; i++)
80                  if (!strcmp(dname, devtable[i].name))
81 <                        if ((dev = (*devtable[i].init)(progname)) == NULL) {
81 >                        if ((dev = (*devtable[i].init)(devargv[1])) == NULL) {
82                                  sprintf(errmsg, "cannot initialize %s", dname);
83                                  error(USER, errmsg);
84                          } else
85                                  return;
86                                                  /* not there, try exec */
82        devargv[0] = dname;
83        devargv[1] = progname;
84        devargv[2] = NULL;
87          if ((dev = comm_init(devargv)) == NULL) {
88                  sprintf(errmsg, "cannot start device \"%s\"", dname);
89                  error(USER, errmsg);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines