Overlapping vector shapes

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Kiiryu
Posts: 23
Joined: Thu Oct 09, 2008 11:18 pm
Location: Location:

Overlapping vector shapes

Post by Kiiryu »

Hello, I'm new here so don't be surprised if I ask stupid questions.

I'm trying to make a simple vector character, but I can't figure out how to make certain parts overlap. I want all the parts to be filled with white and outlined in black like this...

Image
But as you can see, that does not happen when parts of the body overlap.
Image
User avatar
synthsin75
Posts: 10276
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Post by synthsin75 »

:lol: Nice example of the problem.

What you need to do is divide the shape where you want it to possibly overlap. For that arm it would be from the armpit to the shoulder.

You'll want to fill these shapes separately. (I.e. body, arms, legs, etc.) You can then either use the hide edge tool to hide the lines you don't want to show, or you can create the shapes without an outline and add a single outline around the whole thing.

Shapes only do this when they 'fold' in on themself. So separate shapes solve the problem.

:wink:
User avatar
slowtiger
Posts: 6256
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post by slowtiger »

Your illustration made me laugh so much! Thanx!

synthsin already explained it. You need several shapes which just appear as one. Much work in AS is spent in adjusting outline ends so it looks like one continuous line.
Kiiryu
Posts: 23
Joined: Thu Oct 09, 2008 11:18 pm
Location: Location:

Post by Kiiryu »

Thanks a lot for replying so fast! That solved the problem. ^_^

I've already run into some more problems, but I guess thats all part of starting out. I'm gonna mess around with it a bit and get more framilier with the program.
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

hidden line solution!

Post by funksmaname »

Hey!
I've worked out a way to have the line show/hide automatically using layer ordering... give it a try!

this is the basic shape - with a line to seperate the arm and body:
Image

Below is the first fill shape - like you did originally (except the line seperating the arm and body is there, this could have been added after doing this fill, it makes no difference at this stage
Image

now move the arm over to create the empty space and fill in the triangle here - its important to untick the 'enable outline' box so you just get a white fill
Image

Finally, select just the line, and fill it (making just an outline)... select the line with Q, and send it to the back of the stack, giving you the stack order below (where 1 is bottom, 3 is top)
Image

As you swing the arm over the body, the back line shows and hides!
I'm not sure how effective this is on a more complicated design, i've yet to experiment with it... :)

BTW - you may wonder why i have the extra point half way on the seperation line... two reasons
1) you can curve it out so when you bend the arm over it has some shape
2) its the only way i could create the full shape to fill after adding that line, i needed to de-select the middle point to create a large shape rather than the body OR the arm...(?)

heres a rubbish example :)
Image
Last edited by funksmaname on Fri Oct 10, 2008 12:28 pm, edited 1 time in total.
User avatar
synthsin75
Posts: 10276
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Post by synthsin75 »

Nice tip, Funksmaname!
Kiiryu
Posts: 23
Joined: Thu Oct 09, 2008 11:18 pm
Location: Location:

Post by Kiiryu »

Just so I get this straight, what are you using to move the arm? It only goes invisible for me when I move the arm with a bone. (region mode

Edit: Woah, bonus, I just noticed the bone constraints menu O:
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post by funksmaname »

i was just using point motion... if you used a bone, you'd have to scale it rather than rotate it.
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Post by chucky »

Nice logic, funk :D
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

BRILLIANT!

I love that trick!

-vern
Post Reply