Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r2171 - trunk/Model/Groups


Chronological Thread 
  • From: "Solomon Boulos" <boulos@cs.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: [Manta] r2171 - trunk/Model/Groups
  • Date: Wed, 9 Apr 2008 19:09:59 -0600 (MDT)

Author: boulos
Date: Wed Apr  9 19:09:58 2008
New Revision: 2171

Modified:
   trunk/Model/Groups/DynBVH.cc
Log:
Model/Groups/DynBVH.cc

 Changing the partitionObjects test to be "things to the left are
 strictly left". This matches the CompareBVHSAHEvent and so fixes a
 huge performance slowdown for rendering with the sweep build for some
 viewpoints on the conference scene that Thiago noticed. This actually
 improves the performance of both building methods (in terms of render
 performance compared to r2162).

 For reference my command line was:

 bin/manta -scene "lib/libscene_triangleSceneViewer.dylib(-model 
/Users/boulos/models/models/obj_models/conference.obj -overrideMatl eyelight 
-triangleType Wald_tri)" -camera "pinhole( -eye 1.03078 1.0181 1.77086 
-lookat 5.17822 3.79912 1.09042 -up 0.104576 0.0863962 0.990757 -hfov 60 
-vfov 60 -normalizeRays -createCornerRays )" -res 1024x1024

 This results in 5.5 fps in r2162 and 6.0 fps with this checkin on a 3GHz 
clovertown.


Modified: trunk/Model/Groups/DynBVH.cc
==============================================================================
--- trunk/Model/Groups/DynBVH.cc        (original)
+++ trunk/Model/Groups/DynBVH.cc        Wed Apr  9 19:09:58 2008
@@ -1332,12 +1332,12 @@
   --first;
   while (1) {
     for (++first; first < last; first++) {
-      if (obj_centroids[object_ids[first]][axis] > position)
+      if (obj_centroids[object_ids[first]][axis] >= position)
         break;
     }
 
     for(--last; first < last; --last) {
-      if (obj_centroids[object_ids[last]][axis] <= position)
+      if (obj_centroids[object_ids[last]][axis] < position)
         break;
     }
 




  • [Manta] r2171 - trunk/Model/Groups, Solomon Boulos, 04/09/2008

Archive powered by MHonArc 2.6.16.

Top of page