Blender: Rig for standard male NPC

From The DarkMod Wiki
Jump to: navigation, search

Blender rig 01.png


Introduction


Arcturus has kindly created a Blender rig based on a standard male npc for use in the Darkmod. The following is a basic guide to what he did. The original thread is here for reference purposes. And here is an attached copy of the Blender file for your convenience. There's also a female version of the rig here.

Lets begin

  • On layers 1, 6, 7, 8 there are different character models. On layer 3 there is a rig imported from the game. It looks like this:

Blender rig 02.png


  • It's very difficult to animate so I made second rig, which you can find on layer 2:

Blender rig 03.png


  • It's the same bones as the game model plus extra bones, you will need to use this rig to make animations. The rig from layer 3 will automatically copy all of its movements. To make it more tidy some of the bones are hidden (but you can still see them in edit mode). Arcturus also created custom models for some of the bones (those models are stored on other layer), this is how it looks with custom bone shapes:

Blender rig 04.png


  • Use round bones to position hands:

Blender rig 05.gif


  • Use cube bones to position elbows and knees:

Blender rig 06.gif


  • The Pelvis bone has disabled rotation (it's important), use it to position upper body:

Blender rig 07.gif


  • Use Pelvis 2 and Hips to rotate hips:

Blender rig 08.gif

Blender rig 09.gif


  • You can move and rotate 'foot_ik_main' and 'rotate roll_main' to position legs:

Blender rig 10.gif


  • Spine bones copy rotation of previous bone in the chain, so if you rotate the first one other bones in the chain will also slightly rotate in the same direction. But you can turn it off if you wish:

Blender rig 11.gif


  • The same with fingers:

Blender rig 14.gif


  • For more advanced option, see - drivers. There are sliders that define whether certain bones will follow other bones:

Blender rig 12.gif


  • And that's useful when you want hands to stay in place e.g. when character tries to push something heavy. The same with the neck:

Blender rig 13.gif


  • In order to export the animation you will have to first bake it, vhose the rig from layer 3 and press space bar and type in "Bake Action".

Conclusion

The above tutorial should hopefully help some of you budding animators, or maybe a mapper who needs a custom animation for their mission etc.

Hope you enjoyed it.