Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r871 - in trunk: Model/Groups fox/FManta


Chronological Thread 
  • From: abe@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r871 - in trunk: Model/Groups fox/FManta
  • Date: Thu, 26 Jan 2006 14:44:18 -0700 (MST)

Author: abe
Date: Thu Jan 26 14:44:17 2006
New Revision: 871

Modified:
   trunk/Model/Groups/VerticalKDTree.cc
   trunk/fox/FManta/FMantaWindow.cc
Log:


Don't save "Default" bookmark.
M    fox/FManta/FMantaWindow.cc

Fixed the kdtree travesal-- thanks to James' keen eye.
M    Model/Groups/VerticalKDTree.cc


Modified: trunk/Model/Groups/VerticalKDTree.cc
==============================================================================
--- trunk/Model/Groups/VerticalKDTree.cc        (original)
+++ trunk/Model/Groups/VerticalKDTree.cc        Thu Jan 26 14:44:17 2006
@@ -342,38 +342,29 @@
       
/////////////////////////////////////////////////////////////////////////
       // Classify the case.
       Mask cmp_result;
-      set_lte( cmp_result, t_far, t_split );
+      set_lte( cmp_result, t_split, t_near );
       if (all( active_mask, cmp_result)) {
 
         
///////////////////////////////////////////////////////////////////////
         // Case I: "Near Only"
 
         // Update the current node.
-        node = node->getChild( near_index );
+        node = node->getChild( far_index );
         
-        // Copy t_split to t_far.
-        for (int p=0;p<TraversalPacketSize;++p) {
-          t_far[p] = t_split[p];
-        }
-
         // No stack operations.
         continue;
       }
 
-      set_gte( cmp_result, t_near, t_split );
+      set_gte( cmp_result, t_split, t_far );
       if (all( active_mask, cmp_result)) {
 
         
///////////////////////////////////////////////////////////////////////
         // Case II: "Far Only"
 
         // Update the current node.
-        node = node->getChild( far_index );
-        
-        // Copy t_split to t_far.
-        for (int p=0;p<TraversalPacketSize;++p) {
-          t_near[p] = t_split[p];
-        }
+        node = node->getChild( near_index );
 
+        
         // No stack operations.
         continue;
       }
@@ -415,9 +406,6 @@
                          node->listBegin(),
                          node->listSize());
 
-
-      // IntersectPacket::hit_mask[p] must reflect triangleindex >= 0
-
       ///////////////////////////////////////////////////////////////////////
       ///////////////////////////////////////////////////////////////////////
       // Check against the hit record.        
@@ -467,7 +455,7 @@
 
     // Update the active_mask.
     Mask cmp_result;
-    set_gt( cmp_result, &rays.getMinT(which), stack[stack_index].t_far );
+    set_gt( cmp_result, &rays.getMinT(which), t_far );
 
     // And the active mask with the result of the comparsion.
     // (only pay attention to bits which are both active and passed the 
comparsion )

Modified: trunk/fox/FManta/FMantaWindow.cc
==============================================================================
--- trunk/fox/FManta/FMantaWindow.cc    (original)
+++ trunk/fox/FManta/FMantaWindow.cc    Thu Jan 26 14:44:17 2006
@@ -360,8 +360,13 @@
     int total = camera_text_list.size();
 
     for (int i=0;i<total;++i) {
-      fprintf( file, "%s\n", camera_bookmark_list->getItem( i ).text() );
-      fprintf( file, "%s\n", camera_text_list[i].c_str() );
+
+      // Only output non-default bookmarks.
+      string name = camera_bookmark_list->getItem( i ).text();
+      if (name != "Default") {
+        fprintf( file, "%s\n", name.c_str() );
+        fprintf( file, "%s\n", camera_text_list[i].c_str() );
+      }
     }
     
     // Close the file.




  • [MANTA] r871 - in trunk: Model/Groups fox/FManta, abe, 01/26/2006

Archive powered by MHonArc 2.6.16.

Top of page