98 |
|
#include "ambient.h" |
99 |
|
#include "otypes.h" |
100 |
|
#include "random.h" |
101 |
+ |
#include "func.h" |
102 |
|
#include "data.h" |
103 |
|
#include "font.h" |
104 |
|
#include "pmapray.h" |
107 |
|
|
108 |
|
char *octname; /* octree name we are given */ |
109 |
|
|
109 |
– |
char *shm_boundary = NULL; /* boundary of shared memory */ |
110 |
– |
|
110 |
|
CUBE thescene; /* our scene */ |
111 |
|
OBJECT nsceneobjs; /* number of objects in our scene */ |
112 |
|
|
180 |
|
/* initialize object types */ |
181 |
|
if (ofun[OBJ_SPHERE].funp == o_default) |
182 |
|
initotypes(); |
183 |
+ |
/* initialize calcomp routines */ |
184 |
+ |
initfunc(); |
185 |
|
/* initialize urand */ |
186 |
|
reset_random(); |
187 |
+ |
/* initialize spectral sampling */ |
188 |
+ |
if (setspectrsamp(CNDX, WLPART) < 0) |
189 |
+ |
error(USER, "unsupported spectral sampling"); |
190 |
|
|
191 |
|
octname = savqstr(otnm); /* read scene octree */ |
192 |
|
readoct(octname, ~(IO_FILES|IO_INFO), &thescene, NULL); |
351 |
|
ambincl = rp->ambincl; |
352 |
|
/* update ambient calculation */ |
353 |
|
ambnotify(OVOID); |
354 |
< |
if (thescene.cutree != EMPTY) { |
354 |
> |
if ((thescene.cutree != EMPTY) & !castonly) { |
355 |
|
int newamb = (ambfile == NULL) ? rp->ambfile[0] : |
356 |
|
strcmp(ambfile, rp->ambfile) ; |
357 |
|
|