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.45 by greg, Fri Mar 15 21:02:09 1996 UTC vs.
Revision 2.48 by gregl, Mon Oct 20 16:46:37 1997 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1995 Regents of the University of California */
1 > /* Copyright (c) 1996 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 62 | Line 62 | int  directvis = 1;                    /* sources visible? */
62   double  srcsizerat = .25;               /* maximum ratio source size/dist. */
63  
64   COLOR  cextinction = BLKCOLOR;          /* global extinction coefficient */
65 < double  salbedo = 0.;                   /* global scattering albedo */
65 > COLOR  salbedo = BLKCOLOR;              /* global scattering albedo */
66   double  seccg = 0.;                     /* global scattering eccentricity */
67   double  ssampdist = 0.;                 /* scatter sampling distance */
68  
# Line 102 | Line 102 | extern unsigned long  nrays;           /* number of rays traced
102  
103   #define  pixjitter()    (.5+dstrpix*(.5-frandom()))
104  
105 < static int  hres, vres;                 /* resolution for this frame */
105 > int  hres, vres;                        /* resolution for this frame */
106  
107   extern char  *mktemp();
108  
# Line 403 | Line 403 | char  *zfile, *oldfile;
403          else
404   #endif
405          signal(SIGCONT, report);
406 <        ypos = vres-1 - i;
406 >        ypos = vres-1 - i;                      /* initialize sampling */
407 >        if (directvis)
408 >                init_drawsources(psample);
409          fillscanline(scanbar[0], zbar[0], sampdens, hres, ypos, hstep);
410                                                  /* compute scanlines */
411          for (ypos -= ystep; ypos > -ystep; ypos -= ystep) {
# Line 423 | Line 425 | char  *zfile, *oldfile;
425                                  hres, ypos, hstep);
426                                                          /* fill bar */
427                  fillscanbar(scanbar, zbar, hres, ypos, ystep);
428 <                                                        /* add bitty sources */
429 <                drawsources(&ourview, hres, vres, scanbar, zbar,
428 <                                0, hres, ypos, ystep, psample);
428 >                if (directvis)                          /* add bitty sources */
429 >                        drawsources(scanbar, zbar, 0, hres, ypos, ystep);
430                                                          /* write it out */
431   #ifndef  BSD
432                  signal(SIGCONT, SIG_IGN);       /* don't interrupt writes */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines