Text archives Help
- From: Li-Ta Lo <
>
- To:
- Subject: [Manta] Re: Re: Transparent Material
- Date: Mon, 30 Jun 2008 12:17:30 -0600
- Organization: Los Alamos National Lab
On Fri, 2008-06-27 at 11:30 -0600, James Bigler wrote:
>
I can't think of a reason why off the top of my head nor after peaking
>
at the code. It might be useful to attach the debugger and trace a
>
debug ray (ctrl-left click in the XWindow gui: See
>
XWindow::mouse_debug_ray to learn how to send a debug ray).
>
>
You can put special printf's in the code like this to print output.
>
You may also need to propagate the debugFlag to the ray packet created
>
in the Transparent material. See Phong.cc for an example.
>
>
int debugFlag = rays.getAllFlags() & RayPacket::DebugPacket;
>
if (debugFlag) {
>
cerr << "Phong::shade called\n";
>
// cerr << getStackTrace();
>
}
>
I figured it out. Manta is actually doing the right thing. The reason it
is dark is that the ball is in the shadow. Once it is not in the shadow,
the transparency looks correct. See the attached screen shot.
Ollie
Attachment:
Screenshot-Visualization Toolkit - Manta.png
Description: PNG image
Attachment:
Screenshot-Visualization Toolkit - Manta-1.png
Description: PNG image
Archive powered by MHonArc 2.6.16.