Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] Difference between r2054 and r2055


Chronological Thread 
  • From: James Bigler <bigler@sci.utah.edu>
  • To: ollie@lanl.gov
  • Cc: manta@sci.utah.edu, Thiago Ize <thiago@sci.utah.edu>
  • Subject: Re: [Manta] Difference between r2054 and r2055
  • Date: Fri, 15 Feb 2008 12:13:33 -0700

Li-Ta Lo wrote:
Thiago,

What is the difference between r2054 and r2055? The .obj scene looks much darker (and realistic IMHO) in r2055 than r2054. I didn't use
the material parameter to LoadModel or enable the area light in
scenes/triangleSceneViewer.cc. Is this due to RNG or HardShadows.cc?

The light source is in a different place between the two images. Look at the shadows. Here's the code changes. The biggest one is the placement of the light moved from some hard coded location to a point on the corner of the bounding box. The color of cup and cdown also changed (they got a lot darker).

-··lights->add(new·PointLight(Vector(900,400,100),·Color(RGB(1,1,1))*1));
-··Color·cup(RGB(0.3,·0.3,·0.3));
-··Color·cdown(RGB(0.62,·0.62,·0.62));
+··BBox·bbox;
+··PreprocessContext·dummyContext;
+··group->computeBounds(dummyContext,·bbox);
+··Vector·lightOrigin·=·bbox[1]·+·bbox.diagonal()*.3;
+··lights->add(new·PointLight(lightOrigin,·Color(RGB(1,1,1))*1));
+
+··Color·cup(RGB(0.2,·0.2,·0.2));
+··Color·cdown(RGB(0.1,·0.1,·0.1));

Unless you are using an area light source, you shouldn't be using a random 
number generator, so that isn't the issue.

BTW, there is some kind of SEG fault with DynBVH in release buid
starting at r203x or r204x. The seg fault does not show up with
debug build. I will dig into it a little more.

Can you reproduce the seg fault reliably (i.e. a certain view does it)?

Is it possible to share the geometry you are rendering to help us reproduce 
the problem?

James






Archive powered by MHonArc 2.6.16.

Top of page