106 |
|
|
107 |
|
char *octname; /* octree name we are given */ |
108 |
|
|
109 |
– |
char *shm_boundary = NULL; /* boundary of shared memory */ |
110 |
– |
|
109 |
|
CUBE thescene; /* our scene */ |
110 |
|
OBJECT nsceneobjs; /* number of objects in our scene */ |
111 |
|
|
181 |
|
initotypes(); |
182 |
|
/* initialize urand */ |
183 |
|
reset_random(); |
184 |
+ |
/* initialize spectral sampling */ |
185 |
+ |
if (setspectrsamp(CNDX, WLPART) < 0) |
186 |
+ |
error(USER, "unsupported spectral sampling"); |
187 |
|
|
188 |
|
octname = savqstr(otnm); /* read scene octree */ |
189 |
|
readoct(octname, ~(IO_FILES|IO_INFO), &thescene, NULL); |
225 |
|
donesets(); |
226 |
|
octdone(); |
227 |
|
thescene.cutree = EMPTY; |
228 |
< |
octname = NULL; |
228 |
> |
freeqstr(octname); octname = NULL; |
229 |
|
retainfonts = 0; |
230 |
|
if (freall) { |
231 |
|
freefont(NULL); |
348 |
|
ambincl = rp->ambincl; |
349 |
|
/* update ambient calculation */ |
350 |
|
ambnotify(OVOID); |
351 |
< |
if (thescene.cutree != EMPTY) { |
351 |
> |
if ((thescene.cutree != EMPTY) & !castonly) { |
352 |
|
int newamb = (ambfile == NULL) ? rp->ambfile[0] : |
353 |
|
strcmp(ambfile, rp->ambfile) ; |
354 |
|
|