--- ray/src/hd/rhpict.c 1999/03/09 10:55:24 3.4 +++ ray/src/hd/rhpict.c 1999/03/09 14:23:51 3.5 @@ -18,6 +18,7 @@ char *hdkfile; /* holodeck file name */ VIEW myview = STDVIEW; /* current output view */ int xres = 512, yres = 512; /* max. horizontal and vertical resolution */ char *outspec = NULL; /* output file specification */ +int randflag = 0; /* random resampling algorithm? */ double pixaspect = 1.; /* pixel aspect ratio */ int seqstart = 0; /* sequence start frame */ double expval = 1.; /* exposure value */ @@ -74,6 +75,12 @@ char *argv[]; goto userr; outspec = argv[++i]; break; + case 'r': /* random sampling */ + randflag = 1; + break; + case 's': /* smooth sampling */ + randflag = 0; + break; case 'S': /* sequence start */ if (badarg(argc-i-1,argv+i+1,"i")) goto userr; @@ -111,7 +118,7 @@ char *argv[]; quit(0); /* all done! */ userr: fprintf(stderr, -"Usage: %s [-w][-pa pa][-pe ex][-x hr][-y vr][-S stfn][-o outp][view] input.hdk\n", +"Usage: %s [-w][-r|-s][-pa pa][-pe ex][-x hr][-y vr][-S stfn][-o outp][view] input.hdk\n", progname); quit(1); } @@ -171,7 +178,7 @@ int nb; bil[i].b = bl[i].bi; } hdloadbeams(bil, nb, pixBeam); - pixFlush(); + pixFinish(randflag); free((char *)bil); }