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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.51 by greg, Sun Feb 5 22:22:20 2006 UTC vs.
Revision 2.54 by greg, Wed Apr 5 14:30:38 2006 UTC

# Line 47 | Line 47 | char  *outvals = "v";                  /* output specification */
47  
48   int  do_irrad = 0;                      /* compute irradiance? */
49  
50 < int  rand_samp = 0;                     /* pure Monte Carlo sampling? */
50 > int  rand_samp = 1;                     /* pure Monte Carlo sampling? */
51  
52   void  (*trace)() = NULL;                /* trace call */
53  
54   char  *tralist[128];                    /* list of modifers to trace (or no) */
55   int  traincl = -1;                      /* include == 1, exclude == 0 */
56   #ifndef  MAXTSET
57 < #define  MAXTSET        1024            /* maximum number in trace set */
57 > #define  MAXTSET        8192            /* maximum number in trace set */
58   #endif
59   OBJECT  traset[MAXTSET+1]={0};          /* trace include/exclude set */
60  
# Line 198 | Line 198 | rtrace(                                /* trace rays from file */
198                                  nextflush = hresolu;
199                          }
200                  } else {
201 <                        samplendx = rand_samp ? random() : samplendx+1;
201 >                        samplendx++;
202                                                          /* compute and print */
203                          if (imm_irrad)
204                                  irrad(orig, direc);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines