



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















Convex average: 0 1 1 0 0 ≤ ≤ = ′ = ∑ ∑ = = i i i i i i w w x w x
v ′ = W ⋅ v
− 1 = ⋅ i i i M W B
To compute shading, we need to transform the normals to world space also Because the normal is a direction vector, we don’t want it to get the translation from the matrix, so we only need to multiply the normal by the upper 3x3 portion of the matrix For a normal bound to only one joint: n ′ = W ⋅ n
Skin::Update() (view independent processing) Compute skinning matrix for each joint: M=W · B
- (you can precompute and store B
instead of B ) Loop through vertices and compute blended position & normal Skin::Draw() (view dependent processing) Set matrix state to Identity (world) Loop through triangles and draw using world space positions & normals Questions:
[ ] N φ φ ... φ 1 2 Ö = v ′, n ′ Rig
The deformed vertex position is a weighted average over all of the joints that the vertex is attached to: W is a joint’s world matrix and B is a joint’s binding matrix that describes where it’s world matrix was when it was attached to the skin model (at skin creation time) Each joint transforms the vertex as if it were rigidly attached, and then those results are blended based on user specified weights All of the weights must add up to 1: Blending normals is essentially the same, except we transform them as direction vectors (x,y,z,0) and then renormalize the results ∑ ′ (^) = ⋅ ⋅ − v W B v 1 i i i w ∑ wi =^1
( )