# Object ID or Material ID WITH REFLECTION in MultiMatteElement?

**URL:** <https://forums.chaos.com/t/object-id-or-material-id-with-reflection-in-multimatteelement/24286>\
**Category:** General\
**Created:** [June 6, 2010, 8:36am UTC](https://forums.chaos.com/t/object-id-or-material-id-with-reflection-in-multimatteelement/24286 "2010-06-06T08:36:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sascha\_Selent](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/sascha_selent/32/4796_2.png) [@Sascha\_Selent](https://forums.chaos.com/u/Sascha_Selent)\
**Post date:** [June 6, 2010, 8:36am UTC](https://forums.chaos.com/t/object-id-or-material-id-with-reflection-in-multimatteelement/24286/1 "2010-06-06T08:36:02Z")

</div>

**Hello everyone.**

I would like to do a rendering with a separate mask-pass for an object seen by reflection.

I got a mirror with an object (ObjID = 1, MatID = 1) in front of it. In the rendering the object can be seen in the mirror.

When I add a MultiMatteElement (or VRayObjID or VRayMtlID, whatever) this ID can´t be seen in the mirror.

The rendering  
The MultiMatteElement  
The VRayMatID element  
The VRayObjID element

Is there any way to achieve this?

Thanks and kind regards.

**Sascha**

EDIT: Ah, forgot to say: Max 2010, VRay Advanced 1.5 SP5

 ![vray_gbuffer_reflection_VRayMtlID.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/f/e/fecbd084d9dcefaf70c144392b8867221b8374b2.jpeg)  
 ![vray_gbuffer_reflection.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/2/0/2015dfae16a0e130ccd9857a3bf4e524bc41211d.jpeg)  
 ![vray_gbuffer_reflection_MultiMatteElement.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/8/5/85d437cff4d509497087e0dd099a4b16ea9f9e0d.jpeg)  
 ![vray_gbuffer_reflection_VRayObjectID.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/7/2/72be9590face901e3a3232f8040df9394cc55fa4.jpeg)

---

<div class="post-metadata">

**Author:** ![Donald2B](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/donald2b/32/3244_2.png) [@Donald2B](https://forums.chaos.com/u/Donald2B)\
**Post date:** [June 9, 2010, 3:34am UTC](https://forums.chaos.com/t/object-id-or-material-id-with-reflection-in-multimatteelement/24286/2 "2010-06-09T03:34:44Z")

</div>

More than likely what you are going to have to do is make a seperate render for the ID Reflection pass. Turn off all lights in the scene and assign a VRay Light Mtl to the sphere and turn off camera visibility. Next, just make sure the mirror is 100 percent reflective. You should get a white sphere on the mirror object.

---

<div class="post-metadata">

**Author:** ![Sascha\_Selent](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/sascha_selent/32/4796_2.png) [@Sascha\_Selent](https://forums.chaos.com/u/Sascha_Selent)\
**Post date:** [June 16, 2010, 3:07pm UTC](https://forums.chaos.com/t/object-id-or-material-id-with-reflection-in-multimatteelement/24286/3 "2010-06-16T15:07:14Z")

</div>

Ahm, yeah, thanks, that is to set up a seperate scene for every pass I need - I do it this way. But this is not what I´m looking for.

I would like to take advantage of RenderElements.

To do this in a seperate scene means to set up the whole thing again every time something has changed… needs a lot of time.

Also working with scene states is somewhat surprising - I had some bad experiences with that…

No way to achieve this with RenderElements? The Scanliner can render MatIDs in RenderElements… so principally it seems to work…

Any ideas?

**Thanks, Sascha**

---

<div class="post-metadata">

**Author:** ![Donald2B](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/donald2b/32/3244_2.png) [@Donald2B](https://forums.chaos.com/u/Donald2B)\
**Post date:** [June 16, 2010, 6:45pm UTC](https://forums.chaos.com/t/object-id-or-material-id-with-reflection-in-multimatteelement/24286/4 "2010-06-16T18:45:13Z")

</div>

I have been trying to figure out a different way, similar to what you are trying to do, but I have been unsuccessful. Maybe someone with more compositing/renderpass setup experience will chime in.

Sorry. ☹

---

<div class="post-metadata">

**Author:** ![instinct](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/instinct/32/74489_2.png) [@instinct](https://forums.chaos.com/u/instinct)\
**Post date:** [June 16, 2010, 7:08pm UTC](https://forums.chaos.com/t/object-id-or-material-id-with-reflection-in-multimatteelement/24286/5 "2010-06-16T19:08:58Z")

</div>

This doesnt work for reflections. Since a few builds this does work for refractions tho (when the drop down is set to affect all channels). Am still hoping for the  
same to arrive for reflections

Regards,  
Thorsten

---

<div class="post-metadata">

**Author:** ![Sascha\_Selent](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/sascha_selent/32/4796_2.png) [@Sascha\_Selent](https://forums.chaos.com/u/Sascha_Selent)\
**Post date:** [June 17, 2010, 7:10am UTC](https://forums.chaos.com/t/object-id-or-material-id-with-reflection-in-multimatteelement/24286/6 "2010-06-17T07:10:51Z")

</div>

> [@instinct](#):
>
> Am still hoping for the same to arrive for reflections

Yes, hope that too…
