Expand description
Renderer-independent MMD animation runtime core.
The core crate intentionally has no Wasm, Unity, parser, or renderer dependencies. Wrappers pass pre-normalized model and animation IR into this crate and read contiguous output buffers back.
Re-exports§
pub use append_primitive::AppendPrimitiveInput;pub use append_primitive::AppendPrimitiveOutput;pub use append_primitive::solve_append_transform;pub use ik_primitive::IkChainDefinition;pub use ik_primitive::IkChainLinkDefinition;pub use ik_primitive::IkChainPoseInput;pub use ik_primitive::IkChainSolveOutput;pub use ik_primitive::IkChainSolver;
Modules§
Structs§
- Animation
Clip - Animation
Clip Builder - Append
Transform - Append
Transform Init - Bone
Animation Binding - Bone
Index - Bone
Init - Bone
Morph Offset - Bone
Sample - Clip
Frame Bounds - Clip
Sample - DccCubic
Segment - DccScalar
Segment - Dense
Pose Sequence View - Flat
Append Transform Input - Flat
Bone Input - Flat
Bone Morph Input - Flat
Group Morph Input - Flat
IkLink Input - Flat
IkSolver Input - Flat
Morph Input - Group
Morph Offset - Host
Pose View - IkAngle
Limit - IkLink
- IkLink
Init - IkSolve
Options - IkSolver
- IkSolver
Init - IkSolver
Runtime Stats - Interpolation
Scalar - Interpolation
Vector3 - Local
Axis - PMX bone local-axis descriptor (bone-local X/Z directions from the file).
- Model
Arena - Morph
Animation Binding - Morph
Index - Morph
Init - Morph
Keyframe - Morph
Offset Span - Morph
Sample - Morph
Track - Movable
Bone Keyframe - Movable
Bone Track - Physics
Step Stats - Physics
Tick Config - Pose
Arena - Pose
Reduction Report - Property
Animation Binding - Property
Keyframe - Quantized
Bezier - Reduced
Bone Key - Reduced
Bone Track - Reduced
Morph Key - Reduced
Morph Track - Reduced
Pose Sample - Reduced
Pose Sequence - Reduction
Timings - Reduction
Tolerances - Reduction
Work Stats - Runtime
Append Transform Descriptor V1 - An append transform (rotation and/or translation, optionally in local space). A target may have at most one append transform.
- Runtime
Bone Descriptor V1 - Absolute PMX/MMD-space rest position and per-bone metadata.
- Runtime
Bone Morph Offset Descriptor V1 - Runtime
Group Morph Offset Descriptor V1 - Runtime
IkLink Descriptor V1 - One link in an IK chain.
- Runtime
IkSolver Descriptor V1 - An IK solver attached to one IK bone.
- Runtime
Instance - Runtime
Model Descriptor Error - Detailed validation failure.
pathalways identifies the offending descriptor field, including its zero-based array index where applicable. - Runtime
Model Descriptor V1 - A host-independent snapshot of all runtime model data needed by v1.
- Runtime
Morph Descriptor V1 - Bone and group morph offsets. Offsets are grouped by
morph_indexby the compiler and exposed inModelArenathrough spans. - Skeleton
Snapshot - Vertex
Morph Offset - VmdBone
Interpolation
Enums§
- Flat
Model Input Error - Host
Pose Error - Model
Build Error - Physics
Mode - Pose
Reduction Error - Reduction
Target - Runtime
Model Descriptor Error Kind
Constants§
- RUNTIME_
MODEL_ DESCRIPTOR_ VERSION_ V1 - The only descriptor version understood by this crate.
Functions§
- build_
append_ transforms_ from_ flat - build_
append_ transforms_ from_ flat_ iter - build_
bones_ from_ flat - build_
ik_ solvers_ from_ flat - build_
ik_ solvers_ from_ flat_ iter - build_
morph_ init_ from_ flat - build_
morph_ init_ from_ flat_ iter - build_
morph_ init_ from_ offsets - Build the canonical grouped morph tables used by every runtime input adapter. Inputs retain their source order within each morph bucket while this function owns span construction, index checking, and cycle traversal.
- compile_
runtime_ model_ descriptor_ v1 - Compile a validated v1 descriptor into the immutable runtime arena.
- reduce_
dense_ pose_ sequence - reduce_
dense_ pose_ sequence_ with_ worker_ count