Page 1 of 1
Mask shading on
Posted: Mon Nov 30, 2009 5:25 pm
by super8mm
I have a snake that uses "shading on" using the color white to make a shine effect on the up side.
Here's the problem:
When the snake passes into the shade of a cactus the shine remains and it looks incorrect. I want to mask the "shading on" on the snake but not mask the snake by manipulating shading controls form the bones of the snake or the group.
I did it once by accident and I can't remember how I did it.
Posted: Mon Nov 30, 2009 6:16 pm
by slowtiger
I don't get your setup from your description. If you'd post a screenshot of your layer palette and maybe indicate which layer is shadow and which is mask, we could perhaps help.
Posted: Mon Nov 30, 2009 10:22 pm
by super8mm
Here is the anme file:
http://www.mediafire.com/?ndnnjwjuzwo
I cannot find the way to set it up in order to have the shine on the snake to be masked when the snake overlaps with the black cactus.
Posted: Mon Nov 30, 2009 10:47 pm
by slowtiger
Hm, I suggest you re-think the concept of your scene.
Snake is in front of cactus, and you want it to pass through the shadow. That means that the light comes from the back and the cactus casts a drop shadow to the front.
What you have right now is a shadow in the shape of the cactus and in the same orientation. But you need it flipped and a bit sheared so you have the cactus drop shadow on the ground. I suggest you create a second shadow shape which follows the volume of the snake. The only masking you need is for this shadow.
See
http://www.slowtiger.de/examples/snake2.zip.
Posted: Tue Dec 01, 2009 1:41 am
by super8mm
Nice! But I was hoping that the shine would disappear in the shade. But it did help me accomplish my goal. Thank you.
http://www.mediafire.com/?vju1hn1znnf
You have to render to see the effect.
Posted: Tue Dec 01, 2009 11:53 am
by slowtiger
If you really need to override the shine on the snake, you would've to create it a different way since AS can't treat a shape and its shade differently. Masking only works on complete shapes. You could create the shine as a shape and then get it affected by the mask.
Posted: Tue Dec 01, 2009 7:26 pm
by super8mm
Using a shape for shine works as long as the art stays in the same direction. If not then I can only conclude that what I did must be the only way.
Is it possible to have an invisible object cast a shadow or have shade on it that's visible?
Posted: Tue Dec 01, 2009 7:56 pm
by slowtiger
Since we don't have real light inside an anme file, you can create "shadows" as many as you want - a shadow is just a dark shape.
Posted: Tue Dec 01, 2009 11:38 pm
by super8mm
I'm not explaining myself well...
Is it possible to have an invisible object have a visible effect using layer shading or layer shadow?
Posted: Wed Dec 02, 2009 12:43 am
by slowtiger
No.
If you, say, set a mask layer to invisible, the masking effect on other layers will not happen.