Commit Graph

22 Commits

Author SHA1 Message Date
7a5270a1b4 anim_glb: bind weighted bones outside the skeleton as extra rest-pose joints
A clothing part whose weighted cloth or accessory bones are not in the master skeleton was refused whole. Each such hash now becomes a joint bone_0x<hash> under the skeleton root with identity local transform and the root's inverse bind, so the rest pose is unchanged; clips can still drive it.
2026-11-24 21:29:07 +01:00
7bf36e14d5 anim_glb: stage --report JSON so write failure keeps previous file 2026-11-24 00:16:18 +03:00
7aba944f1a anim_glb: reject clip selectors outside animated export (#6875)
Squash-merged after diff review of PR #6875 - anim_glb: reject clip selectors outside animated export
2026-11-23 09:46:02 -06:00
1c7455760d anim_glb: refuse a --jobs below 1 instead of silently running one serial worker (EGEN-ANIMGLB-JOBS, DeepSeek8) (#6348)
Squash-merged after review of PR #6348 - anim_glb: refuse a --jobs below 1 instead of silently running one serial worker (EGEN-ANIMGLB-JOBS, DeepSeek8)
2026-11-23 08:16:18 -06:00
51931245d5 docs: point 15 more tools at their --help usage line (#5535)
Squash-merged after review of PR #5535 - docs: point 15 more tools at their --help usage line
2026-11-23 08:09:32 -06:00
d3a931ba25 anim_glb: print missing input paths without repr escaping (#6340)
Squash-merged after review of PR #6340 - anim_glb: print missing input paths without repr escaping
2026-11-23 08:06:31 -06:00
c55c5930e9 Merge pull request #4645 from João Ramos
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:16:47 -05:00
cb89e3e8b6 Merge pull request #3524 from Leo Leahy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:07:40 -05:00
84bd876d67 anim_glb: cap --coverage worker processes at the Windows pool limit
coverage() passed --jobs to ProcessPoolExecutor unchanged, so --jobs 62 or
more stopped the run on Windows with 'max_workers must be <= 61' (exit 2).
Lower it with pool_workers.process_workers() before slicing the dictionaries,
as the other tools with a process pool already do, and add anim_glb to
tests/test_pool_workers.py.
2026-11-23 03:35:56 +00:00
e2671a022c anim_glb: always emit zero timestamp for explicit start==end pose windows 2026-11-22 22:22:12 -03:00
36375cd034 Merge pull request #3524 from Leo Leahy 2026-11-22 17:02:31 -05:00
fe5b173731 anim_glb: pick nearest frame for off-grid fallback windows 2026-11-22 18:15:13 -03:00
1546035382 anim_glb: handle non-hex 0x clip names and single-frame start==end windows 2026-11-22 17:47:10 -03:00
89fd6f2521 Merge pull request #3211 from sds-228 2026-11-22 15:15:44 -05:00
4b2b1074d4 Merge pull request #3101 from Marco Luzzaro 2026-11-22 15:14:48 -05:00
61e07ef204 Merge pull request #3038 from Kacper Serewis 2026-11-22 15:14:16 -05:00
2932cc87d8 anim_glb: document the determinant threshold intent 2026-11-22 22:56:07 +03:00
e960e82170 anim_glb: reject singular inverse-bind matrices 2026-11-22 22:42:21 +03:00
232b10a0a6 TEST-622: handle anim_glb report destination errors 2026-11-22 20:23:10 +01:00
796ea02fdf Read selected GLB animation dictionary pages on demand 2026-11-22 20:10:48 +01:00
e0bd0b7b5c fix(assets): validate GLB sampler times at stored precision
Distinct Python timestamps can round to equal glTF FLOAT values, and bounds should describe the serialized accessor.
2026-11-22 19:24:53 +01:00
b745f93946 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>
2026-11-22 16:17:37 +00:00