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

Comparing ray/src/rt/rpmain.c (file contents):
Revision 2.29 by greg, Fri Nov 17 20:02:07 2023 UTC vs.
Revision 2.34 by greg, Wed Aug 21 20:42:20 2024 UTC

# Line 30 | Line 30 | static const char      RCSid[] = "$Id$";
30   char  *progname;                        /* argv[0] */
31   char  *octname;                         /* octree name */
32   char  *sigerr[NSIG];                    /* signal error messages */
33 char  *shm_boundary = NULL;             /* boundary of shared memory */
33   char  *errfile = NULL;                  /* error output file */
34  
35   extern time_t  time();
# Line 66 | Line 65 | static void printdefaults(void);
65                  "HessianAmbientCache\nAmbientAveraging\nAmbientValueSharing\n" \
66                  "PixelJitter\nPixelSampling\nPixelMotion\nPixelDepthOfField\n" \
67                  "SmallSourceDrawing\nViewSequence\nProgressReporting\n" \
68 <                "AdaptiveShadowTesting\nOutputs=v,l\n"
68 >                "AdaptiveShadowTesting\nOutputs=v,l\n" \
69 >                "OutputCS=RGB,XYZ,prims\n"
70   #else
71   #define RPICT_FEATURES  "Recovery\nIrradianceCalc\nViewTypes=v,l,a,h,s,c\n" \
72                  "ParticipatingMedia=Mist\n" \
73                  "HessianAmbientCache\nAmbientAveraging\nAmbientValueSharing\n" \
74                  "PixelJitter\nPixelSampling\nPixelMotion\nPixelDepthOfField\n" \
75                  "SmallSourceDrawing\nViewSequence\nProgressReporting\n" \
76 <                "AdaptiveShadowTesting\nOutputs=v,l\n"
76 >                "AdaptiveShadowTesting\nOutputs=v,l\n" \
77 >                "OutputCS=RGB,XYZ,prims\n"
78   #endif
79  
80  
# Line 270 | Line 271 | main(int  argc, char  *argv[])
271                          goto badopt;
272                  }
273          }
274 +                                        /* set/check spectral sampling */
275 +        if (setspectrsamp(CNDX, WLPART) <= 0)
276 +                error(USER, "unsupported spectral sampling");
277 +
278          err = setview(&ourview);        /* set viewing parameters */
279          if (err != NULL)
280                  error(USER, err);
# Line 361 | Line 366 | main(int  argc, char  *argv[])
366                          close(duped1);
367                  }
368                  if (persist == PARALLEL) {      /* multiprocessing */
369 <                        preload_objs();         /* preload scene */
365 <                        shm_boundary = (char *)malloc(16);
366 <                        strcpy(shm_boundary, "SHM_BOUNDARY");
369 >                        cow_memshare();         /* preloads scene */
370                          while ((rval=fork()) == 0) {    /* keep on forkin' */
371                                  pflock(1);
372                                  pfhold();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines