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 */ |
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 */ |
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 */ |
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 |
|
} |