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

Comparing ray/src/rt/rcontrib.c (file contents):
Revision 2.28 by greg, Wed Apr 27 21:11:32 2016 UTC vs.
Revision 2.31 by greg, Fri Feb 23 03:21:24 2018 UTC

# Line 29 | Line 29 | int    do_irrad = 0;                   /* compute irradiance? */
29   int     rand_samp = 1;                  /* pure Monte Carlo sampling? */
30  
31   double  dstrsrc = 0.9;                  /* square source distribution */
32 < double  shadthresh = .03;               /* shadow threshold */
32 > double  shadthresh = 0.;                /* shadow threshold */
33   double  shadcert = .75;                 /* shadow certainty */
34   int     directrelay = 3;                /* number of source relays */
35   int     vspretest = 512;                /* virtual source pretest density */
# Line 41 | Line 41 | COLOR  salbedo = BLKCOLOR;             /* global scattering albedo
41   double  seccg = 0.;                     /* global scattering eccentricity */
42   double  ssampdist = 0.;                 /* scatter sampling distance */
43  
44 < double  specthresh = .15;               /* specular sampling threshold */
44 > double  specthresh = .02;               /* specular sampling threshold */
45   double  specjitter = 1.;                /* specular sampling jitter */
46  
47   int     backvis = 1;                    /* back face visibility */
# Line 52 | Line 52 | double minweight = 2e-3;               /* minimum ray weight */
52   char    *ambfile = NULL;                /* ambient file name */
53   COLOR   ambval = BLKCOLOR;              /* ambient value */
54   int     ambvwt = 0;                     /* initial weight for ambient value */
55 < double  ambacc = 0;                     /* ambient accuracy */
55 > double  ambacc = 0.;                    /* ambient accuracy */
56   int     ambres = 256;                   /* ambient resolution */
57   int     ambdiv = 350;                   /* ambient divisions */
58   int     ambssamp = 0;                   /* ambient super-samples */
# Line 135 | Line 135 | addmodifier(char *modn, char *outf, char *prms, char *
135          mp->modname = modn;             /* XXX assumes static string */
136          mp->params = prms;              /* XXX assumes static string */
137          mp->binv = ebinv;
138 +        mp->bin0 = 0;
139          mp->nbins = bincnt;
140          memset(mp->cbin, 0, sizeof(DCOLOR)*bincnt);
141 <                                        /* allocate output streams */
142 <        for (i = bincnt; i-- > 0; )
143 <                getostream(mp->outspec, mp->modname, i, 1);
141 >                                        /* figure out starting bin */
142 >        while (!getostream(mp->outspec, mp->modname, mp->bin0, 1))
143 >                mp->bin0++;
144 >                                        /* allocate other output streams */
145 >        for (i = 0; ++i < mp->nbins; )
146 >                getostream(mp->outspec, mp->modname, mp->bin0+i, 1);
147          lep->data = (char *)mp;
148          return(mp);
149   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines