Manta Interactive Ray Tracer Development Mailing List

Text archives Help


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


Chronological Thread 
  • From: abhinav@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r914 - trunk/fox/afr_demo/Engine/ImageTraversers
  • Date: Thu, 9 Feb 2006 13:36:29 -0700 (MST)

Author: abhinav
Date: Thu Feb  9 13:36:29 2006
New Revision: 914

Modified:
   trunk/fox/afr_demo/Engine/ImageTraversers/GSTAFRImageTraverserSTPlane.cc
Log:
Based on printf's it seems to show a correct behavior for stplanes. However 
yet to test with actual streams and visualization of stplanes. The camera 
problem has been resolved until we see further problems.

-This line, and those below, will be ignored--

M    fox/afr_demo/Engine/ImageTraversers/GSTAFRImageTraverserSTPlane.cc


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  
  Thu Feb  9 13:36:29 2006
@@ -476,6 +476,7 @@
   int i, j;
   int age = 1;
   Real oldtstamp = ((const AFRCamera*)context.camera)->getOldCamTime(1);
+  //cout << "old camera time = " << oldtstamp << ", currenttime = " << 
tstamp << endl;
   float gradThreshold=0.1;
   int myMasterID = getMasterID( context.proc );
   int flags = RayPacket::HaveImageCoordinates | RayPacket::ConstantEye;
@@ -556,10 +557,10 @@
           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;




  • [MANTA] r914 - trunk/fox/afr_demo/Engine/ImageTraversers, abhinav, 02/09/2006

Archive powered by MHonArc 2.6.16.

Top of page