Page 1 of 1

Compositing glass with alpha channel and shadow channel

Posted: Wed Feb 15, 2012 9:08 pm
by feynman
Hi,

I'm trying for the first time to achieve catalogue-style "on-white" images, rendering the "Render", the "Alpha" and the "Shadow". The problem is that through glass, the background is visible in the "Render" and in the "Alpha" the glass area is fully white (no "Alpha" transparency) so I cannot composite the image on the all white background "Shadow" image.

In the scene, there is a wooden structure with a glass top; the structure has a two-polygon floor below, catching the shadows. For the floor, I have "Hidden from Camera" enabled, the floor's material has "Shadow" selected. To illustrate the problem, I have moved the glass partially off the supporting structure, see below:

Image
Image

How would one do this the proper way? Thanks!

PS: Or, is there a way to assign a "clown pass style" white colour to the floor, so the glass would cause the "Alpha" to become transparent (the glass only catching reflections and refractions off the model and HDR environment image)?

Re: Compositing glass with alpha channel and shadow channel

Posted: Thu Feb 16, 2012 1:00 pm
by Chris Krüger
Have you tried the opaque option?
Image
More info here: http://support.nextlimit.com/display/ma ... ha+channel

Re: Compositing glass with alpha channel and shadow channel

Posted: Thu Feb 16, 2012 1:31 pm
by feynman
Not yet; after browsing the documentation, I thought "Opaque" deliberately kills grey values for "Alpha" making glass areas always white in that render channel (as seen in my case). I'll try that one out next...

Re: Compositing glass with alpha channel and shadow channel

Posted: Fri Feb 17, 2012 2:52 am
by Mihai
You just need to also turn on Hidden from reflections/refractions for the floor object, so it's not seen refracted through the glass. You can leave the Opaque alpha option off.

Re: Compositing glass with alpha channel and shadow channel

Posted: Fri Feb 17, 2012 2:56 am
by feynman
Thanks; yes, glass is a wee bit refractive and reflective... overlooked that these properties can be disabled as well :o