rigging 2 bones to one shape

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Mayfly
Posts: 70
Joined: Wed Dec 21, 2011 12:37 pm

rigging 2 bones to one shape

Post by Mayfly »

hi guys,

i'm trying to rig two bones to one are shape, but i'm having problems. i know it's possible to break to are up into two shapes, but it is also possible to rig two bones to one shape. since i have already created the character, i don't want to dissect it. when i bind one bone to the shape, the other gets left in suspension. in this video, you can see the results i want, but he doesn't explain how he did it, as it is not part of the tutorial. http://www.youtube.com/watch?v=-9weqs4JuFU. in the beginning, you can see he has two bones bond to one rectangle.

dissecting the arm into two part wouldn't be a big deal, but i also want two bones in one foot, and that is what would give me the most problems, as the shoe has a lot of detail.

thanks in advance.
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 3:31 am
Location: New Zealand

Re: rigging 2 bones to one shape

Post by funksmaname »

so you probably want to use flexi-binding? (using bone influence?) make sure your bones are parented correctly, " when i bind one bone to the shape, the other gets left in suspension" makes it sounds like the lower bone isn't parented to the higher one.

The thing you have to watch is that this influence will affect ALL layers it is over so that's why you might see people spread their characters limbs far appart from eachother on frame 0. You then use the 'offset bone' tool to bring them back together
User avatar
heyvern
Posts: 7045
Joined: Thu Sep 01, 2005 8:49 pm

Re: rigging 2 bones to one shape

Post by heyvern »

First off, you can't "bind" points to more than one bone. However, the default bone binding allows multiple bones to control one point based on the bone's influence and proximity to the point. Once you bind points to a single bone no other bone can move it (unless you use smart bones which is another topic entirely).

In that video it's not clear exactly how the bones control the points but I could make a guess. There are actually a few ways to do this.

You see in that video that the box has 6 points, 2 on each end and 2 in the middle. The two bones "join" at the middle where the two middle points are.

No binding of points is needed. The type of bone influence over points is set in the layer's properties "Bones" tab. The default is Flexible binding. This means ALL bones effect ALL points. Based on strength and proximity determines how much influence each bone has. The other option is Region binding. This is more "targeted" option. A point is only controlled by bones whose strength influence overlaps the point. Other bones that don't "overlap" the point will have no effect on it.

You can override the default bone influence described above by selecting a bone, selecting points and using the "Bind Points" tool, bind specific points to ONE bone. No other bone will have any influence on points that are bound to a bone.

In the video the sample file is very very simple with only 2 bones. Based on that the type of bone influence (flexible or region binding) would make very little difference. Also there is no need to bind points to bones. The bone influence automatically will control the points without binding any points to bones.

The bone's strength and proximity to the points determines which bone controls the points:
The first bone controls the 2 end points on the left
The second bone controls the 2 end points on the right
Both bones share control of the middle points because the "strength" of each bone overlaps over the middle points.

Another possible option would be to bind the left points to the first bone and bind the right points to the second bone and leave the middle points set with "flexible binding". The result is very much the same for any of these possible solutions, however this is a very very simple example. Anything with more bones and more points could give much different results.

The main focus of the video is about setting up smart bones. This is probably why there wasn't any description of the type of bone binding being used because smart bones is something "different" and assumes you know the basics of bone binding. Before learning about smart bones you should review bone and point binding.
Mayfly
Posts: 70
Joined: Wed Dec 21, 2011 12:37 pm

Re: rigging 2 bones to one shape

Post by Mayfly »

figured it out. you have to bind to points
Post Reply