ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rhpict.c
(Generate patch)

Comparing ray/src/hd/rhpict.c (file contents):
Revision 3.4 by gwlarson, Tue Mar 9 10:55:24 1999 UTC vs.
Revision 3.6 by gwlarson, Tue Mar 9 14:55:53 1999 UTC

# Line 18 | Line 18 | char   *hdkfile;               /* holodeck file name */
18   VIEW    myview = STDVIEW;       /* current output view */
19   int     xres = 512, yres = 512; /* max. horizontal and vertical resolution */
20   char    *outspec = NULL;        /* output file specification */
21 + double  randfrac = -1.;         /* random resampling fraction */
22   double  pixaspect = 1.;         /* pixel aspect ratio */
23   int     seqstart = 0;           /* sequence start frame */
24   double  expval = 1.;            /* exposure value */
# Line 74 | Line 75 | char   *argv[];
75                                  goto userr;
76                          outspec = argv[++i];
77                          break;
78 +                case 'r':                       /* random sampling */
79 +                        if (badarg(argc-i-1,argv+i+1,"f"))
80 +                                goto userr;
81 +                        randfrac = atof(argv[++i]);
82 +                        break;
83 +                case 's':                       /* smooth sampling */
84 +                        randfrac = -1.;
85 +                        break;
86                  case 'S':                       /* sequence start */
87                          if (badarg(argc-i-1,argv+i+1,"i"))
88                                  goto userr;
# Line 111 | Line 120 | char   *argv[];
120          quit(0);                                /* all done! */
121   userr:
122          fprintf(stderr,
123 < "Usage: %s [-w][-pa pa][-pe ex][-x hr][-y vr][-S stfn][-o outp][view] input.hdk\n",
123 > "Usage: %s [-w][-r rf][-pa pa][-pe ex][-x hr][-y vr][-S stfn][-o outp][view] input.hdk\n",
124                          progname);
125          quit(1);
126   }
# Line 171 | Line 180 | int    nb;
180                  bil[i].b = bl[i].bi;
181          }
182          hdloadbeams(bil, nb, pixBeam);
183 <        pixFlush();
183 >        pixFinish(randfrac);
184          free((char *)bil);
185   }
186  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines