animating shapes hight in layers

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

myles
Posts: 821
Joined: Sat Aug 21, 2004 3:32 am
Location: Australia, Victoria, Morwell
Contact:

Post by myles »

Like many programs, Anime Studio implements fills using an even-odd fill rule. With this technique, the user does not have to be aware of path directions - a circle is just a circle, not a direction also. To draw a donut shape, just draw 2 circles and apply a single fill.

The alternative is to use a non-zero winding rule. However, the drawback of this approach is that the user and the software need to be aware of the direction that a path follows. For instance, when drawing a ring or tyre or donut shape, the outer and inner circles can follow either a clockwise (dextral or dextrorotatory) path or anti-clockwise (sinistral or laevorotatory) path. Only if the two paths follow opposite directions do you get a hole in the middle of the donut, otherwise both shapes get filled.
The same applies to a self-overlapping shape.

The SVG specification has a nice illustration of both techniques - scroll down about a page or two to see the pictures.

Some vector programs offer an easy button to jump between the two fill rules. Many do not - including Anime Studio.

To get an overlapping fill without gaps in Anime Studio, the standard procedure is to break the fill into two separate shapes.
There's an example of using this for Moho 4 here. In Moho 5 and Anime Studio Lost Marble implemented a "hide line segment" feature, so you don't have to create separate fill and line shapes, but the overlapping fill solution is still the same.

Regards, Myles.
"Quote me as saying I was mis-quoted."
-- Groucho Marx
User avatar
Rasheed
Posts: 2008
Joined: Tue May 17, 2005 8:30 am
Location: The Netherlands

Post by Rasheed »

Myles, as always, your explanation is impeccable and to the point. Thanks.
jurjen
Posts: 20
Joined: Fri Jan 27, 2006 1:21 pm

Post by jurjen »

:?
Post Reply