Bake one runtime model's whole repertoire into rigid part-matrix tables.
built must already be at rest with its world matrices current, because the
merged instance geometry was baked from exactly those rest matrices: what is
stored per sample is posed * rest⁻¹, the transform that carries a
rest-space vertex to where the cycle puts it. The object is left at the last
sampled pose; callers extract geometry before baking, never after.
The poses are the given pose takes (IBakeFormationCycleProps.takes, a
performed member's cycle) or, without them, come from gaitMotion, whose keyframe i of samples sits
exactly at cycle position i / samples. The loop-closing duplicate is
omitted because texture playback wraps the last column to the first. Each sample passes through the same
applyPose used by named performers. This bake passes default
joint axes and no clinical rest frames; a caller using different explicit
axes/rest frames may therefore obtain a different attitude at the same phase.
The table is a sampled Float32 affine approximation, not an exact continuous
rigid rotation or a proof of no-slip foot contact. Its stride uses the
existing lowest-part trajectory heuristic. Returned take textures transfer
to the representation owner; a later take's refusal retires earlier textures.
Bake one runtime model's whole repertoire into rigid part-matrix tables.
builtmust already be at rest with its world matrices current, because the merged instance geometry was baked from exactly those rest matrices: what is stored per sample isposed * rest⁻¹, the transform that carries a rest-space vertex to where the cycle puts it. The object is left at the last sampled pose; callers extract geometry before baking, never after.The poses are the given pose takes (
IBakeFormationCycleProps.takes, a performed member's cycle) or, without them, come from gaitMotion, whose keyframeiofsamplessits exactly at cycle positioni / samples. The loop-closing duplicate is omitted because texture playback wraps the last column to the first. Each sample passes through the same applyPose used by named performers. This bake passes default joint axes and no clinical rest frames; a caller using different explicit axes/rest frames may therefore obtain a different attitude at the same phase.The table is a sampled Float32 affine approximation, not an exact continuous rigid rotation or a proof of no-slip foot contact. Its stride uses the existing lowest-part trajectory heuristic. Returned take textures transfer to the representation owner; a later take's refusal retires earlier textures.