Page 1 of 1

setting Material ID colors?

Posted: Wed Feb 22, 2012 3:10 am
by tehfailsafe
I'm trying to export material ID passes so that I can composite the render better, but I can't seem to figure out how to set the color for the Material ID?

For example, the screen color on a TV model is red, but the tv itself is pink. I can't really seperate those as well as I'd like, so I'd like to have TV color green and screen red, for example.

Re: setting Material ID colors?

Posted: Wed Feb 22, 2012 3:28 am
by Karba
At this moment it is impossible to set custom colors.

Re: setting Material ID colors?

Posted: Wed Feb 22, 2012 3:30 am
by tehfailsafe
Is it done by random then? Can you think of any workaround?

Re: setting Material ID colors?

Posted: Wed Feb 22, 2012 4:07 pm
by gah5118
In photoshop's menu goto select, color range

select whatever color on the layer, then adjust your tolerance as needed

you might need to expand or contract the mask (i mask off each part first to different layers)

hope this helps.

Re: setting Material ID colors?

Posted: Wed Feb 22, 2012 7:33 pm
by tehfailsafe
Yeah, that's what I was trying but it didn't work out.

The colors are too close together, light red, red, dark red... I'm getting bleeding if I make it too tolerant or really sharp ugly edges if I make it too restrictive.

Re: setting Material ID colors?

Posted: Thu Feb 23, 2012 7:12 pm
by tehfailsafe
I figured out a work around if anyone else runs into this.

Duplicate the objects to a new layer and hide the originals. Apply one material to everything so it all has the same MaterialID. Then apply new materials to only the objects you want to mask out. That way you end up with much simpler colors to key, there's only 3 in my case, instead of each material having it's own color in the matte, which was 20+ and based on the randomness of it's color application led to too many similar colors.