# multimattes, glass and "affect all channels"

**URL:** <https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351>\
**Category:** General\
**Created:** [January 22, 2015, 11:13am UTC](https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351 "2015-01-22T11:13:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![super\_gnu](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@super\_gnu](https://forums.chaos.com/u/super_gnu)\
**Post date:** [January 22, 2015, 11:13am UTC](https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351/1 "2015-01-22T11:13:58Z")

</div>

so ive got a building (surprise!) i want a solid multimatte of the glass, which requires “affect all channels” to be off.

however i also want multimattes of the materials behind the glass, which requires “affect all channels” to be on, and even then, the mattes are tinted.

any neat way to get both a solid glass matte and clean mattes for the geometry behind it?

id obviously like to avoid doing multiple renders.

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [January 22, 2015, 1:26pm UTC](https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351/2 "2015-01-22T13:26:45Z")

</div>

Use VrayObjectSelect Render Element in Raw mode for that purpose.  
It can extract a solid alpha of the objects behind the glass. You can use the same RE for the glass also although it can be extracted via MultiMatte, ObjectID and etc Elements.

Here is a quick setup: [http://ftp.chaosgroup.com/support/scenes/masks\_behind\_glass02.max](http://ftp.chaosgroup.com/support/scenes/masks%5C_behind%5C_glass02.max)

 ![S4Arqrk.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/9/d/9de7c89696f582c932fe3db56ad2aea31e4864fd.jpeg)  
 ![XKRJp9j.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/4/f/4fe47843bf786cb3c379628fc5aad0f7bd25b035.jpeg)  
 ![5CVbN4t.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/5/5/55e9914eeb6bc56007c236ebee39af2cf43c658e.jpeg)  
 ![G6ihh5b.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/c/7/c76bc0176026cba8da9240292ed86beb9431ffa8.jpeg)  
 ![4LkIdT2.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/0/0/00aa8ee9c254c336427b93af5a310f9abfccfb13.jpeg)

---

<div class="post-metadata">

**Author:** ![super\_gnu](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@super\_gnu](https://forums.chaos.com/u/super_gnu)\
**Post date:** [January 22, 2015, 1:31pm UTC](https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351/3 "2015-01-22T13:31:42Z")

</div>

great. just what i was looking for. many thanks.

---

<div class="post-metadata">

**Author:** ![super\_gnu](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@super\_gnu](https://forums.chaos.com/u/super_gnu)\
**Post date:** [January 22, 2015, 4:38pm UTC](https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351/4 "2015-01-22T16:38:49Z")

</div>

out of interest, im assuming if i have 8 or 9 of these in a scene with “consider for aa” turned on, it might slow my render down to the point that it would be much quicker to render the masks seperately?

---

<div class="post-metadata">

**Author:** ![NicoC](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/nicoc/32/23122_2.png) [@NicoC](https://forums.chaos.com/u/NicoC)\
**Post date:** [January 23, 2015, 8:55am UTC](https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351/5 "2015-01-23T08:55:43Z")

</div>

> [@svetlozar.draganov](#):
>
> Use VrayObjectSelect Render Element in Raw mode for that purpose.  
> It can extract a solid alpha of the objects behind the glass. You can use the same RE for the glass also although it can be extracted via MultiMatte, ObjectID and etc Elements.
> 
> Here is a quick setup: [http://ftp.chaosgroup.com/support/scenes/masks\_behind\_glass02.max](http://ftp.chaosgroup.com/support/scenes/masks%5C_behind%5C_glass02.max)

Nice ! I wasn’t aware of that solution !! thanks a lot, Svetlozar 🙂

---

<div class="post-metadata">

**Author:** ![super\_gnu](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@super\_gnu](https://forums.chaos.com/u/super_gnu)\
**Post date:** [January 23, 2015, 10:05am UTC](https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351/6 "2015-01-23T10:05:28Z")

</div>

an issue with this method, is that if you have glass on a building, and you can see through the building to the background, the alpha will be transparent in those areas.. i guess turning off “affect all channels” for the glass would fix this? would i still then be able to get the mattes of the objects behind the glass?

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [January 23, 2015, 12:28pm UTC](https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351/7 "2015-01-23T12:28:59Z")

</div>

> [@super\_gnu](#):
>
> out of interest, im assuming if i have 8 or 9 of these in a scene with “consider for aa” turned on, it might slow my render down to the point that it would be much quicker to render the masks seperately?

Not sure actually. Every additional Render Elements will slow down the rendering for sure but it is difficult to predict which approach (single or multiple passes) will be more effective.

> [@super\_gnu](#):
>
> an issue with this method, is that if you have glass on a building, and you can see through the building to the background, the alpha will be transparent in those areas.. i guess turning off “affect all channels” for the glass would fix this? would i still then be able to get the mattes of the objects behind the glass?

Would it be possible to send us an example scene of this issue please.  
Let us also know the result you are looking for.

---

<div class="post-metadata">

**Author:** ![super\_gnu](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@super\_gnu](https://forums.chaos.com/u/super_gnu)\
**Post date:** [January 23, 2015, 1:02pm UTC](https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351/8 "2015-01-23T13:02:26Z")

</div>

well, i just knocked up a test scene, but it doesnt exhibit a transparent alpha on the glass objectselect element.. so ill have to try to figure out why my big scene is doing that. however im near a deadline and so far i dont need that renderelement in my psd..

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [January 23, 2015, 2:05pm UTC](https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351/9 "2015-01-23T14:05:23Z")

</div>

> [@super\_gnu](#):
>
> well, i just knocked up a test scene, but it doesnt exhibit a transparent alpha on the glass objectselect element.. so ill have to try to figure out why my big scene is doing that. however im near a deadline and so far i dont need that renderelement in my psd..

Let us know if you found what’s going on.  
You may also simplify the scene and sent it for investigation.

---

<div class="post-metadata">

**Author:** ![Ka\_Hassa](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@Ka\_Hassa](https://forums.chaos.com/u/Ka_Hassa)\
**Post date:** [January 24, 2015, 8:15am UTC](https://forums.chaos.com/t/multimattes-glass-and-affect-all-channels/52351/10 "2015-01-24T08:15:45Z")

</div>

I was just looking at corona features at the moment and saw that it integrates a simple option to handle this. Look here : [Renderer for architectural visualization - Corona | Chaos](https://corona-renderer.com/features/workflow-tweaks/) and scroll down to “Not visible in masks” section. It’s dead simple : at the material level you can set if it will be visible in masks or not.  
Maybe it could be implemented the other way around : in the multimatte we could have an exclude list of materials that will be invisible in the current matte.
