PDA

View Full Version : Masking fur...


Afterglow
10-01-2009, 03:05 AM
Hello again.

Recently have been trying to render out a scene with a particle explosion in it. There is grass on the surface in front of it, so I was trying to find a way to render it out so as to mask the explosion with the blades of grass.

I have tried plugging in the 'use background' outcolor to the furdescription's base, tip, ambient etc colors, but with no luck!

It seems to just render out the grass with a darker texture, and still completely opaque.

How should I go about this?

JohnPetrucci
10-01-2009, 04:34 AM
apply a surface shader to the grass and set the color to white, and apply a surface shader to everything else and set its color to black. Render it and you will get a black and white image. if you're using after effects you can use that black and white render as a luma mask. (and I'm pretty sure any other comp software can do that)

Afterglow
10-06-2009, 02:15 AM
I tried to set a surface shader on the grass, but it all just stopped rendering? How do you plug in a shader into the furdescription?

This may not work however, because I have volume particles going over the grass which I wanted to mask, so a Usebackground to mask the grass out would be easier than surface shading the blast particles...

Any ideas?

zerogee
10-06-2009, 05:29 PM
I am not sure that I absolutely understand your final goal but try this:

Puppet has and override technique for his p_HairTK shader. Just follow this tutorial (http://www.djx.com.au/blog/2009/04/14/p_hairtk-p_hairtk_shadow-p_shader_replacer/)then plug the p_HairTK into a p_maya_shadingengine (input color) then set the matte opacity to black hole. If everything goes well what u end up is a grass which mattes out the background. I am not sure if it works but it may worth for a try...

CGTalk Moderation
10-06-2009, 05:29 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.