diff options
| author | SombraSoft <sombrio@sombrasoft.dev> | 2026-11-22 09:05:21 -0300 |
|---|---|---|
| committer | SombraSoft <sombrio@sombrasoft.dev> | 2026-11-22 09:05:22 -0300 |
| commit | ee960b4b52ef9844070bf43d5433cb8bcfcccf56 (patch) | |
| tree | bdbe0f10779e82c619bf500eddfe85246e4e7ae9 /docs/models.md | |
| parent | 99f99890c5ebe186ef2f9fe8ff6d675745d9e621 (diff) | |
Docs: re-count all 10 model archives at rpf9-explorer e293917 (382,781 models)
Diffstat (limited to 'docs/models.md')
| -rw-r--r-- | docs/models.md | 77 |
1 files changed, 67 insertions, 10 deletions
diff --git a/docs/models.md b/docs/models.md index 65381dc97..6d78d0331 100644 --- a/docs/models.md +++ b/docs/models.md | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | # Model recovery | 1 | # Model recovery |
| 2 | 2 | ||
| 3 | Measured state of `tools/rpf9dump models` on the Xbox Series 1.0.2.1 package, and the | 3 | Measured state of `tools/rpf9dump models` on the Xbox Series 1.0.2.1 package, and the |
| 4 | upstream `rpf9-explorer` fix that closes it. The fix is merged upstream and the submodule is | 4 | upstream `rpf9-explorer` fixes that close it. The fixes are merged upstream and the submodule is |
| 5 | pinned at `e293917` (the 350,248-model counts below were measured at `917e9b9`, before | 5 | pinned at `e293917`, where a full ten-archive re-count recovers **382,781 models** (**2.64 billion |
| 6 | upstream `v1.2` PRs #8–#12 landed). | 6 | triangles**, **0 decode failures**), up from 350,248 at `917e9b9` and 190,792 at `c3708fb`. |
| 7 | 7 | ||
| 8 | Before the fix, the exporter did not reject any vertex or index layout in the tested archives. It | 8 | Before the fix, the exporter did not reject any vertex or index layout in the tested archives. It |
| 9 | dropped valid models in three validation paths, all in `third_party/rpf9-explorer` at commit | 9 | dropped valid models in three validation paths, all in `third_party/rpf9-explorer` at commit |
| @@ -19,9 +19,10 @@ per entry), the TTPF compact/array/cubemap/volume layouts, and the external draw | |||
| 19 | reader. Commits `917e9b9..e293917` add upstream `v1.2` model-discovery changes (PRs #8–#12: | 19 | reader. Commits `917e9b9..e293917` add upstream `v1.2` model-discovery changes (PRs #8–#12: |
| 20 | optional fragment pointers, skipping texture dictionaries in drawable-dictionary scans, 16-bit | 20 | optional fragment pointers, skipping texture dictionaries in drawable-dictionary scans, 16-bit |
| 21 | bone-palette indices, probe-count parity, and zero-radius drawables) plus BCPack BC1/BC3/BC4/BC5 | 21 | bone-palette indices, probe-count parity, and zero-radius drawables) plus BCPack BC1/BC3/BC4/BC5 |
| 22 | decoding (PR #7). The 350,248-model counts below were measured at `917e9b9` and have not yet been | 22 | decoding (PR #7). A full ten-archive re-count at `e293917` recovers **382,781 models** (**+32,533** |
| 23 | re-counted at `e293917`. This page keeps the pre-pin measurements as the control and records the | 23 | over `917e9b9`'s 350,248) and **2,636,248,990 triangles** with **0 decode failures**; the earlier |
| 24 | `917e9b9` counts below; it is not a competing patch. | 24 | `917e9b9`, `c3708fb`, and `48557ea` measurements are kept below as controls. This page records the |
| 25 | measured state; it is not a competing patch. | ||
| 25 | 26 | ||
| 26 | PR #1 reports 190,792 of 190,792 recognized candidates across the ten archives configured in | 27 | PR #1 reports 190,792 of 190,792 recognized candidates across the ten archives configured in |
| 27 | Leonida, including 169 previously rejected candidates (also verified after archive readback). A | 28 | Leonida, including 169 previously rejected candidates (also verified after archive readback). A |
| @@ -42,6 +43,61 @@ embedded textures); the OBJs and manifest are local. The 314 `48557ea`/`c3708fb` | |||
| 42 | table below are therefore the pre-pin control, not the current `packs.rpf` result. The other | 43 | table below are therefore the pre-pin control, not the current `packs.rpf` result. The other |
| 43 | model-bearing archives were re-counted at the new pin; the results are below. | 44 | model-bearing archives were re-counted at the new pin; the results are below. |
| 44 | 45 | ||
| 46 | ### Full-archive re-count at `e293917` | ||
| 47 | |||
| 48 | A fresh scan, recovery, and full `RageModelDecoder.Decode` readback across all ten archives in | ||
| 49 | `MODEL_ARCHIVES` (no index cache; `RpfPreview.Core` at `e293917`, .NET 8/10 Release) measures the | ||
| 50 | effect of upstream `v1.2` PRs #8–#12: | ||
| 51 | |||
| 52 | | Archive | Candidates | Models at `e293917` | Dict children | Standalone | Fragments | Bone-bound | Triangles | Rejects | Delta vs `917e9b9` | | ||
| 53 | |---|---:|---:|---:|---:|---:|---:|---:|---:|---:| | ||
| 54 | | `data.rpf` | 2,921 | **3,175** | 268 | 2,907 | 1,758 | 2,891 | 3,387,016 | 0 | +594 | | ||
| 55 | | `pack/shared_minigame000/...` | 1,058 | **1,294** | 317 | 977 | 10 | 18 | 16,843,903 | 0 | +6 | | ||
| 56 | | `pack/core_restofworld/...` | 924 | **936** | 808 | 128 | 53 | 849 | 1,239,596 | 0 | +51 | | ||
| 57 | | `pack/story000_restofworld/...` | 1 | **3** | 3 | 0 | 0 | 0 | 2,620 | 0 | +3 | | ||
| 58 | | `pack/story000/story000.rpf` | 4,195 | **7,461** | 4,156 | 3,305 | 0 | 0 | 39,861,747 | 0 | +1 | | ||
| 59 | | `packs.rpf` | 26,389 | **26,585** | 23,720 | 2,865 | 2,865 | 26,585 | 64,966,572 | 0 | +2,551 | | ||
| 60 | | `levels.rpf` | 235,330 | **343,327** | 130,239 | 213,088 | 50,731 | 59,544 | 2,509,947,536 | 71 | +29,327 | | ||
| 61 | | `textures.rpf` | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | | ||
| 62 | | `common.rpf`, `core_restofworld001` | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
| 63 | | **Total** | **270,819** | **382,781** | **159,511** | **223,270** | **55,417** | **89,887** | **2,636,248,990** | **72** | **+32,533** | | ||
| 64 | |||
| 65 | Every recovered entry was read back from its archive segments and decoded through | ||
| 66 | `RageModelDecoder.Decode`: **382,781 / 382,781 decoded, 0 decode failures**, **4,090,898 meshes**, | ||
| 67 | **2,468,402,149 vertices**, **2,636,248,990 triangles (2.64 billion)**, and **1,805 embedded | ||
| 68 | textures**. | ||
| 69 | |||
| 70 | What moved between `917e9b9` and `e293917`: | ||
| 71 | |||
| 72 | - **Standalone fragments (+32,505 standalone models total).** Upstream | ||
| 73 | [rpf9-explorer#8](https://github.com/breadbbbb/rpf9-explorer/pull/8) (optional fragment pointers) | ||
| 74 | accounts for the bulk of the gain across `levels.rpf` (+29,313 standalone), `packs.rpf` (+2,551 | ||
| 75 | fragments, all bone-bound), `data.rpf` (+594), `core_restofworld` (+40 standalone), and | ||
| 76 | `shared_minigame000` (+6). | ||
| 77 | - **Texture-dictionary false positives eliminated (1,242 → 1).** Upstream | ||
| 78 | [rpf9-explorer#9](https://github.com/breadbbbb/rpf9-explorer/pull/9) removes all 1,242 texture | ||
| 79 | dictionaries that were previously proposed as model candidates in `levels.rpf` (1,009 → 0), | ||
| 80 | `data.rpf` (75 → 0), `core_restofworld` (140 → 0), and `shared_minigame000` (18 → 0). Only one | ||
| 81 | texture-dictionary candidate remains across all ten archives (in `textures.rpf`; rejected cleanly, | ||
| 82 | and recovered by `Rpf9TextureRecovery`). | ||
| 83 | - **Probe caps and zero-radius drawables (+28 dictionary children plus capped standalones).** | ||
| 84 | Upstream [rpf9-explorer#11](https://github.com/breadbbbb/rpf9-explorer/pull/11) recovers the 29 | ||
| 85 | previously capped candidates (+1 in `story000.rpf`, and +14 dictionary children plus capped | ||
| 86 | standalones in `levels.rpf`). Upstream | ||
| 87 | [rpf9-explorer#12](https://github.com/breadbbbb/rpf9-explorer/pull/12) recovers all 11 zero-radius | ||
| 88 | dictionary children in `core_restofworld` (797 → 808) and 1 drawable dictionary (3 models) in | ||
| 89 | `story000_restofworld.rpf`, which previously recovered 0 models. | ||
| 90 | - **Remaining 72 rejects (down from 1,282 at `917e9b9`).** Aside from the single texture-dictionary | ||
| 91 | candidate in `textures.rpf`, all 71 remaining rejects are in `levels.rpf` (0 texture dictionaries, | ||
| 92 | 0 zlib checksum errors). Sampled headers are fragment candidates (`LooksLikeFragment == true`) | ||
| 93 | whose `ProbeRequiredExtents` reports `MetadataComplete == false` on the first zlib block with | ||
| 94 | `RequiredSystemBytes` extending into subsequent 16-byte-aligned zlib continuation blocks. | ||
| 95 | |||
| 96 | Method checks: sharded 4 MiB `FindCandidateOffsets` was verified exact-equal against the | ||
| 97 | single-threaded scan on `packs.rpf` (`26,389 == 26,389`), and `tools/rpf9dump models` end-to-end | ||
| 98 | OBJ + manifest export was spot-checked on `story000_restofworld.rpf` (`ok=3 fail=0 skip=0`) and | ||
| 99 | `data.rpf` (`ok=3175 fail=0 skip=0`). | ||
| 100 | |||
| 45 | ### Other archives at `917e9b9` | 101 | ### Other archives at `917e9b9` |
| 46 | 102 | ||
| 47 | A fresh scan/recover at the new pin (no cache; `models/3`) shows the same pattern in every | 103 | A fresh scan/recover at the new pin (no cache; `models/3`) shows the same pattern in every |
| @@ -402,7 +458,8 @@ own light bones). | |||
| 402 | 458 | ||
| 403 | 1. **Done:** [rpf9-explorer PR #1](https://github.com/breadbbbb/rpf9-explorer/pull/1) is merged upstream. | 459 | 1. **Done:** [rpf9-explorer PR #1](https://github.com/breadbbbb/rpf9-explorer/pull/1) is merged upstream. |
| 404 | 2. **Done:** the pin is `e293917` (was `917e9b9`, originally `48557ea`). | 460 | 2. **Done:** the pin is `e293917` (was `917e9b9`, originally `48557ea`). |
| 405 | 3. `tools/rpf9dump models` was re-run over the model-bearing archives at `917e9b9` (counts in the | 461 | 3. **Done:** all ten `MODEL_ARCHIVES` were re-counted and read-back decoded at `e293917` (**382,781 |
| 406 | table above). A fresh re-count at `e293917` is still needed to measure the delta from upstream | 462 | models**, **2,636,248,990 triangles**, **0 decode failures**; table above). |
| 407 | `v1.2` PRs #8–#12. Triangle totals were not re-run. | 463 | 4. Investigate the 71 remaining unrecovered fragment candidates in `levels.rpf` (and the 1 |
| 408 | 4. Keep the README and issue #29 in sync with the new counts. | 464 | texture-dictionary candidate in `textures.rpf`) if further upstream recovery is wanted. |
| 465 | 5. Keep issue #29 in sync with the `e293917` counts. | ||