Commit Graph

44 Commits

Author SHA1 Message Date
567c9b648f Merge pull request #1753 from kirigayakazima/codex/glb-skinning-surplus-bind-matrices
glb_skinning: accept extra inverse bind matrices
2026-11-28 15:57:09 +01:00
cdf5bce4ea glb_skinning: accept extra inverse bind matrices 2026-11-25 19:11:22 +08:00
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
5018da0871 docs/character_skeleton: name tools/glb_skinning.py as the skinned GLB validator (#6719)
Squash-merged after diff review of PR #6719 - docs/character_skeleton: name tools/glb_skinning.py, the skinned GLB validator (EGEN-GLBSKINNING-DOC)
2026-11-23 10:00:52 -06:00
aff9338187 anim_clips: count clip windows; the clip timing rule over all 785,174 entries (was 4,471 in 300 sampled dictionaries) (#4881)
Squash-merged after review of PR #4881 - anim_clips: count clip windows; the clip timing rule over all 785,174 entries (was 4,471 in 300 sampled dictionaries)
2026-11-23 08:11:05 -06:00
7022367cbd docs: name tools/glb_inspect.py where the skinned GLB export is described (EGEN-GLBINSPECT-DOC) (#6347)
Squash-merged after review of PR #6347 - docs: name tools/glb_inspect.py where the skinned GLB export is described (EGEN-GLBINSPECT-DOC)
2026-11-23 08:06:19 -06:00
3717a4da0e Merge pull request #4179 from Tim Elery
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:12:04 -05:00
2441b282ac tools: add modular ped body assembler, coplanar seam stitcher, and pipeline docs 2026-11-22 15:47:07 -08:00
8d823a5003 Merge pull request #3585 from Kacper Serewis 2026-11-22 17:02:51 -05:00
46e71717cf Merge pull request #3327 from Kam471
# Conflicts:
#	docs/character_skeleton.md
2026-11-22 17:01:25 -05:00
8ef0f2c01d docs: correct the ASSET-279 model key width 2026-11-22 22:07:45 +01:00
5f8c78a35c docs: bound the ASSET-279 component variation candidates 2026-11-22 21:59:17 +01:00
4d5b1099cf docs: note the leaf-name clip hash selection 2026-11-22 20:48:47 +00:00
dbce871197 docs: separate the name table from the animated-export fragment offset 2026-11-22 20:48:18 +00:00
422ca90979 Merge pull request #3327 from Kam471 2026-11-22 15:17:00 -05:00
5788ef158d Merge pull request #2288 from Kam471
# Conflicts:
#	docs/models.md
2026-11-22 15:10:29 -05:00
2a503e61e2 Merge pull request #1534 from Kam471
# Conflicts:
#	docs/character_models.md
#	docs/character_skeleton.md
2026-11-22 15:09:44 -05:00
375a052684 docs: separate the name table from the animated-export fragment offset 2026-11-22 20:07:06 +00:00
dd1be7b5e3 skinned_glb: fix numpy parity and pin the packed 0x8C paths
Zero zero-weight joint indices before the palette lookup, so the numpy path matches the stdlib path instead of raising IndexError.

Strengthen the packed test to set bits 12-15, and add tests for mesh_blob.sections and the empty component list. Document that only 0x8C is accepted (no measured 0x8B layout), add the 0x8C docs row and correct the test count to 15.
2026-11-22 19:12:25 +00:00
3827562207 docs: correct the raw-scan total and ped variation manager claims
The component list already summed to 2,631, so replace the contradictory 453 total and spell out that the 908 are the resources using the skin/flesh shader. On the skeleton page, name both common.rpf managers and state that neither maps a variation index to a drawable plus texture, replacing the false claim that no such manager exists.
2026-11-22 19:06:57 +00:00
51959aed84 docs: record the ped variation manager's literal model keys 2026-11-22 19:04:29 +00:00
6180a1a976 skinned_glb: accept the packed 0x8c joint layout
Slots 8/9 may store four u32 words per vertex with the joint index in bits 0..11. Convert that to the same 4 x u8 rows as 0x25, rejecting an index above 255 and a stream shorter than 16 bytes per vertex.

Add synthetic coverage for the decode, an out-of-range index and a short stream; document the layout beside 0x25.
2026-11-22 18:24:25 +00:00
136b0e07a8 Merge pull request #1534 from Kam471 2026-11-22 13:12:32 -05:00
497fbb7649 docs: record the ped variation manager's literal model keys 2026-11-22 16:51:12 +00:00
2b0a8b6be4 Merge pull request #2288 from Kam471
# Conflicts:
#	docs/character_skeleton.md
2026-11-22 11:43:50 -05:00
85f61c8694 Merge pull request #2212 from cxchhh
# Conflicts:
#	docs/README.md
#	docs/character_models.md
2026-11-22 11:42:54 -05:00
8dea28d4e2 docs: record the skinned GLB layout; fix per-component joint counts 2026-11-22 16:35:25 +00: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
3b548ca066 docs: record the second female cutscene base and the adult-actor negative 2026-11-22 16:02:08 +00:00
d91bdcf8e0 docs: record the story000 negative and the Mandy 0/18 hashes 2026-11-22 15:53:10 +00:00
6380eb73fd docs: correct the character texture-slot roles 2026-11-22 15:39:08 +00:00
51022b3774 Merge pull request #1534 from Kam471
# Conflicts:
#	docs/character_skeleton.md
2026-11-22 09:48:02 -05:00
1a098361e5 docs: decode the cs_mandy model id and the shared cutscene body 2026-11-22 14:37:29 +00:00
4847c04c7b docs: record the Mandy mission binding and the generic mannequin body 2026-11-22 14:37:14 +00:00
57f0b4d3e9 docs: scope the Mandy negative to this 108-file package 2026-11-22 14:37:14 +00:00
403104124c Merge pull request #1534 from Kam471 2026-11-22 09:14:46 -05:00
61a664bee7 docs: scope the Mandy negative to this 108-file package 2026-11-22 13:37:54 +00:00
38ca58e866 Merge pull request #1534 from Kam471
# Conflicts:
#	docs/README.md
#	docs/character_models.md
2026-11-22 08:08:03 -05:00
2a4b05a2d4 docs: the character fragment carries the skeleton and bounds grid, not a skin mesh 2026-11-22 12:46:23 +00:00
3bf713f0b0 docs: sync the remaining model-count prose with the e293917 re-count 2026-11-22 12:19:38 +00:00
e23e2da05a skin_streams: measure the vertex joint-index and skin-weight layouts (ASSET-12)
tools/skin_streams.py carves drawable resources out of an RPF9 archive without the
TOC, walks drawable -> LOD -> grmModel -> geometry -> FVF, classifies the skin
slots (16/17 weights, 20/21 indices) and validates the decoded bytes against each
model's bone count. docs/character_skeleton.md gets the measured layout table and
the corrected skin section. Synthetic tests in tests/test_skin_streams.py.
2026-11-22 02:26:56 -08:00
a69292882c Docs: record the Mandy character search (no unique drawable)
Mandy is a KeyLento persistent/cutscene character schedule (KeyLento/Perschars/Peds/Unique/Mandy, pack PSP_KeyLento_perschars_peds), not a unique drawable. A read-only search of the 1.0.2.1 package found no mandy/cs_mandy/ig_mandy/mp_mandy drawable or fragment in packs.rpf (144,364 streams / 9.74 GB, 24,034 models, 12,338 name records), data.rpf (28,509 / 1.41 GB), common.rpf (954 / 50 MB), levels.rpf (2,051 nested archives, first 4 MiB per stream), story000.rpf (0-4 GiB and 14 GiB regions), script/rest-of-world/audio/anim/movies/textures.

The only name hits are an iFruit billboard and a house photo prop; story000 has *_mandy.clip animation names but no drawable. Hash controls resolve cs_kenton, u_f_o_rhonda, cs_monalisa and cs_lucia; Mandy does not. The delivered mandy/ export is therefore a labelled cs_monalisa proxy. Caveats: levels prefix-bounded at 4 MiB, raw RSC8/Bink not decoded, encrypted RPF9 TOC. No game data or localized strings included.
2026-11-22 05:51:12 +00:00
56d1273ce7 Allow world exports to select the base-color texture parameter 2026-11-21 21:44:55 -07:00
0786a08395 Docs: measure the character skeleton and clip sidecars
Add a character-skeleton page: 597-name #ft table, the following 597-record parent/reference-TRS table, the model bone-hash mapping, and the character material texture-parameter split. Update animation.md with the partial clip decode (two named clips, 0x48-byte track arrays, 63/38 and 12/38 masks) and the 46-byte MoVE header correction. Link the new page from models.md and design.md. No game data.
2026-11-22 00:44:04 +00:00