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

Comparing ray/src/util/rad.c (file contents):
Revision 2.4 by greg, Fri Mar 12 13:37:03 1993 UTC vs.
Revision 2.6 by greg, Tue Mar 30 13:16:26 1993 UTC

# Line 94 | Line 94 | int    (*setqopts[3])() = {lowqopts, medqopts, hiqopts};
94  
95   #define renderopts      (*setqopts[vscale(QUALITY)])
96  
97 +                                /* overture calculation file */
98 + #ifdef NIX
99 + char    overfile[] = "overture.raw";
100 + #else
101 + char    overfile[] = "/dev/null";
102 + #endif
103 +
104   extern long     fdate(), time();
105  
106   long    scenedate;              /* date of latest scene or object file */
# Line 664 | Line 671 | register char  *op;
671          else
672                  op = addarg(op, "-ds .3");
673          op = addarg(op, "-dt .1 -dc .5 -dr 1 -sj .7 -st .15");
674 <        sprintf(op, " -ab %d", overture=vint(INDIRECT));
675 <        op += strlen(op);
674 >        if (overture = vint(INDIRECT)) {
675 >                sprintf(op, " -ab %d", overture);
676 >                op += strlen(op);
677 >        }
678          if (vdef(AMBFILE)) {
679                  sprintf(op, " -af %s", vval(AMBFILE));
680                  op += strlen(op);
# Line 1045 | Line 1054 | char   *opts;
1054                                  sprintf(combuf,
1055                                  "rpict%s %s%s -x 64 -y 64 -ps 1 %s > %s",
1056                                                  rep, vw, opts,
1057 <                                                vval(OCTREE), rawfile);
1057 >                                                vval(OCTREE), overfile);
1058                                  if (runcom(combuf)) {
1059                                          fprintf(stderr,
1060 <                        "%s: error in overture for view %s\n\t%s removed\n",
1061 <                                                progname, vs, rawfile);
1053 <                                        unlink(rawfile);
1060 >                                        "%s: error in overture for view %s\n",
1061 >                                                progname, vs);
1062                                          exit(1);
1063                                  }
1064 + #ifdef NIX
1065 +                                rmfile(overfile);
1066 + #endif
1067                          }
1068                          sprintf(combuf, "rpict%s %s %s%s %s > %s",
1069                                          rep, vw, res, opts,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines