Skip to main content

Crate mmd_anim_runtime

Crate mmd_anim_runtime 

Source
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§

append_primitive
ik_primitive

Structs§

AnimationClip
AnimationClipBuilder
AppendTransform
AppendTransformInit
BoneAnimationBinding
BoneIndex
BoneInit
BoneMorphOffset
BoneSample
ClipFrameBounds
ClipSample
DccCubicSegment
DccScalarSegment
DensePoseSequenceView
FlatAppendTransformInput
FlatBoneInput
FlatBoneMorphInput
FlatGroupMorphInput
FlatIkLinkInput
FlatIkSolverInput
FlatMorphInput
GroupMorphOffset
HostPoseView
IkAngleLimit
IkLink
IkLinkInit
IkSolveOptions
IkSolver
IkSolverInit
IkSolverRuntimeStats
InterpolationScalar
InterpolationVector3
LocalAxis
PMX bone local-axis descriptor (bone-local X/Z directions from the file).
ModelArena
MorphAnimationBinding
MorphIndex
MorphInit
MorphKeyframe
MorphOffsetSpan
MorphSample
MorphTrack
MovableBoneKeyframe
MovableBoneTrack
PhysicsStepStats
PhysicsTickConfig
PoseArena
PoseReductionReport
PropertyAnimationBinding
PropertyKeyframe
QuantizedBezier
ReducedBoneKey
ReducedBoneTrack
ReducedMorphKey
ReducedMorphTrack
ReducedPoseSample
ReducedPoseSequence
ReductionTimings
ReductionTolerances
ReductionWorkStats
RuntimeAppendTransformDescriptorV1
An append transform (rotation and/or translation, optionally in local space). A target may have at most one append transform.
RuntimeBoneDescriptorV1
Absolute PMX/MMD-space rest position and per-bone metadata.
RuntimeBoneMorphOffsetDescriptorV1
RuntimeGroupMorphOffsetDescriptorV1
RuntimeIkLinkDescriptorV1
One link in an IK chain.
RuntimeIkSolverDescriptorV1
An IK solver attached to one IK bone.
RuntimeInstance
RuntimeModelDescriptorError
Detailed validation failure. path always identifies the offending descriptor field, including its zero-based array index where applicable.
RuntimeModelDescriptorV1
A host-independent snapshot of all runtime model data needed by v1.
RuntimeMorphDescriptorV1
Bone and group morph offsets. Offsets are grouped by morph_index by the compiler and exposed in ModelArena through spans.
SkeletonSnapshot
VertexMorphOffset
VmdBoneInterpolation

Enums§

FlatModelInputError
HostPoseError
ModelBuildError
PhysicsMode
PoseReductionError
ReductionTarget
RuntimeModelDescriptorErrorKind

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