miultimatte and transparent geometry.

The passes are being drawn from the renderer actually hitting objects so if you’ve got something hidden to camera or 100% transparent you’re out of luck - if it’s not making a contribution to the final pixels in the image then you’re screwed. The only thing I’ve gotten working is to make two objects. You have a 100% refractive object for your matte with an ior of 1 so it’s not actually bending any of the rays in the scene and thus appears invisible. You set it’s material to affect colour and alpha in it’s refraction settings so it doesn’t appear at all in the RGBA, and turn on affect shadows so it doesn’t cast any shadows into your scene. Next you make a second object, give it a 50% refractive material and turn on affect shadows. You turn off this object to camera, visible to reflect / refract and receive shadows.

Matte wise you can now take your multimatte correctly from the 100% refractive object but this will bring up two issues. One is that even though it’s optically invisible, the 100% refractive object will mean you need to use the vray_refract element in your passes. The second thing is that vray does early termination when it can on it’s renders, so objects or materials that don’t contribute much to the final pixels are often sampled less. What you’ll see is because the 100% refractive object is optically invisible, vray will do low quality sampling on this and your edge in the multi matte will be a bit rough along the edge. One thing you can do to solve this is up your minimum sampling in dmc to 2 or more to force vray to do a higher quality minimum sample. Anoither option is to add in a vray extra tex element, set it to include only your 100% refractive glass and put in a vray colour map at 100% white (so you get another perfect matte for your glass) and most importantly make sure “consider for anti aliasing” is ticked on - this’ll force vray to use that element to guide the dmc sampler and it’ll clean up your edges in the render elements.

I’ve attached a scene saved from max 2012 down to 2010 just for compatibility but the render comes out correctly for me.
invisible_in_scene_50percent_shad_&_100percent_matte_01.zip (20.9 KB)