ADD_MESHES(3VRM)Pyon manual · Mochi and Onigiri as VRM 1.0 avatars (tools/make-vrm.py, Python)ADD_MESHES(3VRM)

NAME

add_meshes — the Body and Face meshes, skinned, the face with its expressions

SYNOPSIS

add_meshes(g, cr, mats, jindex)

DESCRIPTION

Two skinned meshes, each one primitive per material. Every vertex gets its four strongest bones and weights summing to 1 (bones with no weight are left out, as the glTF validator asked). The Face mesh also gets the seven morph targets as position deltas (zeros for parts a target leaves still). The mesh nodes stand at the scene's root, as glTF asks for skinned meshes. A creature without face parts (a stage of the figures) gets no Face mesh.

PARAMETERS

g: the GLB; cr: the creature; mats: from add_materials(); jindex: from add_skeleton().

RETURN VALUE

(face node or None, [mesh nodes]).

SEE ALSO

Part(3vrm), targets_for_face(3vrm), build(3vrm)

SOURCE

tools/make-vrm.py, line 507

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0