Combined matte pass using writeToColorBuffer

combined matte pass

Here’s a way to output single matte pass for multiple objects/shaders using writeToColorBuffer node in Mental Ray. This is handy in situations when you want a combined matte pass for various shaders applied to multiple objects. For e.g: say you have a room where roof comprises of various elements like main roof, fan lights, false ceiling boards etc. Now to separate the complete roof in composite you would want a single matte pass but writeToColorBuffer node takes only single shader as an input.

 JS_MultiLayer shader from Jan Sandstörm comes handy in such situations as it allow us to layer multiple shaders. Once we combine all shaders we then feed it to writeToColorBuffer.

There is one more step to do before we can get the combined matte pass. WriteToColorBuffer works for shaders which are applied to objects in the scene but if we apply the combined JS_Multilayer shader to objects then we may not get other required passes like color, master beauty etc. as we want them. So rather than applying the JS_Multilayer shader to objects in scene we plug it in the “shading group” of the shaders for which we need the combined matte pass. Dont worry if you dont understand what this means as I have attached a scene file so you can have a look at the connections.

And no matter how hard some men might try, they see their cialis australia prices male member as an extension of their manhood. When cheap levitra porn is an absolute no for your partner, there are other things you can do. Thus, price of viagra 100mg it is suggested to make positive changes in your lifestyle, you are most likely to overcome your erection problems. Usually sildenafil best price it is that the sperm count may reduce and the fertility level as well.

One thing I noticed is this procedure works better with mia_x, mia_x_passes and JS_Multilayer but somehow doesn’t give needed results with Maya shaders like Lambert, Blin etc.

Download scene file


Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.