91 Commits

Author SHA1 Message Date
2ad32c8fc8 Merge pull request #250 from ProjectLeonida/old-pr/9984
docs(models): remove duplicate material effect section (lines 653-737)
2026-12-01 16:13:46 +01:00
6ab4394d70 docs/models: correct test_skinned_glb.py test count to 30 (DOC-MODELS-SKINNED-TEST-COUNT)
docs/models.md said tests/test_skinned_glb.py runs 24 synthetic tests.
`python -I tests/test_skinned_glb.py` runs 30 (Ran 30 tests, OK).
Only the number changes.
2026-11-24 16:09:05 +01:00
12e612449e docs(models): remove duplicate material effect section
Remove an 85-line verbatim repeat of the material shader hashes and effect records subsection (formerly lines 653 to 737) introduced by a repeated merge on main.
2026-11-24 05:02:54 +05:30
7be7c4c839 docs/models: test_skinned_glb runs 24 synthetic tests, not 19 (#6525)
Squash-merged after diff review of PR #6525
2026-11-23 12:53:13 -06:00
464887b4f4 BUILD-2389: recommend a bounded drawable export window (#6849)
Squash-merged after diff review of PR #6849 - BUILD-2389: recommend a bounded drawable export window
2026-11-23 10:02:58 -06:00
c1aa89e0ff BUILD-2389: verify keyed drawable offset predictions against exported models (#6900)
Squash-merged after diff review of PR #6900 - BUILD-2389: verify keyed drawable offset predictions against exported models
2026-11-23 09:37:15 -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
8150e95d57 Merge pull request #4490 from kapitche
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/design.md
2026-11-22 23:15:12 -05:00
0bc0c5ab0b Merge pull request #4368 from Alpaca-exe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:14:05 -05:00
b84027fe86 Merge pull request #4036 from Kam471
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/models.md
2026-11-22 23:10:39 -05:00
b489866751 Merge pull request #3945 from kotorvr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:09:47 -05:00
1142bc3133 Merge pull request #3821 from Kacper Serewis
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:39 -05:00
e5e224bbbf Merge pull request #3809 from ezbyDev
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:35 -05:00
fd940eacc9 Merge pull request #2732 from Kam471
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:06:02 -05:00
27ba1a15a6 Merge pull request #2519 from Rafael
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:05:43 -05:00
405458fb6d docs: drop lines merges left twice, correct two test counts; test_docs_repeated_lines 2026-11-22 20:45:48 -05:00
203b207c7a docs/models.md: the u32 after an effect name is a size computed from the record's fields
@jeremygold02's formula, recomputed here on all 932 records (910 + 22);
the value never equals the serialized record length, so the walk still
finds the next record. Runtime use unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:25:39 -03:00
bf9a2633df gamedata_sps1: decode common.rpf SPS1 shader-preset table and join SGD5 effects 2026-11-23 02:05:27 +01:00
13d4291d29 docs: replace the estimates' math symbols with ASCII and state the observed distinction 2026-11-23 00:02:07 +00:00
1479765780 docs: vehicle estimates are a generated stats table (ASSET-317)
The estimates join the performance-map table only loosely and the quarter-mile time collapses to 6.73 + 401.0/v_top (R2 0.99998); ratings are deterministic functions of the estimates. Handling inputs are absent from the readable archives, so the handling fit cannot be verified.
2026-11-22 23:02:42 +00:00
f8259cc4b8 docs/models.md: levels.rpf fragments, bone-bound and triangles from a full export
The e293917 re-count table marked the levels.rpf fragment, bone-bound
and triangle cells (and the mesh, vertex and embedded-texture figures)
"not independently reproduced": levels.rpf had a recovery count from
count.exe but no rpf9dump manifest.

A full `rpf9dump models` export of levels.rpf at e293917 reproduces the
recovery count to the row (235,330 candidates, 71 not recovered,
343,327 entries, fail=0; Drawable set on 130,239, null on 213,088) and
gives 50,731 fragments, 59,544 bone-bound, 2,509,947,536 triangles,
3,854,587 meshes, 2,364,218,711 vertices and 1,293 embedded textures.
The same counting reproduces the data.rpf row from a fresh export.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 22:27:00 +00:00
3336068ca0 docs/models: scope the rating formula and call 10 an observed minimum (ASSET-299)
Review on #3809: the weighted formula holds on the 345 blocks with all four
parts above 10, not on all 504; the 24 blocks with an overall of exactly 10
are part of the 159 with a part at 10 (345 + 159 = 504); and the exports show
a minimum, not where the engine clamps. Wording only, no new numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:07:33 +01:00
7a4b7e647e Merge pull request #3821 from Kacper Serewis 2026-11-22 17:04:03 -05:00
39f5fd3d9b Merge pull request #3809 from ezbyDev 2026-11-22 17:03:56 -05:00
177ecb29a4 character_census: match the decoded model.json schema
The local exporter writes vertex_count and triangle_count, not index_count. Remove the invented index_count from the synthetic fixtures and expect the documented unknown index total; keep index_count optional for inputs that actually supply it.
2026-11-22 22:03:53 +00:00
92a0b72e0d Document how to reproduce ASSET-297 XML joins 2026-11-22 23:02:56 +01:00
266a33b7f9 Merge pull request #2519 from Rafael 2026-11-22 16:59:21 -05:00
53658edd6e Document same-row carriage model-set matches (ASSET-297) 2026-11-22 22:56:15 +01:00
9b80fec165 Document vehicle-light recipe reuse in palette tints (ASSET-297) 2026-11-22 22:49:42 +01:00
8327ebcc3a docs/models: the fOverallRating weights and the 10 floor, measured (ASSET-299)
Measured over the 504 ratingsRoad/ratingsOffroad blocks of common.rpf's CVehicleBaseRatingsAndEstimatesMap
(252 keys x 2 surfaces) from one retail 1.0.2.1 package: fOverallRating = 0.21 fSpeedRating + 0.38
fHandlingRating + 0.40 fAccelerationRating + 0.01 fBrakesRating, weights summing to 1. The residual is at most
7e-5 on the 345 blocks whose four parts are all above 10, and differencing the road and offroad blocks of the
139 keys that are above 10 on both surfaces recovers 0.2100 / 0.3800 / 0.4000 / 0.0100, so the weights do not
depend on the surface.

The 10 floor is on the overall too: 24 blocks whose parts run 10.0 to 11.97 carry an fOverallRating of exactly
10. The other 159 blocks, which have at least one part at exactly 10, sit up to 4.1 below the weighted mean,
which parts raised to 10 from a lower value would explain; no block without a part at 10 deviates.

Counts, ranges and coefficients only: no model names and no per-vehicle values, and no game file is committed.
2026-11-22 22:47:05 +01:00
dac28e6b19 Fix what the round-42 merges broke (tests and docs)
- shader_disasm: prune stale listings against every input, not the --skip-existing remainder (a resumed run
  deleted every listing it had just reused).
- progress_dashboard: a drive-letter path is never inside the repository off Windows (it printed user names);
  its own read_text helper is read_utf8, so the encoding check does not take it for pathlib's.
- Translator tests follow this round's rules: desc_lookup's BroadcastFirst in the typed-load condition walker;
  resinfo sizes are 0 past the last level and a 2D depth word is 0 (SHADER-388); SHADER-315 constant folding in
  the perm and i16 tests; #2089's structured wave64 emulation.
- test_semantic_translator_use: 57 oracle-only files merged before it are DEBT; test_spirv_tools_required is
  allowed (CI meta-test).
- Test fixes: image_fuzz fake writes the programs, preflight follows c506d00c's loader hint rule, feature_scan
  reads the first line of a pytest-decorated message, w64_graphics wording.
- docs: rows merged again in design.md, README.md, d3d12_vulkan.md; GameInput table rebuilt from #3172's rows;
  orphan rows in models.md and embedded_shaders.md; repeated bullets; anchors; a flag not on main.
- Repo rules: stdout guard on 14 programs; LF writes; csv lineterminator in bink_play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:14:54 -05:00
db4ddd627c docs/models.md: the u32 after an effect name is a size computed from the record's fields
@jeremygold02's formula, recomputed here on all 932 records (910 + 22);
the value never equals the serialized record length, so the walk still
finds the next record. Runtime use unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:14:18 -03:00
2fbe9f27f8 Merge pull request #2732 from Kam471 2026-11-22 15:11:32 -05:00
749a12572f Merge pull request #2519 from Rafael
# Conflicts:
#	docs/models.md
2026-11-22 15:10:59 -05:00
5788ef158d Merge pull request #2288 from Kam471
# Conflicts:
#	docs/models.md
2026-11-22 15:10:29 -05:00
3c0d5b449a docs/models.md: effect records are walked forward from stored lengths (#3036 c0439966)
The table-location caveat is gone: tests/test_sgd5_effects.py passes
against this package. The u32 after an effect name stays open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:03:37 -03:00
cb4ca6e253 docs/models.md: native effect records resolve all 18 material hashes; the effect census reproduced
With @jeremygold02's tools/sgd5_effects.py (#3036, 0029eba7) on the same
shaders.rpf: 932 effect records with distinct name hashes, 913 technique
tables, 25,037 techniques and 28,798 passes, and the data.rpf materials'
18 hashes (3,340 slots) each matching exactly one record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:03:37 -03:00
f36e3af8e1 docs/models.md: effect-record ordinals count within one of shaders.rpf's two SGD5 databases
The group walk (@jeremygold02) reproduced on the same archive: 11,018 /
10,944 / 195 / 0 / 0 / 2,647 programs and 910 effects in the first
database, 500 / 1,157 / 0 / 0 / 0 / 42 and 22 in the second, adding up to
the whole carve. Group 2 is the GS. His census of both databases' effect
tables is reported as his.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:03:37 -03:00
97c065b420 docs/models.md: what the effect-record ordinals index, the suffix counts over all graphics programs, the format as a hypothesis beyond three records
Answers @ramenbellic's review of 240180e7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:03:37 -03:00
8a926fe6d7 docs/models.md: effect records in shaders.rpf select a technique pass's mesh and pixel programs
Found by @jeremygold02 in #2519 and reproduced on three records of the same
shaders.rpf. The run-time choice of technique and pass, and a general locator
for effect records, stay open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:03:37 -03:00
f76ee8ea33 docs/models.md: effect records are walked forward from stored lengths (#3036 c0439966)
The table-location caveat is gone: tests/test_sgd5_effects.py passes
against this package. The u32 after an effect name stays open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:00:38 -03:00
48cf8dbafb docs/models.md: native effect records resolve all 18 material hashes; the effect census reproduced
With @jeremygold02's tools/sgd5_effects.py (#3036, 0029eba7) on the same
shaders.rpf: 932 effect records with distinct name hashes, 913 technique
tables, 25,037 techniques and 28,798 passes, and the data.rpf materials'
18 hashes (3,340 slots) each matching exactly one record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:46:12 -03:00
1b2e8ff3d6 Revert "Merge pull request #2732 from Kam471"
This reverts commit f8175dc501, reversing
changes made to 6e3426d694.
2026-11-22 14:25:31 -05: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
49cad88120 docs/models.md: effect-record ordinals count within one of shaders.rpf's two SGD5 databases
The group walk (@jeremygold02) reproduced on the same archive: 11,018 /
10,944 / 195 / 0 / 0 / 2,647 programs and 910 effects in the first
database, 500 / 1,157 / 0 / 0 / 0 / 42 and 22 in the second, adding up to
the whole carve. Group 2 is the GS. His census of both databases' effect
tables is reported as his.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:54:40 -03:00
61ab2b1587 docs/models.md: what the effect-record ordinals index, the suffix counts over all graphics programs, the format as a hypothesis beyond three records
Answers @ramenbellic's review of 240180e7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:43:28 -03:00
240180e7aa docs/models.md: effect records in shaders.rpf select a technique pass's mesh and pixel programs
Found by @jeremygold02 in #2519 and reproduced on three records of the same
shaders.rpf. The run-time choice of technique and pass, and a general locator
for effect records, stay open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:33:35 -03:00
fdfbeb19f3 docs/models.md: material shader hashes lead to effects, not to draw programs
A material's shader hash (rpf9dump manifest Materials[].Shader) is the joaat of its effect name, and the
carve index names every compute program <effect>:<entry>, so a material reaches its effect and that
effect's RaytracingResolve programs: 3,211 of data.rpf's 3,340 materials (8 of 18 hashes). The 23,619
graphics programs carry no effect name, are not stored grouped by effect, and their 8-hex suffix neither is
a joaat of the name nor matches the effect-named programs' suffixes, so effect -> technique -> VS/PS is not
recoverable from the package (presumably in the executable, RT-5). Measured on a 1.0.2.1 copy, counts only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:33:35 -03:00
82bdcb889c tools: census decoded character models 2026-11-22 18:22:18 +00:00
8cb70f81ca tools: link the skinned GLB docs and cover the no-numpy path 2026-11-22 18:20:33 +00:00