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

Comparing ray/src/rt/rtmain.c (file contents):
Revision 2.47 by greg, Wed Nov 15 18:02:53 2023 UTC vs.
Revision 2.49 by greg, Mon Dec 11 17:21:59 2023 UTC

# Line 73 | Line 73 | static void printdefaults(void);
73   #ifdef PERSIST
74   #define RTRACE_FEATURES "Persist\nParallelPersist\nMultiprocessing\n" \
75                          "IrradianceCalc\nImmediateIrradiance\nDistanceLimiting\n" \
76 <                        "Hyperspectral\nParticipatingMedia=Mist\n" \
76 >                        "ParticipatingMedia=Mist\n" \
77                          "HessianAmbientCache\nAmbientAveraging\n" \
78                          "AmbientValueSharing\nAdaptiveShadowTesting\n" \
79                          "InputFormats=a,f,d\nOutputFormats=a,f,d,c\n" \
80                          "Outputs=o,d,v,V,w,W,l,L,c,p,n,N,s,m,M,r,x,R,X,~\n"
81   #else
82   #define RTRACE_FEATURES "IrradianceCalc\nIrradianceCalc\nDistanceLimiting\n" \
83 <                        "Hyperspectral\nParticipatingMedia=Mist\n" \
83 >                        "ParticipatingMedia=Mist\n" \
84                          "HessianAmbientCache\nAmbientAveraging\n" \
85                          "AmbientValueSharing\nAdaptiveShadowTesting\n" \
86                          "InputFormats=a,f,d\nOutputFormats=a,f,d,c\n" \
# Line 310 | Line 310 | main(int  argc, char  *argv[])
310                          }
311                          break;
312   #if MAXCSAMP>3
313 <                case 'c':                               /* spectral sampling */
314 <                        switch (argv[i][2]) {
315 <                        case 's':                       /* spectral bin count */
316 <                                check(3,"i");
317 <                                NCSAMP = atoi(argv[++i]);
318 <                                break;
319 <                        case 'w':                       /* wavelength extrema */
320 <                                check(3,"ff");
321 <                                WLPART[0] = atof(argv[++i]);
322 <                                WLPART[3] = atof(argv[++i]);
323 <                                break;
324 <                        case 'o':                       /* output spectral results */
325 <                                rval = (out_prims == NULL);
326 <                                check_bool(3,rval);
327 <                                if (rval) out_prims = NULL;
328 <                                else if (out_prims == NULL) out_prims = stdprims;
329 <                                break;
330 <                        default:
313 >                case 'c':                               /* output spectral results */
314 >                        if (argv[i][2] != 'o')
315                                  goto badopt;
316 <                        }
316 >                        rval = (out_prims == NULL) & (sens_curve == NULL);
317 >                        check_bool(3,rval);
318 >                        if (rval) {
319 >                                out_prims = NULL;
320 >                                sens_curve = NULL;
321 >                        } else if (out_prims == NULL)
322 >                                out_prims = stdprims;
323                          break;
324   #endif
325   #ifdef  PERSIST
# Line 578 | Line 568 | printdefaults(void)                    /* print default values to stdou
568   {
569          char  *cp;
570  
571 +        printf(erract[WARNING].pf != NULL ?
572 +                        "-w+\t\t\t\t# warning messages on\n" :
573 +                        "-w-\t\t\t\t# warning messages off\n");
574          if (imm_irrad)
575                  printf("-I+\t\t\t\t# immediate irradiance on\n");
576          printf("-n %-2d\t\t\t\t# number of rendering processes\n", nproc);
# Line 615 | Line 608 | printdefaults(void)                    /* print default values to stdou
608                  case '~': printf(" tilde"); break;
609                  }
610          fputc('\n', stdout);
618        if (NCSAMP > 3) {
619                printf("-cs %-2d\t\t\t\t# number of spectral bins\n", NCSAMP);
620                printf("-cw %3.0f %3.0f\t\t\t# wavelength limits (nm)\n",
621                                WLPART[3], WLPART[0]);
622                printf(out_prims != NULL ? "-co-\t\t\t\t# output tristimulus colors\n" :
623                                "-co+\t\t\t\t# output spectral values\n");
624        }
611          if (sens_curve == scolor_photopic)
612                  printf("-pY\t\t\t\t# photopic output\n");
613          else if (sens_curve == scolor_scotopic)
# Line 638 | Line 624 | printdefaults(void)                    /* print default values to stdou
624                                  out_prims[GRN][0], out_prims[GRN][1],
625                                  out_prims[BLU][0], out_prims[BLU][1],
626                                  out_prims[WHT][0], out_prims[WHT][1]);
627 <        printf(erract[WARNING].pf != NULL ?
628 <                        "-w+\t\t\t\t# warning messages on\n" :
629 <                        "-w-\t\t\t\t# warning messages off\n");
627 >        if (NCSAMP > 3)
628 >                printf(out_prims != NULL ? "-co-\t\t\t\t# output tristimulus colors\n" :
629 >                                "-co+\t\t\t\t# output spectral values\n");
630          print_rdefaults();
631   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines