Was doing some compositing testing for an upcoming project and ran accross a possible bug.
Here is the base scene. The window is all one object (not grouped) and is textured with a multi-sub material. All materials are vraymtl.

I right-click the window, go into vray properties, turn on matte. Alpha contrib -1; shadows and affect alpha are on.

Notice that the glass no longer reflects as it is supposed to.
Now, I detach the glass from the rest of the window and make it its own object. I also instance out the glass material from the multi-sub and make it separate and assign it to the glass. Both the frame and the glass have the same vray properties as the image above (matte checked, -1 alpha contrib; shadows and alpha checked)

Now that's better. All I have is the reflections in the window but the glass and the frame are matted, which is what I want. In theory VRay should realize that part of the material is reflective and part isn't and render out the matte reflections properly. It seems as though that because part of the object isn't reflective, that is overrides the part that does reflect.
Is this a bug or is there some other way to make this work? It would be nice not to have to build my buildings around this 'feature'.
Thanks in advance,
Matt
Here is the base scene. The window is all one object (not grouped) and is textured with a multi-sub material. All materials are vraymtl.

I right-click the window, go into vray properties, turn on matte. Alpha contrib -1; shadows and affect alpha are on.

Notice that the glass no longer reflects as it is supposed to.
Now, I detach the glass from the rest of the window and make it its own object. I also instance out the glass material from the multi-sub and make it separate and assign it to the glass. Both the frame and the glass have the same vray properties as the image above (matte checked, -1 alpha contrib; shadows and alpha checked)

Now that's better. All I have is the reflections in the window but the glass and the frame are matted, which is what I want. In theory VRay should realize that part of the material is reflective and part isn't and render out the matte reflections properly. It seems as though that because part of the object isn't reflective, that is overrides the part that does reflect.
Is this a bug or is there some other way to make this work? It would be nice not to have to build my buildings around this 'feature'.
Thanks in advance,
Matt
Comment