Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] shootOneRay


Chronological Thread 
  • From: James Bigler <bigler@cs.utah.edu>
  • To: Abe Stephens <abe@sci.utah.edu>
  • Cc: Thiago Ize <thiago@cs.utah.edu>, manta@sci.utah.edu
  • Subject: Re: [MANTA] shootOneRay
  • Date: Sun, 15 Apr 2007 20:59:37 -0600

I fixed it and was about to check it in. ;)  Give me a day or so.

James

Abe Stephens wrote:

My guess is that shading twice probably an oversight on my part. The other code in that shootOneRay conditional computes the hit positions and normals--which might not be computed by arbitrary shaders but still would be useful for debugging or GUI invocation.

Abe


Thiago Ize wrote:
I noticed that shootOneRay in RTRT.cc is saying that shade is being called twice. Looking at the code, I see in RTRT.cc that shootOneRay does:
result_rays.getHitMaterial(0)->shade( render_context, result_rays );
which is one of the shade calls. But a little above that traceEyeRays is called, which calls traceRays, which also calls hit_matl->shade(context, subPacket) -- the other shade call.

Since I don't consider myself an expert with the manta infrastructure, is that a bug? If not, why is that happening?
Thanks,
Thiago






Archive powered by MHonArc 2.6.16.

Top of page