--- ray/src/rt/rview.c 1989/06/07 21:00:54 1.3 +++ ray/src/rt/rview.c 1989/07/29 00:11:31 1.6 @@ -29,13 +29,14 @@ double exposure = 1.0; /* exposure for scene */ double dstrsrc = 0.0; /* square source distribution */ double shadthresh = .1; /* shadow threshold */ +double shadcert = .25; /* shadow certainty */ int maxdepth = 4; /* maximum recursion depth */ double minweight = 1e-2; /* minimum ray weight */ COLOR ambval = BLKCOLOR; /* ambient value */ double ambacc = 0.2; /* ambient accuracy */ -int ambres = 64; /* ambient resolution */ +int ambres = 8; /* ambient resolution */ int ambdiv = 32; /* ambient divisions */ int ambssamp = 0; /* ambient super-samples */ int ambounce = 0; /* ambient bounces */ @@ -67,21 +68,22 @@ int code; devopen(dname) /* open device driver */ char *dname; { - extern char *progname; + extern char *progname, *octname; char *devargv[3]; register int i; + + devargv[0] = dname; + devargv[1] = octname!=NULL ? octname : progname; + devargv[2] = NULL; /* check device table */ for (i = 0; devtable[i].name; i++) if (!strcmp(dname, devtable[i].name)) - if ((dev = (*devtable[i].init)(progname)) == NULL) { + if ((dev = (*devtable[i].init)(devargv[1])) == NULL) { sprintf(errmsg, "cannot initialize %s", dname); error(USER, errmsg); } else return; /* not there, try exec */ - devargv[0] = dname; - devargv[1] = progname; - devargv[2] = NULL; if ((dev = comm_init(devargv)) == NULL) { sprintf(errmsg, "cannot start device \"%s\"", dname); error(USER, errmsg);