Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r2142 - trunk/scenes


Chronological Thread 
  • From: "Solomon Boulos" <boulos@cs.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: [Manta] r2142 - trunk/scenes
  • Date: Wed, 5 Mar 2008 13:49:56 -0700 (MST)

Author: boulos
Date: Wed Mar  5 13:49:55 2008
New Revision: 2142

Modified:
   trunk/scenes/complexitytest.cc
Log:
scenes/complexitytest.cc

 Adding KDTree to complexity test.

 At some point recently, the RTSL sphere code has broken this code for
 the BVH. My guess is that the non-strict ordering nature of the BVH
 traversal is generating hits out of order so it doesn't show up in
 the KDTree.


Modified: trunk/scenes/complexitytest.cc
==============================================================================
--- trunk/scenes/complexitytest.cc      (original)
+++ trunk/scenes/complexitytest.cc      Wed Mar  5 13:49:55 2008
@@ -45,6 +45,7 @@
 #include <Model/MiscObjects/Intersection.h>
 #include <Model/MiscObjects/KeyFrameAnimation.h>
 #include <Model/Groups/DynBVH.h>
+#include <Model/Groups/KDTree.h>
 #include <Model/Groups/Group.h>
 #include <Model/Groups/Mesh.h>
 #include <Model/Groups/ObjGroup.h>
@@ -102,6 +103,9 @@
   if(type == "DynBVH")
     return new DynBVH();
 
+  if(type == "KDTree")
+    return new KDTree();
+
 #ifdef USE_PRIVATE_CODE
   if(type == "CGT")
     return new Grid();
@@ -174,6 +178,8 @@
       acc_struct = "DynBVH";
     } else if (arg == "-CGT") {
       acc_struct = "CGT";
+    } else if (arg == "-KDTree") {
+      acc_struct = "KDTree";
     } else if (arg == "-no_instances") {
       no_instances = true;
     } else {





Archive powered by MHonArc 2.6.16.

Top of page