Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: Re: Re: Transparent Material


Chronological Thread 
  • From: Abe Stephens < >
  • To:
  • Cc:
  • Subject: [Manta] Re: Re: Re: Transparent Material
  • Date: Mon, 30 Jun 2008 14:25:21 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=lYRlo3n7Z43KgnmawUEdc/X6syhlfpYlDat0OZsxrLVMxzilJX0+vfGUzXQwzeC36B Qgk3gTrgq+pNK/2W9o6UQk25OAq8jnrDaNvU6fmMGYVxA/A314JqPoabTdHoxlmYeIfB FQ40MpdINF8Gneg+n9pqgBbv5hYi5MdNWCxL4=

Glad you figured it out. It's possible to turn off shadows too-- e.g. bin/manta -shadows noshadows

Abe

On Jun 30, 2008, at 2:17 PM, Li-Ta Lo wrote:


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.

Top of page