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.37 by greg, Wed Dec 22 21:03:54 1993 UTC vs.
Revision 2.40 by greg, Wed Dec 21 09:51:56 1994 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1993 Regents of the University of California */
1 > /* Copyright (c) 1994 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 67 | Line 67 | double srcsizerat = .25;               /* maximum ratio source size
67   double  specthresh = .15;               /* specular sampling threshold */
68   double  specjitter = 1.;                /* specular sampling jitter */
69  
70 + int  backvis = 1;                       /* back face visibility */
71 +
72   int  maxdepth = 6;                      /* maximum recursion depth */
73   double  minweight = 5e-3;               /* minimum ray weight */
74  
# Line 500 | Line 502 | int  xres, y, xstep;
502                          b = fillsample(scanline, zline, 0, y, i, 0, b/2);
503                  else
504                          b = fillsample(scanline+i-xstep,
505 <                                        zline ? zline+i-xstep : NULL,
505 >                                        zline ? zline+i-xstep : (float *)NULL,
506                                          i-xstep, y, xstep, 0, b/2);
507                  if (sd) *sd++ = nc & 1 ? bl : b;
508                  bl = b;
# Line 528 | Line 530 | int  xres, y, ysize;
530                          zline[ysize] = zbar[ysize][i];
531                  }
532                  
533 <                b = fillsample(vline, zbar[0] ? zline : NULL,
533 >                b = fillsample(vline, zbar[0] ? zline : (float *)NULL,
534                                  i, y, 0, ysize, b/2);
535                  
536                  for (j = 1; j < ysize; j++)
# Line 586 | Line 588 | int  b;
588                                                          /* recurse */
589          ncut += fillsample(colline, zline, x, y, xlen>>1, ylen>>1, (b-1)/2);
590          
591 <        ncut += fillsample(colline+(len>>1), zline ? zline+(len>>1) : NULL,
591 >        ncut += fillsample(colline+(len>>1),
592 >                        zline ? zline+(len>>1) : (float *)NULL,
593                          x+(xlen>>1), y+(ylen>>1),
594                          xlen-(xlen>>1), ylen-(ylen>>1), b/2);
595  
# Line 601 | Line 604 | int  x, y;                     /* pixel position */
604   {
605          static RAY  thisray;
606  
607 <        if (viewray(thisray.rorg, thisray.rdir, &ourview,
608 <                        (x+pixjitter())/hres, (y+pixjitter())/vres) < 0) {
607 >        if ((thisray.rmax = viewray(thisray.rorg, thisray.rdir, &ourview,
608 >                        (x+pixjitter())/hres, (y+pixjitter())/vres)) < -FTINY) {
609                  setcolor(col, 0.0, 0.0, 0.0);
610                  return(0.0);
611          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines