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.
setting Material ID colors?
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
- tehfailsafe
- Posts: 229
- Joined: Sun Nov 07, 2010 9:27 pm
windows 7 64 bit| GTX580 1.5Gb x2 | Intel 2600k @ 4.9 | 16gb ddr3 | 3ds max 2012
- tehfailsafe
- Posts: 229
- Joined: Sun Nov 07, 2010 9:27 pm
Is it done by random then? Can you think of any workaround?
windows 7 64 bit| GTX580 1.5Gb x2 | Intel 2600k @ 4.9 | 16gb ddr3 | 3ds max 2012
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.
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.
Windows 8.1 | i7 950 | GTX 780ti | 24gb ddr3
- tehfailsafe
- Posts: 229
- Joined: Sun Nov 07, 2010 9:27 pm
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.
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.
windows 7 64 bit| GTX580 1.5Gb x2 | Intel 2600k @ 4.9 | 16gb ddr3 | 3ds max 2012
- tehfailsafe
- Posts: 229
- Joined: Sun Nov 07, 2010 9:27 pm
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.
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.
windows 7 64 bit| GTX580 1.5Gb x2 | Intel 2600k @ 4.9 | 16gb ddr3 | 3ds max 2012