57 |
|
"AdaptiveShadowTesting\nOutputs=v,l\n" \ |
58 |
|
"OutputCS=RGB,XYZ,prims,spec\n" |
59 |
|
|
60 |
– |
|
60 |
|
void |
61 |
|
quit(int code) /* quit program */ |
62 |
|
{ |
63 |
< |
if (ray_pnprocs < 0) |
64 |
< |
_exit(code); /* avoid flush in child */ |
63 |
> |
exit(code); // don't bother about freeing anything |
64 |
> |
} |
65 |
|
|
66 |
< |
int ec = myRPmanager.Cleanup(); |
67 |
< |
|
68 |
< |
if (ec) code = ec; |
69 |
< |
|
70 |
< |
exit(code); |
66 |
> |
/* Set default options */ |
67 |
> |
static void |
68 |
> |
default_options(void) |
69 |
> |
{ |
70 |
> |
shadthresh = .05; |
71 |
> |
shadcert = .5; |
72 |
> |
srcsizerat = .25; |
73 |
> |
directrelay = 1; |
74 |
> |
ambacc = 0.2; |
75 |
> |
ambres = 64; |
76 |
> |
ambdiv = 512; |
77 |
> |
ambssamp = 128; |
78 |
> |
maxdepth = 7; |
79 |
|
} |
80 |
|
|
74 |
– |
|
81 |
|
int |
82 |
|
main(int argc, char *argv[]) |
83 |
|
{ |
107 |
|
strcat(RFeatureList, RXPICT_FEATURES); |
108 |
|
if (argc > 1 && !strcmp(argv[1], "-features")) |
109 |
|
return feature_status(argc-2, argv+2); |
110 |
+ |
/* set defaults */ |
111 |
+ |
default_options(); |
112 |
|
/* option city */ |
113 |
|
for (i = 1; i < argc; i++) { |
114 |
|
/* expand arguments */ |
521 |
|
void |
522 |
|
rpict(int seq, char *pout, char *zout, char *prvr) |
523 |
|
/* |
524 |
< |
* If seq is greater than zero, then we will render a sequence of |
524 |
> |
* If seq is greater than zero, we will render a sequence of |
525 |
|
* images based on view parameter strings read from the standard input. |
526 |
|
* If pout is NULL, then all images will be sent to the standard ouput. |
527 |
|
* If seq is greater than zero and prvr is an integer, then it is the |
567 |
|
if (!dtype) |
568 |
|
error(USER, "ResumeFrame() failed"); |
569 |
|
if (!seq) |
570 |
< |
return; // all done if we're running a sequence |
570 |
> |
return; // all done if not a sequence |
571 |
|
} |
572 |
|
do { |
573 |
|
if (prvr) // have view from sequence recovery? |
619 |
|
zout ? dbuf : zout) |
620 |
|
&& !seq | (errno != EEXIST)) |
621 |
|
error(USER, "RenderFrame() failed"); |
622 |
< |
} while (seq++); // all done if we're running a sequence |
622 |
> |
} while (seq++); // all done if not a sequence |
623 |
|
} |