27 |
|
1.,180.,180.,0.,0.,0.,0., |
28 |
|
{0.,0.,0.},{0.,0.,0.},0.,0.}; |
29 |
|
|
30 |
< |
unsigned long nsamps = 10000; /* desired number of initial samples */ |
31 |
< |
unsigned long nssamps = 9000; /* number of super-samples */ |
30 |
> |
long nsamps = 10000; /* desired number of initial samples */ |
31 |
|
int ndsamps = 32; /* number of direct samples */ |
32 |
|
int nprocs = 1; /* number of rendering processes */ |
33 |
|
|
59 |
|
over_options(); |
60 |
|
printf("-n %-9d\t\t\t# number of processes\n", nprocs); |
61 |
|
printf("-rd %-9ld\t\t\t# ray directions\n", nsamps); |
63 |
– |
/* printf("-rs %-9ld\t\t\t# ray super-samples\n", nssamps); */ |
62 |
|
printf("-dn %-9d\t\t\t# direct number of samples\n", ndsamps); |
63 |
|
printf("-vp %f %f %f\t# view point\n", |
64 |
|
ourview.vp[0], ourview.vp[1], ourview.vp[2]); |
130 |
|
if (argv[i][1] == 'r') { /* sampling options */ |
131 |
|
if (argv[i][2] == 'd') |
132 |
|
nsamps = atol(argv[++i]); |
135 |
– |
else if (argv[i][2] == 's') |
136 |
– |
nssamps = atol(argv[++i]); |
133 |
|
else { |
134 |
|
sprintf(errmsg, "bad option at '%s'", argv[i]); |
135 |
|
error(USER, errmsg); |
321 |
|
char *sfile |
322 |
|
) |
323 |
|
{ |
324 |
< |
int samptot = nsamps; |
324 |
> |
long samptot = nsamps; |
325 |
|
float *rowp, *rowp1; |
326 |
|
double rowsum[MAXNT], rowomega[MAXNT]; |
327 |
|
double thdiv[MAXNT+1], phdiv[MAXNP+1]; |