30 |
|
char *progname; /* argv[0] */ |
31 |
|
char *octname; /* octree name */ |
32 |
|
char *sigerr[NSIG]; /* signal error messages */ |
33 |
– |
char *shm_boundary = NULL; /* boundary of shared memory */ |
33 |
|
char *errfile = NULL; /* error output file */ |
34 |
|
|
35 |
|
extern time_t time(); |
65 |
|
"HessianAmbientCache\nAmbientAveraging\nAmbientValueSharing\n" \ |
66 |
|
"PixelJitter\nPixelSampling\nPixelMotion\nPixelDepthOfField\n" \ |
67 |
|
"SmallSourceDrawing\nViewSequence\nProgressReporting\n" \ |
68 |
< |
"AdaptiveShadowTesting\nOutputs=v,l\n" |
68 |
> |
"AdaptiveShadowTesting\nOutputs=v,l\n" \ |
69 |
> |
"OutputCS=RGB,XYZ,prims\n" |
70 |
|
#else |
71 |
|
#define RPICT_FEATURES "Recovery\nIrradianceCalc\nViewTypes=v,l,a,h,s,c\n" \ |
72 |
|
"ParticipatingMedia=Mist\n" \ |
73 |
|
"HessianAmbientCache\nAmbientAveraging\nAmbientValueSharing\n" \ |
74 |
|
"PixelJitter\nPixelSampling\nPixelMotion\nPixelDepthOfField\n" \ |
75 |
|
"SmallSourceDrawing\nViewSequence\nProgressReporting\n" \ |
76 |
< |
"AdaptiveShadowTesting\nOutputs=v,l\n" |
76 |
> |
"AdaptiveShadowTesting\nOutputs=v,l\n" \ |
77 |
> |
"OutputCS=RGB,XYZ,prims\n" |
78 |
|
#endif |
79 |
|
|
80 |
|
|
271 |
|
goto badopt; |
272 |
|
} |
273 |
|
} |
274 |
+ |
/* set/check spectral sampling */ |
275 |
+ |
if (setspectrsamp(CNDX, WLPART) <= 0) |
276 |
+ |
error(USER, "unsupported spectral sampling"); |
277 |
+ |
|
278 |
|
err = setview(&ourview); /* set viewing parameters */ |
279 |
|
if (err != NULL) |
280 |
|
error(USER, err); |
366 |
|
close(duped1); |
367 |
|
} |
368 |
|
if (persist == PARALLEL) { /* multiprocessing */ |
369 |
< |
preload_objs(); /* preload scene */ |
365 |
< |
shm_boundary = (char *)malloc(16); |
366 |
< |
strcpy(shm_boundary, "SHM_BOUNDARY"); |
369 |
> |
cow_memshare(); /* preloads scene */ |
370 |
|
while ((rval=fork()) == 0) { /* keep on forkin' */ |
371 |
|
pflock(1); |
372 |
|
pfhold(); |