Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r930 - trunk/fox/afr_demo/Engine/ImageTraversers


Chronological Thread 
  • From: abhinav@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r930 - trunk/fox/afr_demo/Engine/ImageTraversers
  • Date: Sat, 11 Feb 2006 15:11:15 -0700 (MST)

Author: abhinav
Date: Sat Feb 11 15:11:15 2006
New Revision: 930

Modified:
   trunk/fox/afr_demo/Engine/ImageTraversers/GSTAFRImageTraverserSTPlane.cc
Log:

Added printfs to debug stplanes



Modified: 
trunk/fox/afr_demo/Engine/ImageTraversers/GSTAFRImageTraverserSTPlane.cc
==============================================================================
--- trunk/fox/afr_demo/Engine/ImageTraversers/GSTAFRImageTraverserSTPlane.cc  
  (original)
+++ trunk/fox/afr_demo/Engine/ImageTraversers/GSTAFRImageTraverserSTPlane.cc  
  Sat Feb 11 15:11:15 2006
@@ -477,7 +477,7 @@
   int age = 1;
   Real oldtstamp = ((const AFRCamera*)context.camera)->getOldCamTime(1);
   //cout << "old camera time = " << oldtstamp << ", currenttime = " << 
tstamp << endl;
-  float gradThreshold=0.1;
+  float gradThreshold=0.05;
   int myMasterID = getMasterID( context.proc );
   int flags = RayPacket::HaveImageCoordinates | RayPacket::ConstantEye;
   int depth = 0;
@@ -557,14 +557,18 @@
           ey[2] = edgesampleset[i].sample[CENTER_SAMPLE].worldCoord[1];
           ez[2] = edgesampleset[i].sample[CENTER_SAMPLE].worldCoord[2];
           const Point p2(ex[2], ey[2], ez[2]);
-          //const Point p3(ex[2], ey[2], ez[2]);
-          //Point rp3 = ((AFRCamera*)context.camera)->project(p3, 0);
+          const Point p3(ex[2], ey[2], ez[2]);
+          Point rp3 = ((AFRCamera*)context.camera)->project(p3, 0);
           rp2 = ((AFRCamera*)context.camera)->project(p2, 1);
-          //printf("point moved from %f,%f to %f,%f, recentcam says %f, 
%f\n", edgesampleset[i].sample[CENTER_SAMPLE].viewCoord[0], 
edgesampleset[i].sample[CENTER_SAMPLE].viewCoord[1], rp2.x()*xres, 
rp2.y()*yres, rp3.x()*xres, rp3.y()*yres);
+          printf("point moved from %f,%f to %f,%f, recentcam says %f, %f\n", 
edgesampleset[i].sample[CENTER_SAMPLE].viewCoord[0], 
edgesampleset[i].sample[CENTER_SAMPLE].viewCoord[1], rp2.x()*xres, 
rp2.y()*yres, rp3.x()*xres, rp3.y()*yres);
           ex[2] = rp2.x()*xres;
           ey[2] = rp2.y()*yres;
           ez[2] = oldtstamp;
       }
+      printf("setting plane with [%f, %f, %f] [%f, %f, %f] and [%f, %f, 
%f]\n",
+            ex[0], ey[0], ez[0],
+            ex[1], ey[1], ez[1],
+            ex[2], ey[2], ez[2]);
         // now get the plane from three points
       edgesampleset[i].setPlane(ex, ey, ez);
     }
@@ -630,7 +634,7 @@
     xhairsdonethisloop=0;
     for(f=0;f<csize;f+=xhairsdonethisloop)
     {
-      bool doedgesampling = (myRandomNumber[myID].genfrand()<0.25);
+      bool doedgesampling = (myRandomNumber[myID].genfrand()<0.5);
       int size = numXhairPerRayPack;
       edgexhairindex[0] = edgexhairindex[1] = edgexhairindex[2] = 0;
       if(size>(csize-f))




  • [MANTA] r930 - trunk/fox/afr_demo/Engine/ImageTraversers, abhinav, 02/11/2006

Archive powered by MHonArc 2.6.16.

Top of page