Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1990 - trunk/Model/Cameras


Chronological Thread 
  • From: boulos@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1990 - trunk/Model/Cameras
  • Date: Fri, 11 Jan 2008 21:54:52 -0700 (MST)

Author: boulos
Date: Fri Jan 11 21:54:51 2008
New Revision: 1990

Modified:
   trunk/Model/Cameras/PinholeCamera.cc
Log:
Model/Cameras/PinholeCamera.cc

 Improving samples by taking them off 2 a time.


Modified: trunk/Model/Cameras/PinholeCamera.cc
==============================================================================
--- trunk/Model/Cameras/PinholeCamera.cc        (original)
+++ trunk/Model/Cameras/PinholeCamera.cc        Fri Jan 11 21:54:51 2008
@@ -220,6 +220,10 @@
   // need to have some sort of "tree of parents" that we can follow up
   Packet<Real> time_seeds;
   context.sample_generator->nextSeeds(context, time_seeds, rays);
+  // NOTE(boulos): Call twice to make sure that seeds are pulled off 2
+  // at a time... This is an ugly hack but makes the rest of the stuff
+  // work better
+  context.sample_generator->nextSeeds(context, time_seeds, rays);
   for (int i = rays.begin(); i < rays.end(); i++) {
     rays.data->time[i] = time_seeds.get(i);
   }




  • [Manta] r1990 - trunk/Model/Cameras, boulos, 01/11/2008

Archive powered by MHonArc 2.6.16.

Top of page