Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] triangleSceneViewer v.s. objviewer.py


Chronological Thread 
  • From: Li-Ta Lo <ollie@lanl.gov>
  • To: manta@sci.utah.edu
  • Subject: [Manta] triangleSceneViewer v.s. objviewer.py
  • Date: Fri, 15 Feb 2008 10:41:07 -0700
  • Organization: Los Alamos National Lab

Hi,

I believe that both triangleSceneViewer and objviewer.py should use the 
same .obj loader and rendering algorithms but why is there some "noise"
in the objviewer.py output? Is this related to the T_EPSILON? Please see
the attached screen shot.

BTW, there is minor bug in objviewer.py

[ollie@exponential SwigInterface]$ svn diff objviewer.py 
Index: objviewer.py
===================================================================
--- objviewer.py        (revision 2066)
+++ objviewer.py        (working copy)
@@ -64,7 +64,8 @@
         
     # Create a bvh.
     bvh = manta_new( DynBVH() )
-    bvh.rebuild( obj )
+    bvh.setGroup(obj)
+    bvh.rebuild()
     
     # scene.setObject(world)
     scene.setObject( bvh )


Ollie

Attachment: trianglescene.png
Description: PNG image

Attachment: objview.png
Description: PNG image




Archive powered by MHonArc 2.6.16.

Top of page