Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: Transparent Material


Chronological Thread 
  • From: "James Bigler" < >
  • To:
  • Cc:
  • Subject: [Manta] Re: Transparent Material
  • Date: Fri, 27 Jun 2008 11:30:37 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Xzy7DsFJk2i3jiTZKza2+5FGQSfwS+4DuaP6TY8tTxUTuY5y/hm0oaqQL2IeKvc8h1 5PgcwBDw13Rnyh3/n2ggPXZHuXUtOehe6gqM9dw9UfSBM7AwQWatNfrgeObPqlztFeNY yX9g6mST+LSJZ9PO8h2eQJCE7hn3c54UgYs3E=

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();
  }

James

On Wed, Jun 25, 2008 at 11:24 AM, Li-Ta Lo 
< >
 wrote:
> Hi,
>
> It looks like the Transparent material is using the correct alpha
> blending mode (SRC_ALPHA, ONE_MINUS_SRC_ALPHA), but why does the
> object behind some transparent material lose their own "color" as
> shown in the attached screen shot (the gold frame and red sphere)?
> One of the scene is rendered by OpenGL, the other is rendered by
> Manta.
>
> Ollie
>
>
>



Archive powered by MHonArc 2.6.16.

Top of page