I’ve been trying to use the linear workflow and render elements for better control over my renders, but I’ve been running into an issue getting Multimatte objects visible behind glass AND having the back to beauty composite work properly.
Basically what I have in my scene is a number of objects in a glass case. They each have object IDs that I use in a multimatte render element. The multimatte element only shows up behind the glass if the glass material has (in its refract settings) ‘affect channels’ dropdown box set to ‘all channels’.
However, in the final composite, this leads to an incorrect back-to-beauty composite because all the glass and everything behind it is calculated multiple times (the refraction render pass ends up way overexposing the glass areas).
If I turn the glass material refract ‘affect channels’ dropdown box to ‘color+alpha’ the back-to-beauty composite works properly, but the objects behind the glass are no longer visible in the multimatte pass.
Here are two photoshop files that show what I’m taking about.
The first link has the multimatte working properly but the back-to-beauty composite is overexposed.
The second link has the back-to-beauty composite correct but I can’t see the multimatte objects behind the glass.
Is there any way to get the multimatte pass to show the objects behind the glass, AND to have the back-to-beauty composite?
Yes, there is.
MultiMatte could be only rendered trough reflective/refractive materials when Affect Channels is set to All Channels.
In that case however the contribution of the reflections/refractions is stored twice, in the reflection/refraction render elements as well as in all other elements like Lighting/GI etc.
In order to remove the duplicated contribution you need to know for which objects Affect Channels is set to All Channels and for which it is Affect Color Only. Those with All channels should not include any information from the Refraction/Reflection elements, this could be done with masks from multimatte and etc.
Working with both states, Affect All Channels and Affect Color Only could complicate the compositing quite a lot depending on scene complexity. A way to simplify things would be to either work with all materials set to All Channels or to Color Only. When working with All Channels approach you may completely avoid the refraction/reflection render elements since the whole information should be held by other elements.
This is a topic that will be further improved for the future versions of the product.
The problem with masking out the ‘all channels’ materials with multimatte from the reflection/refraction passes is that the scene doesn’t perfectly recreate the beauty pass anymore. One example of this would be with frosted glass materials, which seem to need the refraction pass in order to have a smooth look to them. Otherwise, the frosted glass looks very grainy. That smoothness to the glass must not be stored in any other pass.
The second solution where I just get rid of the reflection/refraction passes entirely and work with all materials set to all channels isn’t satisfactory either because the reflection pass to me isthe most important to have as a separate layer in the final composite.
This is a topic that will be further improved for the future versions of the product.
Ideally, if there was an additional option under “color only, color + alpha, all channels” that was “color + alpha + multimatte”, that would solve this problem. Easier said than done though, I’m sure.