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.52 by greg, Wed Feb 22 17:05:36 2006 UTC vs.
Revision 2.55 by greg, Sat Nov 17 06:21:58 2007 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) */
54 > #ifndef MAXMODLIST
55 > #define MAXMODLIST      1024            /* maximum modifiers we'll track */
56 > #endif
57 >
58 > char  *tralist[MAXMODLIST];             /* list of modifers to trace (or no) */
59   int  traincl = -1;                      /* include == 1, exclude == 0 */
60   #ifndef  MAXTSET
61 < #define  MAXTSET        8192            /* maximum number in trace set */
61 > #define  MAXTSET        8191            /* maximum number in trace set */
62   #endif
63   OBJECT  traset[MAXTSET+1]={0};          /* trace include/exclude set */
64  
# Line 198 | Line 202 | rtrace(                                /* trace rays from file */
202                                  nextflush = hresolu;
203                          }
204                  } else {
205 <                        samplendx = rand_samp ? random() : samplendx+1;
205 >                        samplendx++;
206                                                          /* compute and print */
207                          if (imm_irrad)
208                                  irrad(orig, direc);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines