Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1858 - trunk/Engine/Renderers


Chronological Thread 
  • From: sparker@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1858 - trunk/Engine/Renderers
  • Date: Tue, 20 Nov 2007 00:39:33 -0700 (MST)

Author: sparker
Date: Tue Nov 20 00:39:31 2007
New Revision: 1858

Modified:
   trunk/Engine/Renderers/KajiyaPathtracer.cc
Log:
Fixed bug in direct light


Modified: trunk/Engine/Renderers/KajiyaPathtracer.cc
==============================================================================
--- trunk/Engine/Renderers/KajiyaPathtracer.cc  (original)
+++ trunk/Engine/Renderers/KajiyaPathtracer.cc  Tue Nov 20 00:39:31 2007
@@ -161,6 +161,7 @@
     // Clear inverseDirection, corner_dir, signs
     rays.flags &= ~(RayPacket::HaveCornerRays | 
RayPacket::HaveInverseDirections | RayPacket::HaveSigns);
 
+    rays.computeHitPositions();
     rays.computeFFNormals(context); // Must do this before writing over the 
ray direction
 
     // Compute new rays and reflectance for anything that hit a surface
@@ -193,6 +194,14 @@
           for(int j=0;j<3;j++)
             swap(data->direction[j], i, newEnd);
           
+          // Move ffnormal
+          for(int j=0;j<3;j++)
+            swap(data->ffnormal[j], i, newEnd);
+
+          // Move hitPosition
+          for(int j=0;j<3;j++)
+            swap(data->hitPosition[j], i, newEnd);
+
           // Move time
           // Look at one-way move optimization
           swap(data->time, i, newEnd);




  • [Manta] r1858 - trunk/Engine/Renderers, sparker, 11/20/2007

Archive powered by MHonArc 2.6.16.

Top of page