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 2.2 by greg, Thu Nov 21 10:10:46 1991 UTC vs.
Revision 2.5 by greg, Tue Jan 14 16:15:57 1992 UTC

# Line 47 | Line 47 | int  vspretest = 512;                  /* virtual source pretest dens
47   int  directinvis = 0;                   /* sources invisible? */
48   double  srcsizerat = .25;               /* maximum ratio source size/dist. */
49  
50 + double  specthresh = .5;                /* specular sampling threshold */
51 + double  specjitter = 1.;                /* specular sampling jitter */
52 +
53   int  maxdepth = 6;                      /* maximum recursion depth */
54   double  minweight = 5e-3;               /* minimum ray weight */
55  
# Line 108 | Line 111 | report()               /* report progress */
111   #else
112   report()                /* report progress */
113   {
111        signal(SIGALRM, report);
114          tlastrept = time((long *)0);
115          sprintf(errmsg, "%ld rays, %4.2f%% done after %5.4f hours\n",
116                          nrays, pctdone, (tlastrept-tstart)/3600.0);
117          eputs(errmsg);
118 +        signal(SIGALRM, report);
119   }
120   #endif
121  
# Line 277 | Line 280 | int  xres, y, xstep;
280                  z = pixvalue(scanline[i], i, y);
281                  if (zline) zline[i] = z;
282                  if (sd) b = sd[0] > sd[1] ? sd[0] : sd[1];
283 <                b = fillsample(scanline+i-xstep, zline ? zline+i-xstep : NULL,
284 <                                i-xstep, y, xstep, 0, b/2);
283 >                if (i <= xstep)
284 >                        b = fillsample(scanline, zline, 0, y, i, 0, b/2);
285 >                else
286 >                        b = fillsample(scanline+i-xstep,
287 >                                        zline ? zline+i-xstep : NULL,
288 >                                        i-xstep, y, xstep, 0, b/2);
289                  if (sd) *sd++ = nc & 1 ? bl : b;
290                  bl = b;
291          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines