Morph targets: a ball that becomes a cube
Watch the sphere flatten into a cube and stretch. Each target is a full copy of the 561 vertex positions.
Morph targets blend a mesh between stored shapes. Skinning bends a mesh with a skeleton of bones. You animate both, and see what goes wrong when a skinned mesh is cloned the wrong way.
Change the code and press Run (Ctrl+Enter). Predict what will happen first, then break it on purpose and read what changes. Your edits are saved and match the lesson page.
Ready for more? This phase has 6 hands-on exercises with automatic checks.
Practice questions
Write the code in the editor, run it, then open the model answer to compare.
Make three independent foxes that play different clips.
A mesh has morph targets added after it was created. Make morphTargetInfluences available.
Explain it without notes
When would you use a morph target and when a skeleton?
Why does a skinned mesh made with object.clone() appear in the wrong place?
Console
Nothing logged yet.Expected console output
morph targets: 2 | influences: [ 0, 0 ]
at 0 s: influences 0.00, 0.00
at 1 s: influences 1.00, 0.50
at 2 s: influences 0.00, 0.00
targets added too late: influences = undefined
after updateMorphTargets(): [ 0 ]