Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r852 - branches/vertical/fox


Chronological Thread 
  • From: bigler@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r852 - branches/vertical/fox
  • Date: Thu, 19 Jan 2006 16:03:39 -0700 (MST)

Author: bigler
Date: Thu Jan 19 16:03:39 2006
New Revision: 852

Modified:
   branches/vertical/fox/FMantaImageFrame.cc
Log:

fox/FMantaImageFrame.cc

  Updated to use vertical RayPackets.


Modified: branches/vertical/fox/FMantaImageFrame.cc
==============================================================================
--- branches/vertical/fox/FMantaImageFrame.cc   (original)
+++ branches/vertical/fox/FMantaImageFrame.cc   Thu Jan 19 16:03:39 2006
@@ -150,18 +150,19 @@
        
        // Create a ray packet.
        RayPacketData data;
-       RayPacket rays( data, 1, 0, 0 );
+       RayPacket rays( data, 0, 1, 0, 0 );
        
        // Shoot the ray.
        Color color;
        rtrt->shootOneRay( color, rays, image_x, image_y, manta_channel );
        
        // Check for a result.
-       if (rays.hitInfo(0).wasHit()) {
+       if (rays.wasHit(0)) {
        
-               // Get the normal.
-               result_position = rays.get(0).hitPosition;
-               result_normal   = rays.get(0).normal;
+               // Get the normal and hit position.  shootOneRay will compute
+               // these for us.
+               result_position = rays.getHitPosition(0);
+               result_normal   = rays.getNormal(0);
        
                return true;
        }




  • [MANTA] r852 - branches/vertical/fox, bigler, 01/19/2006

Archive powered by MHonArc 2.6.16.

Top of page