How to set up a matte from leaves...

Discussions about rendering in SOFTIMAGE©
jacobo
Posts: 41
Joined: 10 Jun 2009, 22:06

How to set up a matte from leaves...

Post by jacobo » 16 Oct 2012, 22:03

Hi;

I have a scene where my character is seen walking around and is surrounded by trees with leaves that are alpha stenciled. I have a pass in which all objects in the scene except for the character are matted out with a black-zero alpha constant shader, all objects are that have these shader on their partition are cropped out of the character in the alpha channel. But when it comes to doing the same to the alpha stenciled leaves, I just couldn't. How am I supposed to treat these alpha stenciled leaves so as to have them cropped out of the character's alpha?

Thanx in advance for all replies;

AJ

Zafar Iqbal
Moderator
Posts: 169
Joined: 26 Oct 2009, 09:04

Re: How to set up a matte from leaves...

Post by Zafar Iqbal » 18 Oct 2012, 02:53

You have a pass (and corresponding materials) that gives you a black/white render?

Create a material for the leaves - pretty much exactly as the normal "white matte" material, but include sprite node or whatever you used to clip the leaves. There are other ways too, but this might be the most straight forwards for now.
- Zafar Iqbal

User avatar
Rork
Posts: 1359
Joined: 09 Jul 2009, 06:59
Location: Close to The Hague, Netherlands

Re: How to set up a matte from leaves...

Post by Rork » 18 Oct 2012, 10:06

or.... make both shader setups in the same material, and add a boolean node at the end.
Now you can have an override to switch between setup A or B.
Sometimes this is easier than maintaining several materials.
SI UI tutorials: Toolbar http://goo.gl/iYOL0l | Custom Layout http://goo.gl/6iP5xQ | RenderManager View http://goo.gl/b4ZkjQ
So long, and thanks for all the Fish!!