Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit5597fb7c06

README.md

avatarTemplates.body

The geometry and skeleton of a template body, built from its proportions. Every body is the same mesh topology laid over a skeleton of the VRM 1.0 humanoid bones, so any two proportions give meshes with the same vertex order, triangles and UVs. The body stands in a T-pose with its palms down, facing +Z, +X its left, the ground at y = 0, in metres, and every bone's rest rotation is the identity.

MemberWhat it is
bonesthe bones in skin-joint order, { name, parent }: the VRM 1.0 humanoid bones and headTop, a leaf at the crown
boneIndex(name)a bone's index in bones
tilesthe UV tile of each part of the body (torso, head, leftArm, ..., face), the layout every template body shares
shapesthe face's morph targets in the order a body's weights address them: the VRM 1.0 expression presets
layout(proportions)where every joint stands at rest, with the head's ellipsoid and the heights the body is built around
skin(layout)the skin every template mesh is bound with: joints, parents and inverse binds
rig(layout)the skeleton as a rig.json document
build(proportions)the five meshes (body, and the face's eyes, irises, brows, mouth, which carry the expression presets) and the rig

avatarTemplates.bundle writes what build answers into a world as the template's body bundle.