rig.md 2.43 KB
Newer Older
Hui Wang's avatar
Hui Wang committed
1
[[Home]](/docs/index.md)  [[User Guide]](/docs/guide/guide.md) [[Mesh Edit]](/docs/meshedit/overview.md) [[Path Tracer]](/docs/pathtracer/overview.md) [[Animation]](/docs/animation/overview.md)
2

Hui Wang's avatar
Hui Wang committed
3
---
4
5
# Rig

Vidya Narayanan's avatar
Vidya Narayanan committed
6
### Rigging Setup
7

Vidya Narayanan's avatar
Vidya Narayanan committed
8
9
10
11
12
Select the `Rig` tab to create a skeletal rig for an object.

You can create new bone by first selecting a parent joint and pressing `New Bone`, then click anywhere else on the object to place the bone. From thereon, you can repeat this process to create a chain of bones connected along the selected joint.
If you want to branch off at a joint, simply click on the joint to branch off of, then start another chain by adding a new bone from there.

Hui Wang's avatar
Hui Wang committed
13
<video src="rigging_mode/guide-rigging-1.mov" controls preload muted loop style="max-width: 100%; margin: 0 auto;"></video>
Vidya Narayanan's avatar
Vidya Narayanan committed
14
15

To view a rigged example, see `media/human.dae` example and select the object in the Rig tab to view its joints.
Vidya Narayanan's avatar
typo    
Vidya Narayanan committed
16
Once you've implemented forward kinematics the skeleton should be setup like so:
Vidya Narayanan's avatar
Vidya Narayanan committed
17

Hui Wang's avatar
Hui Wang committed
18
![rigged-human](./rigging_mode/guide-rigging-human.png)
19
20
21
22
23



### Editing Skinning Weight Threshold Radius

Vidya Narayanan's avatar
Vidya Narayanan committed
24
25
Each joint has an associated `Radius`  which controls the part of the mesh influenced by the selected bone during animaton. The radius is visualized by the blue capsule around each bone and can be edited using the menu. The position of the joint can also be edited using the `Extent` values in the menu.

Hui Wang's avatar
Hui Wang committed
26
<video src="rigging_mode/guide-rigging-2.mov" controls preload muted loop style="max-width: 100%; margin: 0 auto;"></video>
Vidya Narayanan's avatar
Vidya Narayanan committed
27

Hui Wang's avatar
Hui Wang committed
28
Note that rigging only uses extents of the bone for skeleton setup, joint pose does not influence the skeleton. Once rigging is done, the object can be posed by changing joint rotations in the [animate](/docs/guide/animate.md) mode.
29

30
31

## Inverse Kinematics
allai5's avatar
allai5 committed
32
Instead of computing the positions of the bones from the joint poses (forward kinematics), in inverse kinematics, joint positions are computed from target positions.
33
34
To associate a target position with a joint, select `Add IK` and edit the target position. Multiple target positions can be associated with the same joint but targets need to be explicitly enabled using the checkbox.

Hui Wang's avatar
Hui Wang committed
35
In the [animate](/docs/guide/animate.md) mode, once inverse kinematics is implemented, joint rotation(pose) is updated based on the enabled IK handles.
36

Hui Wang's avatar
Hui Wang committed
37
<video src="rigging_mode/guide-ik.mp4" controls preload muted loop style="max-width: 100%; margin: 0 auto;"></video>
38

39
40
41