💬 In this part of The Secrets of Rigify we dive into the Weight Painting part of the rigging process to refine the things that aren't working with the automatic one, it's a bit of a more dense video but I think there is some valuable information in it worth sharing, stick to the end for a surprise!
Hi, I'm Luciano and this is the Adventures of Lollipop Man.
In today's episode, we have a really dense subject, which is weight painting.
We're going to fix a few issues that we have encountered in a rig.
And then we're also going to connect the eyes and the teeth to the rig.
So bear with me, this ended up being quite longer than I expected it to be.
But at the end of the video, I have a little surprise for you.
So stick around for that.
Remember to like and subscribe and let's get on it.
So, fixing weights.
For this, we need to know a few things.
First of all, in the armature panel,
you can see that there's this little panel that has all of these layers.
And these layers are what you're going to basically use here.
So these rig layers are a representation of those.
What we're going to do now is I'm going to just touch one of these ones.
And this one is the one that has the deformation bone.
Let me make sure that we can see those bones.
So all of these bones are the ones that are currently deforming the geometry.
No other bone in the entire rig deforms the geometry.
Which also can mean that if you want to export for Game Engine,
really, this is the layer of bones that you need to export.
None of the rest.
And your rig will be super light.
Then we have the second layer, which is the mechanic bones, I think it is.
Or mechanism, I think it is.
These ones are the ones that mainly contain constraints and sometimes helpers.
They're all only meant to drive the other ones.
And we really need to not touch these ones at all.
And finally, we have the orc bones, which I guess are the original bones,
which should be basically the same bones that we had in the meta rig.
Why are they kept here?
Because I really don't know further than this.
That's it, I'm done.
Why is this important?
It's because we need these bones so we can fix the whaling.
So let's fix the whaling on the foot.
I'm just going to move this guy over here, and you'll see why.
We're going to turn on the foot layer, and just one of them.
And I'm going to grab the foot roll, which is this guy in the back.
And then you can see that if I select this one, it rotates correctly.
But when we pivot back, then the heel starts squeezing back in.
And so it's not letting it stay in the floor.
So we're going to create a keyframe with I, the rotations.
I can move this around, and this is going to make my life much easier.
So now I'm just going to hold on to only this bone and shift H
so the rest of them hide away.
Now that I have this, I can shift click my geometry.
And if shift clicking doesn't seem to work, you have to turn off lock objects.
And now shift click the armature, and I can go into weight paint.
And as you can see, this bone doesn't have much of the influence there.
And that's what we want to fix.
So if you don't see these little black points,
it's because for some reason in my blender, this is on by default.
So definitely turn it off so you can follow.
And then we'll see when we want to turn it off.
So now we're going to change to our tools and to the brush.
And we have to set up something important in the brush.
There's two things.
One of them is we want to go to options and turn on mirror.
That way I just do it in this side and the other side will happen on its way.
I do not know what this mirror means because I think it's another type of mirror,
but we really want this one.
And then we want to use auto-normalize.
And basically what auto-normalize will do is that when I paint weights
from that bone to this set of vertices,
it will take away the influence that it might another bone have on.
So if this vertices have a total of one of influence
and you paint one towards this bone,
any other bone that previously had influence will now have zero.
Let's do this.
Auto-normalize X mirror and let's get cracking.
So I'm just going to paint here and you're going to see that now,
as the foot rolls back,
the influence that I just painted tends to keep the foot on the original shape.
So we're going to paint a little bit more.
And now we got a foot that looks back again the original way.
Then I screwed up.
So I'm just going to CTRL Z.
Try not to screw up.
I do it very often.
So you want to see what this was for and turn these guys.
And if we're going to edit,
I could actually grab one of these guys and CTRL plus a couple of times.
And then go back to weight paints.
And now this is a filter.
So I cannot paint outside of those vertices, which is pretty good.
So we can paint this guy and paint all of that.
If we want to go crazy and flood it all,
we just set weight with shift K, which actually could work to do that.
The only problem is that when you do this,
I don't think it doesn't normalize.
Let's try again.
We don't get options.
And then we just go and smooth them out a little bit.
Smooth them out a little bit.
And smooth them out.
And that should be fine.
And then now we just unhide all those bones.
Select our dude.
And actually, we didn't need to do it.
And now you can see it's really pivoting where we put the pivot.
The only problem is that we put the pivot in the wrong place.
Because the pivot should be more or less something like here.
And also, I have to say that the way the foot is shaped, it's kind of wrong.
So there's some compensations to do there.
Let's see how it works in the other foot.
So you see some of the weight painting that we did,
because we didn't do it entirely by hand, didn't work.
And the mirroring function doesn't work.
So I know there is a script by Bayrate that is online
that you can acquire for free.
And that will do the proper mirroring.
So we'll do this one by hand.
Bam!
Delete the keyframe.
Don't need them anymore.
Set this and we keep on going.
So the other guy that had issues is the head.
Let's talk about the head.
We want to grab all the hair and make all the hair completely influenced by the head bone.
So let's do that first.
We'll grab the entire head and go to edit mode.
Press L to select the entire hair.
We'll press Alt A and unselect everything.
Now we select this guy.
And we can just very easily go and look for the name of that bone.
The name of that bone is DeathSpine006.
We're going to open this spine and then just go down a little bit, 006.
And we're going to assign all of the weights to that guy.
If we go back and turn on our face rig.
Bam!
Face.
We're going to turn off those guys here.
On the primary face at least.
Yep.
So if we select this guy.
As you can see, when I assign all of the weights directly to a vertex group,
the weights don't get normalized by default.
And so I'm going to select the hair.
I'm going to shift click so I get one vertex, the active vertex.
This will turn on the vertex weights panel under items.
So now you can see, as I said before, the DeathSpine006 vertex group has one influence.
So full influence.
The problem is, because it's not normalized, all of the other guys have influence as well.
If I normalize again, now if I press the normalize button,
they all get distributed more or less percentually what they should have.
But really, I don't want any of these guys to have it.
So I just click X, X, X, X, X, and then bring it back to one
and then copy it to every single one of the other ones.
This vertex weights panel that I'm talking about
only shows the influence of the several vertex groups to the one vertex.
And now if I move that bone, that guy,
you can see that the hair is not affected, just the forehead.
Again, we just hide this guy and then we'll do something very similar.
We'll just grab that guy.
Control plus, plus, plus, plus, plus, plus.
Select all of the big part of the skull.
Then we probably want to select these guys here.
And we're going to do the same.
Just going to full on depth six and then just get rid of the other ones.
Then copy.
Actually, I don't know if I, yeah, I should probably add that one more as well.
So again, see all of these guys around here that I had selected at zero.
And then now they're not being affected.
The ones over there, the ones over here, of course they are.
Little by little we're fixing this thing.
We're going to select this set of controllers here and we're going to hide everything else.
I'm going to turn on a secondary face as well.
So we get all of the subcontrollers from the eyelids.
Again, hide everybody else.
Before we continue on, I'm going to select the eye,
which really bothers me that it's so blocking.
So I'm just going to turn off my simplify for a bit.
And I'm going to go to just leave it, these guys at one subdivision.
I'm going to apply the subdivision.
So we get this.
And obviously we want to turn off the armatures in both of these guys.
So they're not affected.
When I move this guy down, these guys here,
they should be already doing a little curve.
They should be like this.
So this is the shape we actually want to achieve.
This should be eyes closed.
So we're going to go into our character.
I like to isolate where I'm working because it makes it easier to see and grab stuff.
We're just going to isolate ourselves until this point more or less.
And then shift H.
So let's see who's who here.
So this guy, we're painting again as we did before.
And now I can even just turn on this layer
and I don't even need to touch the other colors.
Let's select this guy here.
We paint.
And then we want to be able to select one of these guys.
I'm going to try start with this bone, which is lid top left.
Lid top left.
One, two, three and zero.
Okay.
Number two, select my geometry.
Paint again.
And you can see it has very little influence on these vertices.
So I'm just going to select that one and then paint it.
And then select that one there and paint it.
And these ones are the closest ones to that bone.
That's the one reason I'm painting it with.
So I'm just going to select.
Control click will help you select the bone.
So shift click will help me select the vertex.
Then again, paint this guy, both of them.
Shift click.
Control click here.
Make sure that these guys are a hundred.
There we go.
Shift click that guy.
And then maybe with a little bit less.
Something like that.
Same thing with this guy.
We're going to select those two vertices.
Maybe just a tiny bit more.
Really slowly adding to that influence.
Again, I want to select that.
When the vertices get too close to the bones, it's really hard to select them.
There, a little bit influence there.
So let's see how this starts working.
As you can see, we start getting something that more or less looks like an eye closing.
And so you need to start trying to figure out how will work best for your character
and for the design and you know.
So you try to also do it in an organic kind of gradienty way.
You're trying to smooth it so that all of those.
That's why you have all those loops so that they can spread out.
I'm just going to do that one again a little bit as well.
Yeah, that's not terrible.
See how it looks with our character.
Yeah, that's, that's pretty bad there.
So those won't have too much influence compared to the rest of them.
And for instance, this thing that we're seeing here is like sharp edge.
That's why also the subdivision goes afterwards.
Now look at it.
Look at it now and look at it before.
So we get these two differences and that what we couldn't control.
So remember to put always a subdivision modifier after the armature.
When you bind your character, just grab every single armature deformer or modifier
and just put it on the top.
So now we get a much, much nicer result.
So yeah, this guy needs also some of our treatment.
And then we do the bottom as well.
See if we can keep it not so terrible.
Again, I'm not a professional rigger nor weight painter.
Just giving you what I know so you can survive as I have.
So yeah, the guy is ugly, but it sort of works.
So if I select all of these guys and I think the weight did transfer this time.
And we got a guy that can close his eyes.
So now that we got the eyes more or less working, we get rid of that animation.
And then now we can fix stuff in the mouth.
We want those teeth to stay with the controllers, which are this one.
Teeth T and teeth B, top and bottom.
So we got one of these controllers for each.
Luckily, our mouth is a separate shape, which is going to make this process much easier.
What I need to do right now to make this incredibly easy is I'm going to go to edit.
I'm going to go x-ray.
I'm going to select the top, the top teeth.
And I'm going to, I'm going to go to here, to my weights.
And I'm going to create a new group.
And this group, I'm going to call it, that will take the group.
Def teeth dot teeth.
And I'm going to assign all of the vertices of top teeth to that.
And I'm going to do another one.
Call it def teeth dot B, right?
And I'm going to do the same with these other dudes and select them.
And they, there you go.
Another thing that you can see is because this object is a separate object,
but we weighted it against the entire armature.
Then it's, it's got all of these vertex, vertex groups that we don't need.
This set of geometry contains teeth and the tongue.
So really all of the vertex groups we need to keep in this object are just the teeth and the tongue.
So let's look for the tongue one.
And there we go.
We've got the three ones corresponding to the three deformation bones.
And we're going to lock them.
We're going to go back to the teeth one.
Teeth one.
And then we're going to lock.
And now I'm just going to press x.
And we're going to click this little down arrow.
And we're going to delete all the unlocked groups.
And now we only have those guys deforming.
The one thing we're missing is that the teeth T and B def don't exist at all.
So I think this was something that they changed.
And I have no idea how to, how to tell them that this was wrong.
Or what's the new supposed way to use it.
But what I'm going to do is I'm going to go back to my org bones.
The last, the last of my layers.
I'm going to select those two teeth bones.
The original ones, the org teeth ones.
And I'm going to rename them.
And then the top one, def again.
I'm going to select them both.
I'm going to move them to my deformation layer.
It's kind of like a hack.
And now I'm going to go to the bone properties.
And click deform on each one of them.
And now you can see the teeth go and snap towards where they are.
So I'll just reset the position of everybody.
The bones go back to their place.
Mouth now is opening the teeth.
They stay where they should stay.
And we get those controllers to move the lower and the upper teeth.
Last thing we're going to do is the eyes.
We get this, which is kind of fleshy.
But the eyes don't move and it's super creepy.
Super, super creepy.
So we're going to just go into our org bones and select the eyes.
And select one of those bones.
The one corresponding to the eye.
And parent it.
Same with the other one.
Select the guy.
Select that guy there.
Bone.
Parent it.
And then you can hide the deformation bones.
And you can see that the eyes are more or less doing what they should.
Yep.
And we're done with the weight painting for now.
I think I gave you enough information to survive the same way I have.
And I hope it proves useful.
Let me know what you do in the comments.
If you have any questions.
I've been responding to all the questions in the previous videos.
And hopefully I've been solving some issues that people have been having.
Which is great.
Which is the whole point of this.
Final thoughts.
Yeah, that's it.
Remember to go in the description.
There's a link for the script from BeyRate.
And smash that like and subscribe button.
And let's go to that surprise that I promised you at the beginning.
Which is me animating a blink from this character on a time lapse.
And if you really like this.
Maybe I could do a video about that.
And explain my approach to animating a blink.
So yeah.
See me next week.