upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/gameinput_test.cpp
diff options
context:
space:
mode:
authorcxchhh <cxchhh@users.noreply.github.com>2026-11-22 16:17:37 +0000
committercxchhh <cxchhh@users.noreply.github.com>2026-11-22 16:17:37 +0000
commitb745f93946d647bf1a93aa2e3230c50f9cf8cdd0 (patch)
tree9ed2825d8163030a65e350e0d686b9054a87818f /runtime/test/gameinput_test.cpp
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
anim_glb: export a skinned part with its skeleton and clips as an animated GLB
tools/anim_glb.py reads a fragment's skeleton (drawable +0x18: bone records, inverse bind matrices, parents), binds part meshes to it through the model bone list at grmModel+0x28 (ASSET-12 skin layouts), and writes decoded anim.rpf clips as glTF animations: bonerotation/bonetranslation/bonescale drive the joint with the track's bone hash, bone hash 0 drives a mover node, and a clip entry maps animation time t to (t - start) / rate. --coverage counts how many clip bone tracks name a skeleton joint. docs/character_skeleton.md: the instance table was read 0x40 bytes late, so each row paired a bone with the next bone's TRS. Read from the record start, the default transforms compose to the stored inverse bind matrices (5.1e-6 m female, 3.3e-6 m male, all 14,212 skeletons in packs.rpf within 1e-3). The model bone list is at +0x28, not +0x20. New "Animated glTF export" section with the measured counts; animation.md, models.md, character_models.md and the docs index follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions