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
<Screenshot-Visualization Toolkit - Manta.png><Screenshot- Visualization Toolkit - Manta-1.png>
Archive powered by MHonArc 2.6.16.