Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] r2142 - trunk/scenes


Chronological Thread 
  • From: Solomon Boulos <boulos@cs.utah.edu>
  • Cc: manta@sci.utah.edu
  • Subject: Re: [Manta] r2142 - trunk/scenes
  • Date: Wed, 5 Mar 2008 17:31:30 -0800

This command line makes it show up in the KDTree too:

bin/manta -scene "lib/libscene_complexitytest.dylib(-num 5000 - KDTree)" -camera "pinhole( -eye 18.9217 49.5775 61.81 -lookat 50.0346 49.9853 50.0287 -up 0.0331257 0.992 0.121812 -hfov 60 -vfov 60 - normalizeRays )"


On Mar 5, 2008, at 12:49 PM, Solomon Boulos wrote:

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