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

Comparing ray/src/rt/renderopts.c (file contents):
Revision 2.9 by greg, Mon Jun 13 20:07:56 2005 UTC vs.
Revision 2.16 by greg, Tue Feb 24 19:39:27 2015 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11  
12   #include  "ray.h"
13   #include  "paths.h"
14 + #include  "pmapopt.h"
15  
16  
17 < extern int
17 > int
18   getrenderopt(           /* get next render option */
19          int  ac,
20          char  *av[]
# Line 36 | Line 37 | getrenderopt(          /* get next render option */
37                  return(-1);
38                                          /* check if it's one we know */
39          switch (av[0][1]) {
40 <        case 'R':                               /* random sampling */
40 >        case 'u':                               /* uncorrelated sampling */
41                  bool(2,rand_samp);
42                  return(0);
43          case 'b':                               /* back face vis. */
# Line 82 | Line 83 | getrenderopt(          /* get next render option */
83                          check(3,"f");
84                          specthresh = atof(av[1]);
85                          return(1);
86 <                case 'j':                               /* jitter */
86 >                case 's':                               /* sampling */
87                          check(3,"f");
88                          specjitter = atof(av[1]);
89                          return(1);
# Line 208 | Line 209 | getrenderopt(          /* get next render option */
209                  }
210                  break;
211          }
212 <        return(-1);             /* unknown option */
212 >        
213 >        /* PMAP: Parse photon mapping options */
214 >        return(getPmapRenderOpt(ac, av));
215 >        
216 > /*      return(-1); */          /* unknown option */
217  
218   #undef  check
219   #undef  bool
220   }
221  
222  
223 < extern void
223 > void
224   print_rdefaults(void)           /* print default render values to stdout */
225   {
226          printf(do_irrad ? "-i+\t\t\t\t# irradiance calculation on\n" :
227                          "-i-\t\t\t\t# irradiance calculation off\n");
228 <        printf(rand_samp ? "-R+\t\t\t\t# random sampling on\n" :
229 <                        "-R-\t\t\t\t# random sampling off\n");
228 >        printf(rand_samp ? "-u+\t\t\t\t# uncorrelated Monte Carlo sampling\n" :
229 >                        "-u-\t\t\t\t# correlated quasi-Monte Carlo sampling\n");
230          printf(backvis ? "-bv+\t\t\t\t# back face visibility on\n" :
231                          "-bv-\t\t\t\t# back face visibility off\n");
232          printf("-dt %f\t\t\t# direct threshold\n", shadthresh);
# Line 232 | Line 237 | print_rdefaults(void)          /* print default render values
237          printf("-dp %-9d\t\t\t# direct pretest density\n", vspretest);
238          printf(directvis ? "-dv+\t\t\t\t# direct visibility on\n" :
239                          "-dv-\t\t\t\t# direct visibility off\n");
240 <        printf("-sj %f\t\t\t# specular jitter\n", specjitter);
240 >        printf("-ss %f\t\t\t# specular sampling\n", specjitter);
241          printf("-st %f\t\t\t# specular threshold\n", specthresh);
242          printf("-av %f %f %f\t# ambient value\n", colval(ambval,RED),
243                          colval(ambval,GRN), colval(ambval, BLU));
# Line 252 | Line 257 | print_rdefaults(void)          /* print default render values
257          printf("-ms %f\t\t\t# mist sampling distance\n", ssampdist);
258          printf("-lr %-9d\t\t\t# limit reflection%s\n", maxdepth,
259                          maxdepth<=0 ? " (Russian roulette)" : "");
260 <        printf("-lw %f\t\t\t# limit weight\n", minweight);
260 >        printf("-lw %.2e\t\t\t# limit weight\n", minweight);
261 >        
262 >        /* PMAP: output photon map defaults */
263 >        printPmapDefaults();
264   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines