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

Comparing ray/src/rt/raycalls.c (file contents):
Revision 2.28 by greg, Thu Feb 2 18:55:09 2023 UTC vs.
Revision 2.32 by greg, Wed Apr 23 02:35:26 2025 UTC

# Line 98 | Line 98 | static const char      RCSid[] = "$Id$";
98   #include  "ambient.h"
99   #include  "otypes.h"
100   #include  "random.h"
101 + #include  "func.h"
102   #include  "data.h"
103   #include  "font.h"
104   #include  "pmapray.h"
# Line 106 | Line 107 | char   *progname = "unknown_app";      /* caller sets to argv
107  
108   char    *octname;                       /* octree name we are given */
109  
109 char    *shm_boundary = NULL;           /* boundary of shared memory */
110
110   CUBE    thescene;                       /* our scene */
111   OBJECT  nsceneobjs;                     /* number of objects in our scene */
112  
# Line 181 | Line 180 | ray_init(                      /* initialize ray-tracing calculation */
180                                          /* initialize object types */
181          if (ofun[OBJ_SPHERE].funp == o_default)
182                  initotypes();
183 +                                        /* initialize calcomp routines */
184 +        initfunc();
185                                          /* initialize urand */
186          reset_random();
187 +                                        /* initialize spectral sampling */
188 +        if (setspectrsamp(CNDX, WLPART) < 0)
189 +                error(USER, "unsupported spectral sampling");
190  
191          octname = savqstr(otnm);        /* read scene octree */
192          readoct(octname, ~(IO_FILES|IO_INFO), &thescene, NULL);
# Line 347 | Line 351 | ray_restore(                   /* restore parameter settings */
351          ambincl = rp->ambincl;
352                                          /* update ambient calculation */
353          ambnotify(OVOID);
354 <        if (thescene.cutree != EMPTY) {
354 >        if ((thescene.cutree != EMPTY) & !castonly) {
355                  int     newamb = (ambfile == NULL) ?  rp->ambfile[0] :
356                                          strcmp(ambfile, rp->ambfile) ;
357  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines