--- ray/src/util/rad.c 1993/09/24 16:49:02 2.26 +++ ray/src/util/rad.c 1993/10/30 10:47:05 2.29 @@ -437,9 +437,13 @@ int pred; register int n; int suffix; - suffix = n = strlen(orig); /* find start of suffix */ - if ((cp = rindex(orig, '.')) != NULL) - suffix = cp - orig; + n = 0; cp = orig; suffix = -1; /* suffix position, length */ + while (*cp) { + if (*cp == '.') suffix = n; + else if (ISDIRSEP(*cp)) suffix = -1; + cp++; n++; + } + if (suffix == -1) suffix = n; if ((cp = bmalloc(n+2)) == NULL) syserr(progname); strncpy(cp, orig, suffix); @@ -828,7 +832,7 @@ register char *op; } op = addarg(op, "-pt .08"); if (vbool(PENUMBRAS)) - op = addarg(op, "-ds .2 -dj .35"); + op = addarg(op, "-ds .2 -dj .5"); else op = addarg(op, "-ds .3"); op = addarg(op, "-dt .1 -dc .5 -dr 1 -sj .7 -st .1"); @@ -1219,6 +1223,8 @@ char *opts; sprintf(combuf, "rview %s%s -R %s ", vw, opts, rifname); if (rvdevice != NULL) sprintf(combuf+strlen(combuf), "-o %s ", rvdevice); + if (vdef(EXPOSURE)) + sprintf(combuf+strlen(combuf), "-pe %s ", vval(EXPOSURE)); strcat(combuf, oct1name); if (runcom(combuf)) { /* run it */ fprintf(stderr, "%s: error running rview\n", progname); @@ -1299,7 +1305,7 @@ char *opts; } sprintf(combuf, "rpict%s %s %s%s %s > %s", rep, vw, res, opts, - oct1name, rawfile); + oct1name, rawfile); } if (runcom(combuf)) { /* run rpict */ fprintf(stderr, "%s: error rendering view %s\n",