upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/models.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/models.md')
-rw-r--r--docs/models.md53
1 files changed, 26 insertions, 27 deletions
diff --git a/docs/models.md b/docs/models.md
index 61b0e9f2b..90d31c1a8 100644
--- a/docs/models.md
+++ b/docs/models.md
@@ -2,12 +2,8 @@
2 2
3Measured state of `tools/rpf9dump models` on the Xbox Series 1.0.2.1 package, and the 3Measured state of `tools/rpf9dump models` on the Xbox Series 1.0.2.1 package, and the
4upstream `rpf9-explorer` fixes that close it. The fixes are merged upstream and the submodule is 4upstream `rpf9-explorer` fixes that close it. The fixes are merged upstream and the submodule is
5pinned at `e293917`, where a full ten-archive re-count recovers **382,781 models** (**2.64 billion 5pinned at `e293917`, where a full ten-archive re-count recovers **382,781 models** (**0 decode
6triangles**, **0 decode failures**), up from 350,248 at `917e9b9` and 190,792 at `c3708fb`. 6failures**), up from 350,251 at `917e9b9` and 190,792 at `c3708fb`.
7upstream `rpf9-explorer` fix that closes it. The fix is merged upstream and the submodule is
8pinned at `e293917` (the 350,251-model counts below were measured at `917e9b9`, before
9upstream `v1.2` PRs #8-#12 landed; the non-`levels.rpf` archives were then re-counted at
10`e293917`).
11 7
12Before the fix, the exporter did not reject any vertex or index layout in the tested archives. It 8Before the fix, the exporter did not reject any vertex or index layout in the tested archives. It
13dropped valid models in three validation paths, all in `third_party/rpf9-explorer` at commit 9dropped valid models in three validation paths, all in `third_party/rpf9-explorer` at commit
@@ -23,13 +19,11 @@ per entry), the TTPF compact/array/cubemap/volume layouts, and the external draw
23reader. Commits `917e9b9..e293917` add upstream `v1.2` model-discovery changes (PRs #8–#12: 19reader. Commits `917e9b9..e293917` add upstream `v1.2` model-discovery changes (PRs #8–#12:
24optional fragment pointers, skipping texture dictionaries in drawable-dictionary scans, 16-bit 20optional fragment pointers, skipping texture dictionaries in drawable-dictionary scans, 16-bit
25bone-palette indices, probe-count parity, and zero-radius drawables) plus BCPack BC1/BC3/BC4/BC5 21bone-palette indices, probe-count parity, and zero-radius drawables) plus BCPack BC1/BC3/BC4/BC5
26decoding (PR #7). A full ten-archive re-count at `e293917` recovers **382,781 models** (**+32,533** 22decoding (PR #7). A full ten-archive re-count at `e293917` recovers **382,781 models** (**+32,530**
27over `917e9b9`'s 350,248) and **2,636,248,990 triangles** with **0 decode failures**; the earlier 23over `917e9b9`'s 350,251) with **0 decode failures**; the `levels.rpf` fragment, bone-binding and
24triangle cells are not independently reproduced (see the table note), and the earlier
28`917e9b9`, `c3708fb`, and `48557ea` measurements are kept below as controls. This page records the 25`917e9b9`, `c3708fb`, and `48557ea` measurements are kept below as controls. This page records the
29measured state; it is not a competing patch. 26measured state; it is not a competing patch.
30decoding (PR #7). The 350,251-model counts below were measured at `917e9b9` and are kept as the
31control; the `e293917` re-count for the non-`levels.rpf` archives is in the table below. This page
32records both, and is not a competing patch.
33 27
34PR #1 reports 190,792 of 190,792 recognized candidates across the ten archives configured in 28PR #1 reports 190,792 of 190,792 recognized candidates across the ten archives configured in
35Leonida, including 169 previously rejected candidates (also verified after archive readback). A 29Leonida, including 169 previously rejected candidates (also verified after archive readback). A
@@ -63,18 +57,25 @@ effect of upstream `v1.2` PRs #8–#12:
63| `data.rpf` | 2,921 | **3,175** | 268 | 2,907 | 1,758 | 2,891 | 3,387,016 | 0 | +594 | 57| `data.rpf` | 2,921 | **3,175** | 268 | 2,907 | 1,758 | 2,891 | 3,387,016 | 0 | +594 |
64| `pack/shared_minigame000/...` | 1,058 | **1,294** | 317 | 977 | 10 | 18 | 16,843,903 | 0 | +6 | 58| `pack/shared_minigame000/...` | 1,058 | **1,294** | 317 | 977 | 10 | 18 | 16,843,903 | 0 | +6 |
65| `pack/core_restofworld/...` | 924 | **936** | 808 | 128 | 53 | 849 | 1,239,596 | 0 | +51 | 59| `pack/core_restofworld/...` | 924 | **936** | 808 | 128 | 53 | 849 | 1,239,596 | 0 | +51 |
66| `pack/story000_restofworld/...` | 1 | **3** | 3 | 0 | 0 | 0 | 2,620 | 0 | +3 | 60| `pack/story000_restofworld/...` | 1 | **3** | 3 | 0 | 0 | 0 | 2,620 | 0 | 0 |
67| `pack/story000/story000.rpf` | 4,195 | **7,461** | 4,156 | 3,305 | 0 | 0 | 39,861,747 | 0 | +1 | 61| `pack/story000/story000.rpf` | 4,195 | **7,461** | 4,156 | 3,305 | 0 | 0 | 39,861,747 | 0 | +1 |
68| `packs.rpf` | 26,389 | **26,585** | 23,720 | 2,865 | 2,865 | 26,585 | 64,966,572 | 0 | +2,551 | 62| `packs.rpf` | 26,389 | **26,585** | 23,720 | 2,865 | 2,865 | 26,585 | 64,966,572 | 0 | +2,551 |
69| `levels.rpf` | 235,330 | **343,327** | 130,239 | 213,088 | 50,731 | 59,544 | 2,509,947,536 | 71 | +29,327 | 63| `levels.rpf` | 235,330 | **343,327** | 130,239 | 213,088 | † | † | † | 71 | +29,327 |
70| `textures.rpf` | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 64| `textures.rpf` | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
71| `common.rpf`, `core_restofworld001` | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 65| `common.rpf`, `core_restofworld001` | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
72| **Total** | **270,819** | **382,781** | **159,511** | **223,270** | **55,417** | **89,887** | **2,636,248,990** | **72** | **+32,533** | 66| **Total** | **270,819** | **382,781** | **159,511** | **223,270** | **†** | **†** | **†** | **72** | **+32,530** |
67
68† `levels.rpf` was counted with `count.exe recover --verify`, which reports candidates, models,
69dictionary children, standalone models, rejects and decode failures only: no `levels.rpf` manifest
70exists and the harness emits no fragment, bone-binding or triangle field. Those three `levels.rpf`
71cells, and the totals that would include them, are therefore **not independently reproduced**. The
72other archives measure 4,686 fragments, 30,343 bone-bound and 126,301,454 triangles.
73 73
74Every recovered entry was read back from its archive segments and decoded through 74Every recovered entry was read back from its archive segments and decoded through
75`RageModelDecoder.Decode`: **382,781 / 382,781 decoded, 0 decode failures**, **4,090,898 meshes**, 75`RageModelDecoder.Decode`: **382,781 / 382,781 decoded, 0 decode failures**. The other archives
76**2,468,402,149 vertices**, **2,636,248,990 triangles (2.64 billion)**, and **1,805 embedded 76measure **236,311 meshes**, **104,183,438 vertices**, **126,301,454 triangles** and **512 embedded
77textures**. 77textures**; the `levels.rpf` mesh/vertex/triangle/embedded cells are not independently reproduced
78(see the table note).
78 79
79What moved between `917e9b9` and `e293917`: 80What moved between `917e9b9` and `e293917`:
80 81
@@ -89,13 +90,13 @@ What moved between `917e9b9` and `e293917`:
89 `data.rpf` (75 → 0), `core_restofworld` (140 → 0), and `shared_minigame000` (18 → 0). Only one 90 `data.rpf` (75 → 0), `core_restofworld` (140 → 0), and `shared_minigame000` (18 → 0). Only one
90 texture-dictionary candidate remains across all ten archives (in `textures.rpf`; rejected cleanly, 91 texture-dictionary candidate remains across all ten archives (in `textures.rpf`; rejected cleanly,
91 and recovered by `Rpf9TextureRecovery`). 92 and recovered by `Rpf9TextureRecovery`).
92- **Probe caps and zero-radius drawables (+28 dictionary children plus capped standalones).** 93- **Probe caps and zero-radius drawables (+25 dictionary children plus capped standalones).**
93 Upstream [rpf9-explorer#11](https://github.com/breadbbbb/rpf9-explorer/pull/11) recovers the 29 94 Upstream [rpf9-explorer#11](https://github.com/breadbbbb/rpf9-explorer/pull/11) recovers the 29
94 previously capped candidates (+1 in `story000.rpf`, and +14 dictionary children plus capped 95 previously capped candidates (+1 in `story000.rpf`, and +14 dictionary children plus capped
95 standalones in `levels.rpf`). Upstream 96 standalones in `levels.rpf`). Upstream
96 [rpf9-explorer#12](https://github.com/breadbbbb/rpf9-explorer/pull/12) recovers all 11 zero-radius 97 [rpf9-explorer#12](https://github.com/breadbbbb/rpf9-explorer/pull/12) recovers all 11 zero-radius
97 dictionary children in `core_restofworld` (797 → 808) and 1 drawable dictionary (3 models) in 98 dictionary children in `core_restofworld` (797 → 808); `story000_restofworld.rpf` already
98 `story000_restofworld.rpf`, which previously recovered 0 models. 99 recovered its 3 models at `917e9b9`, so its delta is 0.
99- **Remaining 72 rejects (down from 1,282 at `917e9b9`).** Aside from the single texture-dictionary 100- **Remaining 72 rejects (down from 1,282 at `917e9b9`).** Aside from the single texture-dictionary
100 candidate in `textures.rpf`, all 71 remaining rejects are in `levels.rpf` (0 texture dictionaries, 101 candidate in `textures.rpf`, all 71 remaining rejects are in `levels.rpf` (0 texture dictionaries,
101 0 zlib checksum errors). Sampled headers are fragment candidates (`LooksLikeFragment == true`) 102 0 zlib checksum errors). Sampled headers are fragment candidates (`LooksLikeFragment == true`)
@@ -165,7 +166,7 @@ pages. `core_restofworld` recovers 873 of its 1,024 candidates (885 models); the
165models**, 130,225 dictionary children, 183,775 standalone. 1,037 candidates are rejected: the 166models**, 130,225 dictionary children, 183,775 standalone. 1,037 candidates are rejected: the
1661,009 in the last shard are texture dictionaries, not models, and 28 more in shards 1 to 7 are 1671,009 in the last shard are texture dictionaries, not models, and 28 more in shards 1 to 7 are
167models the probe caps reject (see [rejected candidates](#rejected-candidates-at-917e9b9)). The 168models the probe caps reject (see [rejected candidates](#rejected-candidates-at-917e9b9)). The
168`levels.rpf` full export was not re-run, so its triangle total is still the old measurement. 169`levels.rpf` full export was not re-run, so its triangle total is not re-run here.
169 170
170### Rejected candidates at `917e9b9` 171### Rejected candidates at `917e9b9`
171 172
@@ -248,11 +249,8 @@ The `packs.rpf` row is the pre-dictionary-root control: at `917e9b9` that archiv
24824,034 models (26,585 at `e293917`), and the other archives' new-pin counts are in the table above. 24924,034 models (26,585 at `e293917`), and the other archives' new-pin counts are in the table above.
249The rows here are the `c3708fb` measurements (190,792 models); the `917e9b9` re-count is 350,251, 250The rows here are the `c3708fb` measurements (190,792 models); the `917e9b9` re-count is 350,251,
250and the `e293917` re-count outside `levels.rpf` is 39,454. Triangle totals have not been re-run at 251and the `e293917` re-count outside `levels.rpf` is 39,454. Triangle totals have not been re-run at
251either new pin. 252either new pin; the `e293917` `levels.rpf` geometry cells are not independently reproduced (see
25224,034 models (26,585 at `e293917`), and the other archives' counts are in the tables above. The 253the table note above).
253rows here are the `c3708fb` measurements (190,792 models); the `917e9b9` re-count is 350,248.
254Triangle totals for that pin have not been re-run; the current `e293917` totals are in the
255full-archive table above.
256 254
257At `c3708fb`, every candidate is recovered, read back and decoded: 0 decode failures, 0 readback 255At `c3708fb`, every candidate is recovered, read back and decoded: 0 decode failures, 0 readback
258failures, no duplicate model names, and 2.22 billion triangles (1.95 billion before). The 256failures, no duplicate model names, and 2.22 billion triangles (1.95 billion before). The
@@ -505,7 +503,8 @@ own light bones).
5051. **Done:** [rpf9-explorer PR #1](https://github.com/breadbbbb/rpf9-explorer/pull/1) is merged upstream. 5031. **Done:** [rpf9-explorer PR #1](https://github.com/breadbbbb/rpf9-explorer/pull/1) is merged upstream.
5062. **Done:** the pin is `e293917` (was `917e9b9`, originally `48557ea`). 5042. **Done:** the pin is `e293917` (was `917e9b9`, originally `48557ea`).
5073. **Done:** all ten `MODEL_ARCHIVES` were re-counted and read-back decoded at `e293917` (**382,781 5053. **Done:** all ten `MODEL_ARCHIVES` were re-counted and read-back decoded at `e293917` (**382,781
508 models**, **2,636,248,990 triangles**, **0 decode failures**; table above). 506 models**, **0 decode failures**; table above; the `levels.rpf` geometry cells are not
507 independently reproduced).
5094. Investigate the 71 remaining unrecovered fragment candidates in `levels.rpf` (and the 1 5084. Investigate the 71 remaining unrecovered fragment candidates in `levels.rpf` (and the 1
510 texture-dictionary candidate in `textures.rpf`) if further upstream recovery is wanted. 509 texture-dictionary candidate in `textures.rpf`) if further upstream recovery is wanted.
5115. Keep issue #29 in sync with the `e293917` counts. 5105. Keep issue #29 in sync with the `e293917` counts.