I am trying to create a mask based on materials having certain nodes. In this case I want to filter any shader that uses the Glass BDSF Node, I have this object with a couple of different materials as show below:

enter image description here

I want to have this glass on this cabinet drawer to be picked up by the mask so I give it a pass index of 1 as seen below:

enter image description here

The layout of my compositor:

enter image description here

This set up outputs a blank mask.

While if I set the pass index of the material "wood_furniture_dresser" to 1 and the material "dresser_glass" to 0 the output is:

enter image description here

This creates a mask that covers both the wood and glass even though the glass is a separate material. Is there any way to have a mask with just the glass?

I would appreciate any help you can give me. Thank you in advance

  • $\begingroup$ As of 2.8x we have cryptomatte, ID masks are crappy to work with. $\endgroup$ – brockmann Feb 7 '20 at 16:50
  • $\begingroup$ Tried the cryptomatte node and used the dropper to select the material from properties and unfortunately this does not fix the problem $\endgroup$ – Sam Duignan Feb 7 '20 at 17:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.