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>
  • Cc: manta@sci.utah.edu
  • Subject: Re: [Manta] Difference between r2054 and r2055
  • Date: Fri, 15 Feb 2008 12:37:21 -0700

Li-Ta Lo wrote:
On Fri, 2008-02-15 at 12:13 -0700, James Bigler wrote:
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).


What are cup and cdown?

They are used in the ArcAmbient class. This changes the ambient contribution based on the normal of the surface and the direction supplied to ArcAmbient (we use the dot product to do a linear interpolation between the two colors). Change the values to something like the following to get a warm to cool change in the ambient values.

Color cup(RGB(0.3, 0.3, 0.1)); // yellow
Color cdown(RGB(0.1, 0.1, 0.3)); // blue

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


attached.

Thanks, we'll see if we can reproduce your problem.

James





Archive powered by MHonArc 2.6.16.

Top of page