ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rxpmain.cpp
(Generate patch)

Comparing ray/src/rt/rxpmain.cpp (file contents):
Revision 2.4 by greg, Wed Nov 6 18:28:52 2024 UTC vs.
Revision 2.6 by greg, Fri Dec 27 19:44:53 2024 UTC

# Line 57 | Line 57 | static void printdefaults(void);
57                  "AdaptiveShadowTesting\nOutputs=v,l\n" \
58                  "OutputCS=RGB,XYZ,prims,spec\n"
59  
60
60   void
61   quit(int code)                  /* quit program */
62   {
# Line 67 | Line 66 | quit(int code)                 /* quit program */
66          exit(code);
67   }
68  
69 + /* Set default options */
70 + static void
71 + default_options(void)
72 + {
73 +        shadthresh = .05;
74 +        shadcert = .5;
75 +        srcsizerat = .25;
76 +        directrelay = 1;
77 +        ambacc = 0.2;
78 +        ambres = 64;
79 +        ambdiv = 512;
80 +        ambssamp = 128;
81 +        maxdepth = 7;
82 + }
83  
84   int
85   main(int  argc, char  *argv[])
# Line 97 | Line 110 | main(int  argc, char  *argv[])
110          strcat(RFeatureList, RXPICT_FEATURES);
111          if (argc > 1 && !strcmp(argv[1], "-features"))
112                  return feature_status(argc-2, argv+2);
113 +                                        /* set defaults */
114 +        default_options();
115                                          /* option city */
116          for (i = 1; i < argc; i++) {
117                                                  /* expand arguments */
# Line 509 | Line 524 | progReporter(double pct)
524   void
525   rpict(int seq, char *pout, char *zout, char *prvr)
526   /*
527 < * If seq is greater than zero, then we will render a sequence of
527 > * If seq is greater than zero, we will render a sequence of
528   * images based on view parameter strings read from the standard input.
529   * If pout is NULL, then all images will be sent to the standard ouput.
530   * If seq is greater than zero and prvr is an integer, then it is the
# Line 555 | Line 570 | rpict(int seq, char *pout, char *zout, char *prvr)
570                  if (!dtype)
571                          error(USER, "ResumeFrame() failed");
572                  if (!seq)
573 <                        return;         // all done if we're running a sequence
573 >                        return;         // all done if not a sequence
574          }
575          do {
576                  if (prvr)               // have view from sequence recovery?
# Line 607 | Line 622 | rpict(int seq, char *pout, char *zout, char *prvr)
622                                                          zout ? dbuf : zout)
623                                          && !seq | (errno != EEXIST))
624                          error(USER, "RenderFrame() failed");
625 <        } while (seq++);                // all done if we're running a sequence
625 >        } while (seq++);                // all done if not a sequence
626   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines