upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:16:15 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:16:15 -0500
commit494d9247a9db3fc4ce8a97e23cff40aefd761e4a (patch)
treeb505d99047674ec98acd6de656fdc6aed7446a36 /docs
parent7cedefbe333f9a501a3d829217a8eeb7498d7898 (diff)
parentc6901b4ce032e593c55eb6249d3b021741b9ab3d (diff)
Merge pull request #3256 from erickbobd
Diffstat (limited to 'docs')
-rw-r--r--docs/character_models.md72
1 files changed, 68 insertions, 4 deletions
diff --git a/docs/character_models.md b/docs/character_models.md
index 8efc035cb..9d030a7c8 100644
--- a/docs/character_models.md
+++ b/docs/character_models.md
@@ -32,8 +32,8 @@ The decoded export used by the previews contains 13 parts:
32| head L2 | same | 599 | 514 | same preset | 32| head L2 | same | 599 | 514 | same preset |
33| eyes | `…_head_fr1_lat_000_m_eyes.#dr` | 434 | 816 | `0x429453B7A2EB9980` (sRGB + alpha) | 33| eyes | `…_head_fr1_lat_000_m_eyes.#dr` | 434 | 816 | `0x429453B7A2EB9980` (sRGB + alpha) |
34| eyecap | `…_head_fr1_lat_000_m_eyecap.#dr` | 214 | 304 | `0x5CE55BAA340248BD` (sRGB + alpha) | 34| eyecap | `…_head_fr1_lat_000_m_eyecap.#dr` | 214 | 304 | `0x5CE55BAA340248BD` (sRGB + alpha) |
35| hands | `hand_fr1_000_nude_cull.#dr` | 10,440 | 13,534 | unresolved — key does not decode here | 35| hands | `hand_fr1_000_nude_cull.#dr` | 10,440 | 13,534 | none in the package — `0x4D89F2311DBBB7A8` is in no TTPF pool (see [Hands and feet](#hands-and-feet)) |
36| feet | `feet_fr1_000_full.#dr` | 2,309 | 4,082 | unresolved — key does not decode here | 36| feet | `feet_fr1_000_full.#dr` | 2,309 | 4,082 | none in the package — `0xA54D9F8B51CA6034` is in no TTPF pool (see [Hands and feet](#hands-and-feet)) |
37| body (legacy) | `cs_lucia_legacypedcs_fr1_000_fullbody_ws00_full.#dr` | 874 | 908 | `0x996FDBA2DB30CC12` | 37| body (legacy) | `cs_lucia_legacypedcs_fr1_000_fullbody_ws00_full.#dr` | 874 | 908 | `0x996FDBA2DB30CC12` |
38| legacy head | `cs_lucia_legacyheadcs_fr1_001_regular_ws00_full.#dr` | 592 | 1,028 | `0x707771F769AA3542` | 38| legacy head | `cs_lucia_legacyheadcs_fr1_001_regular_ws00_full.#dr` | 592 | 1,028 | `0x707771F769AA3542` |
39| jacket (biker) | `cs_lucia_jacketbiker_fr1_000_regular_c_hl_long_full.#dr` | 9,818 | 10,837 | none — `speculartex` only (`0xF5073AA039BB3CED`) | 39| jacket (biker) | `cs_lucia_jacketbiker_fr1_000_regular_c_hl_long_full.#dr` | 9,818 | 10,837 | none — `speculartex` only (`0xF5073AA039BB3CED`) |
@@ -130,8 +130,8 @@ the export binds the slot (1,372 of 1,372). Both keys are 512x256 `BC3_UNORM_SRG
130other textures (`0x93CB433D30220BA6` and `0x5D237CCCD91F8E4D`, 256x128 `BC7_UNORM`), where the 130other textures (`0x93CB433D30220BA6` and `0x5D237CCCD91F8E4D`, 256x128 `BC7_UNORM`), where the
131jacket's and the crop tee's table keys are `BC7_UNORM` `speculartex` sheets themselves. 131jacket's and the crop tee's table keys are `BC7_UNORM` `speculartex` sheets themselves.
132 132
133The hands and feet keys (`0x4D89F2311DBBB7A8`, `0xA54D9F8B51CA6034`) did not resolve in the 133The hands and feet bind an albedo key that is not in the package (see [Hands and feet](#hands-and-feet)).
134scanned TTPF pools. The head drawable has no material texture reference, but its face is selected by 134The head drawable has no material texture reference, but its face is selected by
135a **head-skin preset** keyed by the head name's `joaat32`: 135a **head-skin preset** keyed by the head name's `joaat32`:
136 136
137| Head | Face albedo | Face normal | 137| Head | Face albedo | Face normal |
@@ -141,6 +141,47 @@ a **head-skin preset** keyed by the head name's `joaat32`:
141 141
142The preset library covers 897 heads; `cs_lucia_head_fr1_lat_000_y_full` is not in it. 142The preset library covers 897 heads; `cs_lucia_head_fr1_lat_000_y_full` is not in it.
143 143
144### Hands and feet
145
146Measured against the catalogs of all 57 TTPF pools (357,115 textures). The hands and the feet bind
147the four maps on the same two shaders (`210FBC6A`, `8D69EDAB`), and **only the normal maps are in
148the package**:
149
150| Part | `diffusetex` | `speculartex` | `bumptex` (normal) | `speculartex2` (ORM) |
151|---|---|---|---|---|
152| hands (`hand_fr1_000_*`) | `0x4D89F2311DBBB7A8` — none | `0xA805B9A446CCE950` — none | `0x9D337DABCA636906` — `ttdb_peds_2_3`, 512×1024 BC5 | `0x09D2C98C5B40D16C` — none |
153| feet (`feet_fr1_000_*`) | `0xA54D9F8B51CA6034` — none | `0x752EA8A7A086558F` — none | `0x5091E86DE6196BC3` — `ttdb_peds_3_3`, 512×1024 BC7 | `0xD5C8D2A180326DE7` — none |
154
155Each material has ten slots; the other six bind `0x5D7A3A87CC19967D` on both shaders, which is in
156no pool either: it reads as an engine-supplied default, not a missing asset.
157
158**They are not textured on their own.** The hands and feet share their maps with the body skin
159pieces in `pack/core_restofworld/core_restofworld.rpf`:
160
161- `bodynipplesgen_fr1_000_regular_ws00_full`, the female upper body, binds **the same four keys**
162 as the hands, on the same two shaders. The hands are drawn with the upper-body skin sheet.
163- `bodygenitalsgen_f{r,b,o}1_008_regular_ws00_full`, the female lower body (and the `fr1`
164 `_alt_00`–`_02` variants), binds the feet's
165 `speculartex`, `bumptex` and `speculartex2`, and its own `diffusetex` `0x5B6829CFEC0F41A1`, also in
166 no pool.
167- The male lower body, `bodygenitalsgen_mr1_000_*`, has all four maps in the pools
168 (`diffusetex` `0xBCE4D91DA23689C7`).
169
170So the female body skin has no albedo, specular or ORM map in the package, for the hands and feet
171and for the body pieces that share their sheets. The skin colour has to come from data outside these
172materials, as the face comes from the head-skin preset. That data was not found: none of the keys
173above appears in another resource of `data.rpf`, `common.rpf`, `script.rpf`, `packs.rpf`,
174`anim.rpf`, `core_restofworld.rpf` or `core_restofworld001.rpf` (`story000.rpf` and
175`story000_restofworld.rpf` recover no entries with this reader).
176
177The pattern holds across the set. Of the 56 `hand_`/`feet_` drawables in `packs.rpf`, 52 bind only a
178`diffusetex` key that is in no pool; the four exceptions with all four maps shipped are
179`hand_fsk1_000_nude_cull`, `feet_fsk1_000_nude_cull` and the first-person hands
180`hand_mb1_000_nude_cull_fp` and `hand_mo1_000_nude_cull_fp`. The male hands and feet
181(`hand_mr1_000_nude_cull`, `feet_mr1_000_nude_cull`) also ship only their normal maps, and male and
182female feet bind the same `diffusetex` key. Until the skin data is decoded, render these parts with
183their normal map and a flat skin tone; do not borrow another part's albedo.
184
144## Materials 185## Materials
145 186
146A binding audit of 120 exported scenes (232 material rows) found 35 rows with a real `C8E8C282` 187A binding audit of 120 exported scenes (232 material rows) found 35 rows with a real `C8E8C282`
@@ -286,6 +327,29 @@ for item in items:
286A key's size and format come from the pool that holds it: the `AssetKey`, `Width`, `Height`, 327A key's size and format come from the pool that holds it: the `AssetKey`, `Width`, `Height`,
287`DxgiFormat` and `Mips` fields of the manifest `rpf9dump ttpf <pool.ttpf> <outdir>` writes. 328`DxgiFormat` and `Mips` fields of the manifest `rpf9dump ttpf <pool.ttpf> <outdir>` writes.
288 329
330The [Hands and feet](#hands-and-feet) tables also need `core_restofworld.rpf` and the 57 pool
331catalogs (`AssetKey` in each pool's `manifest.json`):
332
333```powershell
334rpf9dump models <pack\core_restofworld\core_restofworld.rpf> <outdir>
335rpf9dump ttpf <each .ttpf under data\ttdb and pack\*\data\ttdb> <outdir>\ttpf\<pool>
336```
337
338```python
339import glob, json
340
341maps = {"C8E8C282": "diffusetex", "C6F46E79": "speculartex", "1E77BF4C": "bumptex", "739E3D0D": "speculartex2"}
342pooled = {t["AssetKey"] for m in glob.glob(r"<outdir>/ttpf/*/manifest.json")
343 for t in json.load(open(m, encoding="utf-8"))["Textures"]}
344items = [i for m in (r"<outdir>/packs/models/manifest.json", r"<outdir>/core_restofworld/models/manifest.json")
345 for i in json.load(open(m, encoding="utf-8"))["Items"]]
346for name in ("hand_fr1_000_nude_cull.#dr", "feet_fr1_000_full.#dr", "bodynipplesgen_fr1_000_regular_ws00_full.#dr",
347 "bodygenitalsgen_fr1_008_regular_ws00_full.#dr", "bodygenitalsgen_mr1_000_regular_ws00_full.#dr"):
348 keys = {maps[t["Param"]]: t["Id64"] for i in items if i["Name"] == name
349 for mat in i["Materials"] for t in mat["Textures"] if t["Param"] in maps}
350 print(name, {k: (v, v in pooled) for k, v in keys.items()})
351```
352
289The fragment and skinning fields are in the same manifest; the skeleton measurements are in 353The fragment and skinning fields are in the same manifest; the skeleton measurements are in
290[character_skeleton.md](character_skeleton.md), and the world model export is in 354[character_skeleton.md](character_skeleton.md), and the world model export is in
291[models.md](models.md). 355[models.md](models.md).