Introduction to morph targets
A morph target is a deformed version of a mesh. In glTF, morph targets are used to create mesh deformations by blending different sets of vertex positions, or other attributes, like normal vectors, according to specified weights. They are especially useful for facial animations, character expressions, and other types of mesh deformation in 3D models.
- Base Mesh: This is the original, unaltered mesh defined by its vertices, normals, texture coordinates, and other attributes.
- Morph Targets: These are modified versions of the base mesh, where the positions of some or all vertices have been adjusted to create a specific deformation. Multiple morph targets can be defined for the same mesh, each representing a different shape variation.
- Vertex Data: Morph targets include offset data for vertices. A morph target usually adjusts the vertex positions (and sometimes other attributes like normals) of the base mesh. These offsets specify how...