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
How to set up a matte from leaves...
-
Zafar Iqbal
- Moderator
- Posts: 169
- Joined: 26 Oct 2009, 09:04
Re: How to set up a matte from leaves...
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.
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
-
Rork
- Posts: 1359
- Joined: 09 Jul 2009, 06:59
- Location: Close to The Hague, Netherlands
Re: How to set up a matte from leaves...
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.
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!!
So long, and thanks for all the Fish!!