diff options
| author | Lucy <35628281+Amzi-01@users.noreply.github.com> | 2026-11-22 11:33:14 +0000 |
|---|---|---|
| committer | Lucy <35628281+Amzi-01@users.noreply.github.com> | 2026-11-22 11:33:14 +0000 |
| commit | 7149907c8f4213d01c8dfb21c9472d89dbdeb34b (patch) | |
| tree | 8858c1d4b156d73902f24a31b48887d372a71704 /docs | |
| parent | bb2e18421dac527374eb837c88b5063c5d96f81f (diff) | |
Docs: what textures.rpf holds
rpf9_carve over textures.rpf: 2,749 streams; 1,313 system/graphics page pairs
of one two-texture dictionary template (128x128, format code 0x5f, payload
exactly 2 x 16,384 bytes) with 1,117 distinct payloads, and 121 opaque raw
streams holding 91% of the inflated bytes. Counts only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/textures.md | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/textures.md b/docs/textures.md index 129bf51ed..dc90647b2 100644 --- a/docs/textures.md +++ b/docs/textures.md | |||
| @@ -861,6 +861,35 @@ via `bcpack.decode_with_info`). | |||
| 861 | - **BC6H (`codec 6`):** **268 / 268** chunks (100%) decode in provisional mode (`0` strict because every chunk references built-in history, `0` refused). | 861 | - **BC6H (`codec 6`):** **268 / 268** chunks (100%) decode in provisional mode (`0` strict because every chunk references built-in history, `0` refused). |
| 862 | - **BC7 (`codec 7`):** **583 / 5,167** chunks (11.3%) decode in strict mode; **5,150 / 5,167** (99.67%) decode in provisional mode; **17 / 5,167** (0.33%) cleanly refuse when unknown built-in history references exceed the consistency budget. | 862 | - **BC7 (`codec 7`):** **583 / 5,167** chunks (11.3%) decode in strict mode; **5,150 / 5,167** (99.67%) decode in provisional mode; **17 / 5,167** (0.33%) cleanly refuse when unknown built-in history references exceed the consistency budget. |
| 863 | 863 | ||
| 864 | ## What `textures.rpf` holds | ||
| 865 | |||
| 866 | The 192.6 MB archive has no composition table elsewhere in the docs (only census rows). `tools/rpf9_carve.py` | ||
| 867 | reads 97.8% of its data span as 2,749 checksum-validated zlib streams (188.3 MB stored, 487.9 MB inflated; | ||
| 868 | 1.8% zero padding, 0.5% unread). By inflated size the streams fall into two groups: | ||
| 869 | |||
| 870 | | Group | Streams | Inflated | Content | | ||
| 871 | |---|---:|---:|---| | ||
| 872 | | 400-byte + 32,768-byte pairs | 1,313 + 1,313 (+2 lone 400-byte) | 43.6 MB | a small texture-dictionary resource: system page, then graphics page | | ||
| 873 | | everything else | 121 | 444.4 MB (91%) | 11 streams of 16 MB or more (largest 32 MB), 16 of exactly 64 KiB, 62 under 64 KiB | | ||
| 874 | |||
| 875 | **The pairs are one template, filled 1,313 times.** Every 400-byte stream is immediately followed by a 32,768-byte | ||
| 876 | one, and the 8 bytes stored just before 1,312 of the large streams are identical. The 400-byte system pages | ||
| 877 | have only 4 distinct contents, and 1,312 of the 1,315 are byte-identical: a dictionary of two textures, each | ||
| 878 | described as 128 x 128 with format code `0x5f` (95, `DXGI_FORMAT_BC6H_UF16` if the codes are DXGI numbers, as | ||
| 879 | for the BC1/BC7 codes elsewhere in this document), one name per texture. Two 128 x 128 BC6H textures are | ||
| 880 | 2 x 16,384 = 32,768 bytes, exactly the graphics-page size. The graphics pages differ: 1,117 distinct contents | ||
| 881 | among the 1,313 (the most repeated one 60 times). So the archive stores 1,313 instances of one HDR texture pair | ||
| 882 | with per-instance data, the shape of a per-tile or per-cell map. The other header variants describe 172 x 172 | ||
| 883 | textures with code `0x62` (98, BC7) or other sizes. | ||
| 884 | |||
| 885 | **The 121 other streams** start with no known magic (`RDS5`, `0DRP`, `TTPF`, `RSC8`, `PSIN`, `RBF0`, DDS) in | ||
| 886 | their first 4 KiB, and the large ones are high-entropy (7.3 to 7.7 bits per byte over the first 64 KiB, except | ||
| 887 | one at 4.1). They are left as opaque raw data here; matching them to the `data/ttdb` texture pools is the | ||
| 888 | obvious next check. | ||
| 889 | |||
| 890 | Not measured here (hypothesis): what the 1,313 texture pairs are keyed by, and whether the format codes are | ||
| 891 | DXGI values (the exact-size match supports it). | ||
| 892 | |||
| 864 | ## Next step | 893 | ## Next step |
| 865 | 894 | ||
| 866 | 1. **Port BC6H/BC7 BCPack decoders to `TtpfReader` (`rpf9-explorer` / `tools/rpf9dump`).** | 895 | 1. **Port BC6H/BC7 BCPack decoders to `TtpfReader` (`rpf9-explorer` / `tools/rpf9dump`).** |