183 |
|
initotypes(); |
184 |
|
/* initialize urand */ |
185 |
|
reset_random(); |
186 |
+ |
/* initialize spectral sampling */ |
187 |
+ |
if (setspectrsamp(CNDX, WLPART) < 0) |
188 |
+ |
error(USER, "unsupported spectral sampling"); |
189 |
|
|
190 |
|
octname = savqstr(otnm); /* read scene octree */ |
191 |
|
readoct(octname, ~(IO_FILES|IO_INFO), &thescene, NULL); |
350 |
|
ambincl = rp->ambincl; |
351 |
|
/* update ambient calculation */ |
352 |
|
ambnotify(OVOID); |
353 |
< |
if (thescene.cutree != EMPTY) { |
353 |
> |
if ((thescene.cutree != EMPTY) & !castonly) { |
354 |
|
int newamb = (ambfile == NULL) ? rp->ambfile[0] : |
355 |
|
strcmp(ambfile, rp->ambfile) ; |
356 |
|
|