NAME
Part — one piece of a creature
SYNOPSIS
Part(name, mat, geo, bones, mesh="body")
DESCRIPTION
Holds a piece's name, its material (a key of the creature's colours), its shape (V, N, I), the bones it follows, the mesh it belongs to, and its expressions. The body, ears, tail and feet belong to the "body" mesh; the eyes, highlights, cheeks, smile and mouth to the "face" mesh, which carries the morph targets.
PARAMETERS
name: such as "Ear_L"; the figures pick stages by these names. mat: the material's key, such as "body" or "eye". geo: (V, N, I). bones: one bone's name (the whole part follows it), or a function V -> [{bone: weight}, …], one per vertex. mesh: "body" or "face".
NOTES
part.morphs maps a target's index to the part's vertex positions in that target; targets_for_face() fills it.
INNER HELPERS
Defined inside it, and documented here: __init__.
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
