13 |
|
#include "rtprocess.h" /* getpid() */ |
14 |
|
#include "resolu.h" |
15 |
|
#include "ray.h" |
16 |
+ |
#include "func.h" |
17 |
|
#include "source.h" |
18 |
|
#include "ambient.h" |
19 |
|
#include "random.h" |
19 |
– |
#include "paths.h" |
20 |
|
#include "pmapray.h" |
21 |
|
|
22 |
|
extern char *progname; /* global argv[0] */ |
114 |
|
strcat(RFeatureList, RTRACE_FEATURES); |
115 |
|
if (argc > 1 && !strcmp(argv[1], "-features")) |
116 |
|
return feature_status(argc-2, argv+2); |
117 |
+ |
/* initialize calcomp routines */ |
118 |
+ |
initfunc(); |
119 |
|
/* add trace notify function */ |
120 |
|
for (i = 0; addobjnotify[i] != NULL; i++) |
121 |
|
; |
350 |
|
rval = setspectrsamp(CNDX, WLPART); |
351 |
|
if (rval < 0) |
352 |
|
error(USER, "unsupported spectral sampling"); |
353 |
< |
if (out_prims != NULL) { |
353 |
> |
if (sens_curve != NULL) |
354 |
> |
out_prims = NULL; |
355 |
> |
else if (out_prims != NULL) { |
356 |
|
if (!rval) |
357 |
|
error(WARNING, "spectral range incompatible with color output"); |
358 |
|
} else if (NCSAMP == 3) |
362 |
|
/* initialize object types */ |
363 |
|
initotypes(); |
364 |
|
/* initialize urand */ |
365 |
< |
if (rand_samp) { |
362 |
< |
srandom((long)time(0)); |
363 |
< |
initurand(0); |
364 |
< |
} else { |
365 |
< |
srandom(0L); |
366 |
< |
initurand(2048); |
367 |
< |
} |
365 |
> |
reset_random(); |
366 |
|
/* set up signal handling */ |
367 |
|
sigdie(SIGINT, "Interrupt"); |
368 |
|
#ifdef SIGHUP |