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

Comparing ray/src/rt/rpict.c (file contents):
Revision 1.2 by greg, Mon Apr 10 09:32:55 1989 UTC vs.
Revision 1.7 by greg, Tue Sep 12 12:28:26 1989 UTC

# Line 24 | Line 24 | static char SCCSid[] = "$SunId$ LBL";
24   VIEW  ourview = STDVIEW(512);           /* view parameters */
25  
26   int  psample = 4;                       /* pixel sample size */
27
27   double  maxdiff = .05;                  /* max. difference for interpolation */
29
28   double  dstrpix = 0.67;                 /* square pixel distribution */
29 +
30   double  dstrsrc = 0.0;                  /* square source distribution */
31 + double  shadthresh = .05;               /* shadow threshold */
32 + double  shadcert = .5;                  /* shadow certainty */
33  
34   int  maxdepth = 6;                      /* maximum recursion depth */
35   double  minweight = 5e-3;               /* minimum ray weight */
36  
37   COLOR  ambval = BLKCOLOR;               /* ambient value */
38   double  ambacc = 0.2;                   /* ambient accuracy */
39 < int  ambres = 128;                      /* ambient resolution */
39 > int  ambres = 32;                       /* ambient resolution */
40   int  ambdiv = 128;                      /* ambient divisions */
41   int  ambssamp = 0;                      /* ambient super-samples */
42   int  ambounce = 0;                      /* ambient bounces */
# Line 111 | Line 112 | char  *oldfile;
112          }
113          
114                                          /* write out boundaries */
115 <        printf("-Y %d +X %d\n", ourview.vresolu, ourview.hresolu);
115 >        fputresolu(YMAJOR|YDECR, ourview.hresolu, ourview.vresolu, stdout);
116  
117          ypos = ourview.vresolu - salvage(oldfile);      /* find top line */
118          fillscanline(scanbar[0], ypos, psample);        /* top scan */
# Line 262 | Line 263 | char  *oldfile;
263                                  /* discard header */
264          getheader(fp, NULL);
265                                  /* get picture size */
266 <        if (fscanf(fp, "-Y %d +X %d\n", &y, &x) != 2) {
266 >        if (fgetresolu(&x, &y, fp) != (YMAJOR|YDECR)) {
267                  sprintf(errmsg, "bad recover file \"%s\"", oldfile);
268                  error(WARNING, errmsg);
269                  fclose(fp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines