AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk Composite, Toxik and Combustion / General Discussion / Using Material ID as mask
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Using Material ID as mask
Rate this thread
 
52154
 
Permlink of this thread  
avatar
  • Midge
  • Posted: 09 February 2011 02:53 AM
  • Location: Antwerp
  • Total Posts: 33
  • Joined: 27 October 2009 08:23 AM

Hey everyone,

I’m fairly new to compositing and have a pretty basic question, but I can’t seem to get my head around which tool to use.

Working in Composite 2011, I’ve figured out how to get my Material ID’s as colours from my exr file using the PXL Colorize Material ID.

I’d now like to use one of these colors as a mask for a Glow effect, but I’m not finding the easy way of doing so… I know this is compositing 101, but any help would be greatly appreciated.

All I want to do is be able to color pick one of the matrial ID’s and isolate it, and basically use that as an effect mask.

Thanks in advance,

Ryiu



i7-2600K, 16GB RAM, GeForce 560 Ti - Win7 SP1 - Max 2011 SP2 / 2012 SP2

Replies: 1
/img/forum/light/default_avatar.png

well, this is unfortunately not as easy as it is in combustion, but here we go:
once you have it extracted, use a keyer, key out the color you want for masking, use the alpha of that and connect it to the mask input of a tools node ( that’s the black input socket ). maybe you need to use the inverted alpha. depends.
on a side note: i now mat-ids are convinient, because you can store all ids in one file. but you also might want to look into the option to render out the mat-ids in single files. or as rgb-mattes. it would avoid having to key the color later in compositing. ... depends, of cause how much ou actually use ... on the other hand png sequences are small…

cheers,
rayk

Author: hemmerli

Replied: 09 February 2011 04:00 AM  
avatar
  • KiboOst
  • Posted: 09 February 2011 03:53 AM

several way, some really esay one : basically, each node got a mask input, just plug your selection into and voilà.

http://area.autodesk.com/for...g-object-id-in-composite/

http://area.autodesk.com/for...material-id-as-selection/



3dsmax 2012 x64
Core i7 3930K, 16Gb, GTX580 3Gb, win 7 pro x64

Replies: 0
avatar
  • Midge
  • Posted: 09 February 2011 07:15 PM

Wow, thanks for the quick replies guys!

I’ve managed to get it working now, so that’s a big step forward. :)
One thing I’ve noticed now is that the blending coming out of 3ds max for the different materials is a bit harsh.

Is there an easy way of “softening” the edges of the alpha, or maybe even tightening then?  I know it’s ann odd description, so if nobody really understands what I’m trying to get at that’s fine. :)



i7-2600K, 16GB RAM, GeForce 560 Ti - Win7 SP1 - Max 2011 SP2 / 2012 SP2

Replies: 1
/img/forum/light/default_avatar.png

i guess you are refering to the edges of the mat-id’s - that they are rough, not anti-aliased ....
well, that is inherent to the method. either there is this material applied, or it is not.
you could use a coverage channel to help overcome this “short comeing” , but i thin the way mr produces such a coverage channel is somehow broken. at least, it doesn’t look as i would expect it. anyway, there are other ways to improve the edges as kibo pointed out.

cheers,
rayk

Author: hemmerli

Replied: 09 February 2011 09:29 PM  
avatar
  • KiboOst
  • Posted: 09 February 2011 07:32 PM

There is a lot of alpha/channel tools.
First, look ar your input, image import tab, and check premultiply options. Try pressing unpremultiply then guess button.

On you alpha, set what you need (set alpha, extract alpha etc) and go in tools, alpha. You have a lot of tools there. You could try Control Edge node, then on the control edge curve move the middle point to bottom right, you will see immediately what it can do.
Feel free to try some nodes, to familiaritate you with composite tools. They are very similar in all packages like nuke, just sometimes different names.



3dsmax 2012 x64
Core i7 3930K, 16Gb, GTX580 3Gb, win 7 pro x64

Replies: 0
avatar
  • Midge
  • Posted: 09 February 2011 09:11 PM

Yeah, I notices the Keyer has some stuff built in as well so I managed to squeeze out what I needed.
Again, thanks for the swift reply!



i7-2600K, 16GB RAM, GeForce 560 Ti - Win7 SP1 - Max 2011 SP2 / 2012 SP2

Replies: 0
avatar
  • visualz
  • Posted: 16 February 2011 10:27 AM

you might wanna check out this AWESOME script.  ive been promoting this sucker like mad when i visit customers and it works killer to rip out matte passes super fast.

http://www.scriptspot.com/3ds-max/scripts/quick-passes

//gD



gary m. davis
3d animation & compositing specialist
http://area.autodesk.com/blogs/garyd

Replies: 0
avatar

KiboOst 09 February 2011 03:53 AM

several way, some really esay one : basically, each node got a mask input, just plug your selection into and voilà.

http://area.autodesk.com/for...g-object-id-in-composite/

http://area.autodesk.com/for...material-id-as-selection/

Good information in this thread, although the links I can’t access ?



Replies: 1
/img/forum/light/default_avatar.png

http://area.autodesk.com/forum/t50805
http://area.autodesk.com/forum/t51630

@KiboOst - best to use the “permlink” rather than the long address you see in your browser - they don’t always work, as in this case.

Author: Steve_Curley

Replied: 30 July 2012 03:13 AM