Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1126 - trunk/Model/Primitives


Chronological Thread 
  • From: lacewell@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1126 - trunk/Model/Primitives
  • Date: Tue, 20 Jun 2006 21:31:47 -0600 (MDT)

Author: lacewell
Date: Tue Jun 20 21:31:46 2006
New Revision: 1126

Modified:
   trunk/Model/Primitives/Cube.cc
Log:
Normalized ray directions in intersect() so that Cubes can exist in the same 
scene as TexTriangle prims

Modified: trunk/Model/Primitives/Cube.cc
==============================================================================
--- trunk/Model/Primitives/Cube.cc      (original)
+++ trunk/Model/Primitives/Cube.cc      Tue Jun 20 21:31:46 2006
@@ -32,6 +32,9 @@
 void Cube::intersect(const RenderContext&, RayPacket& rays) const
 {
 
+  // This is so our t values have the same scale as other prims, e.g., 
TexTriangle
+  rays.normalizeDirections();
+  
   // Intersection algorithm requires inverse directions computed.
   rays.computeInverseDirections();
   rays.computeSigns();




  • [MANTA] r1126 - trunk/Model/Primitives, lacewell, 06/20/2006

Archive powered by MHonArc 2.6.16.

Top of page