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

Comparing ray/src/rt/RtraceSimulManager.cpp (file contents):
Revision 2.23 by greg, Wed Nov 13 18:47:01 2024 UTC vs.
Revision 2.25 by greg, Tue Oct 21 16:12:05 2025 UTC

# Line 303 | Line 303 | RtraceSimulManager::UpdateMode()
303                  ourRTsimMan = NULL;
304          } else if (ourRTsimMan != this) {
305                  if (ourRTsimMan)
306 <                        error(WARNING, "Competing top-level simulation managers?");
306 >                        error(WARNING, "competing top-level simulation managers?");
307                  ourRTsimMan = this;
308          }
309          return true;
# Line 315 | Line 315 | extern "C" int m_normal(OBJREC *m, RAY *r);
315   static void
316   rayirrad(RAY *r)
317   {
318 <                                        /* pretend we hit surface */
319 <        r->rxt = r->rot = 1e-5;
320 <        VSUM(r->rop, r->rorg, r->rdir, r->rot);
321 <        r->ron[0] = -r->rdir[0];
322 <        r->ron[1] = -r->rdir[1];
323 <        r->ron[2] = -r->rdir[2];
318 >                                        /* orientation -> normal */
319 >        VCOPY(r->ron, r->rdir);
320 >                                        /* pretend normal incidence */
321 >        r->rdir[0] = -r->ron[0];
322 >        r->rdir[1] = -r->ron[1];
323 >        r->rdir[2] = -r->ron[2];
324          r->rod = 1.0;
325 +                                        /* counterfeit other params */
326 +        r->rxt = r->rot = 1e-4;
327 +                                        /* move comfortably above sample pos. */
328 +        VSUM(r->rop, r->rorg, r->ron, r->rot);
329 +                                        /* leap-frog for pretend origin */
330 +        VSUM(r->rorg, r->rop, r->ron, r->rot);
331                                          /* compute result */
332          r->revf = raytrace;
333          m_normal(&Lamb, r);
# Line 357 | Line 363 | RtraceSimulManager::EnqueueBundle(const FVECT orig_dir
363                  return -1;
364  
365          if (rID0 && curFlags&RTdoFIFO)
366 <                error(INTERNAL, "Ray number assignment unsupported with FIFO");
366 >                error(INTERNAL, "ray number assignment unsupported with FIFO");
367  
368          while (n-- > 0) {               // queue each ray
369                  VCOPY(res.rorg, orig_direc[0]);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)