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:
authorerickbobd <188809599+erickbobd@users.noreply.github.com>2026-11-22 16:51:45 -0300
committererickbobd <188809599+erickbobd@users.noreply.github.com>2026-11-22 16:53:41 -0300
commitc6901b4ce032e593c55eb6249d3b021741b9ab3d (patch)
tree7c6a24ac1bcd503be733d70dada3d292d274b829 /docs
parent9b54495ae5aca994059afd8207d8e9953c601765 (diff)
docs: hands and feet use the body skin sheets, whose albedo is not in the package (ASSET-229)
Measured on my own 1.0.2.1 package against the catalogs of all 57 TTPF pools (357,115 textures). The hand and feet materials bind four maps on shaders 210FBC6A and 8D69EDAB; only the two normal maps are in a pool. The six other slots of each material bind 0x5D7A3A87CC19967D, in no pool either. The hands share all four keys with bodynipplesgen_fr1_000 (the female upper body, core_restofworld.rpf); the feet share specular, normal and ORM with bodygenitalsgen_f*1_008. Those sheets miss their albedo too, while the male lower body has all four maps. None of the keys appears in another resource of the archives the reader can open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 0f9789ae2..f9b70c103 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`) |
@@ -127,8 +127,8 @@ the export binds the slot (1,372 of 1,372). Both keys are 512x256 `BC3_UNORM_SRG
127other textures (`0x93CB433D30220BA6` and `0x5D237CCCD91F8E4D`, 256x128 `BC7_UNORM`), where the 127other textures (`0x93CB433D30220BA6` and `0x5D237CCCD91F8E4D`, 256x128 `BC7_UNORM`), where the
128jacket's and the crop tee's table keys are `BC7_UNORM` `speculartex` sheets themselves. 128jacket's and the crop tee's table keys are `BC7_UNORM` `speculartex` sheets themselves.
129 129
130The hands and feet keys (`0x4D89F2311DBBB7A8`, `0xA54D9F8B51CA6034`) did not resolve in the 130The hands and feet bind an albedo key that is not in the package (see [Hands and feet](#hands-and-feet)).
131scanned TTPF pools. The head drawable has no material texture reference, but its face is selected by 131The head drawable has no material texture reference, but its face is selected by
132a **head-skin preset** keyed by the head name's `joaat32`: 132a **head-skin preset** keyed by the head name's `joaat32`:
133 133
134| Head | Face albedo | Face normal | 134| Head | Face albedo | Face normal |
@@ -138,6 +138,47 @@ a **head-skin preset** keyed by the head name's `joaat32`:
138 138
139The preset library covers 897 heads; `cs_lucia_head_fr1_lat_000_y_full` is not in it. 139The preset library covers 897 heads; `cs_lucia_head_fr1_lat_000_y_full` is not in it.
140 140
141### Hands and feet
142
143Measured against the catalogs of all 57 TTPF pools (357,115 textures). The hands and the feet bind
144the four maps on the same two shaders (`210FBC6A`, `8D69EDAB`), and **only the normal maps are in
145the package**:
146
147| Part | `diffusetex` | `speculartex` | `bumptex` (normal) | `speculartex2` (ORM) |
148|---|---|---|---|---|
149| hands (`hand_fr1_000_*`) | `0x4D89F2311DBBB7A8` — none | `0xA805B9A446CCE950` — none | `0x9D337DABCA636906` — `ttdb_peds_2_3`, 512×1024 BC5 | `0x09D2C98C5B40D16C` — none |
150| feet (`feet_fr1_000_*`) | `0xA54D9F8B51CA6034` — none | `0x752EA8A7A086558F` — none | `0x5091E86DE6196BC3` — `ttdb_peds_3_3`, 512×1024 BC7 | `0xD5C8D2A180326DE7` — none |
151
152Each material has ten slots; the other six bind `0x5D7A3A87CC19967D` on both shaders, which is in
153no pool either: it reads as an engine-supplied default, not a missing asset.
154
155**They are not textured on their own.** The hands and feet share their maps with the body skin
156pieces in `pack/core_restofworld/core_restofworld.rpf`:
157
158- `bodynipplesgen_fr1_000_regular_ws00_full`, the female upper body, binds **the same four keys**
159 as the hands, on the same two shaders. The hands are drawn with the upper-body skin sheet.
160- `bodygenitalsgen_f{r,b,o}1_008_regular_ws00_full`, the female lower body (and the `fr1`
161 `_alt_00`–`_02` variants), binds the feet's
162 `speculartex`, `bumptex` and `speculartex2`, and its own `diffusetex` `0x5B6829CFEC0F41A1`, also in
163 no pool.
164- The male lower body, `bodygenitalsgen_mr1_000_*`, has all four maps in the pools
165 (`diffusetex` `0xBCE4D91DA23689C7`).
166
167So the female body skin has no albedo, specular or ORM map in the package, for the hands and feet
168and for the body pieces that share their sheets. The skin colour has to come from data outside these
169materials, as the face comes from the head-skin preset. That data was not found: none of the keys
170above appears in another resource of `data.rpf`, `common.rpf`, `script.rpf`, `packs.rpf`,
171`anim.rpf`, `core_restofworld.rpf` or `core_restofworld001.rpf` (`story000.rpf` and
172`story000_restofworld.rpf` recover no entries with this reader).
173
174The pattern holds across the set. Of the 56 `hand_`/`feet_` drawables in `packs.rpf`, 52 bind only a
175`diffusetex` key that is in no pool; the four exceptions with all four maps shipped are
176`hand_fsk1_000_nude_cull`, `feet_fsk1_000_nude_cull` and the first-person hands
177`hand_mb1_000_nude_cull_fp` and `hand_mo1_000_nude_cull_fp`. The male hands and feet
178(`hand_mr1_000_nude_cull`, `feet_mr1_000_nude_cull`) also ship only their normal maps, and male and
179female feet bind the same `diffusetex` key. Until the skin data is decoded, render these parts with
180their normal map and a flat skin tone; do not borrow another part's albedo.
181
141## Materials 182## Materials
142 183
143A binding audit of 120 exported scenes (232 material rows) found 35 rows with a real `C8E8C282` 184A binding audit of 120 exported scenes (232 material rows) found 35 rows with a real `C8E8C282`
@@ -274,6 +315,29 @@ for item in items:
274A key's size and format come from the pool that holds it: the `AssetKey`, `Width`, `Height`, 315A key's size and format come from the pool that holds it: the `AssetKey`, `Width`, `Height`,
275`DxgiFormat` and `Mips` fields of the manifest `rpf9dump ttpf <pool.ttpf> <outdir>` writes. 316`DxgiFormat` and `Mips` fields of the manifest `rpf9dump ttpf <pool.ttpf> <outdir>` writes.
276 317
318The [Hands and feet](#hands-and-feet) tables also need `core_restofworld.rpf` and the 57 pool
319catalogs (`AssetKey` in each pool's `manifest.json`):
320
321```powershell
322rpf9dump models <pack\core_restofworld\core_restofworld.rpf> <outdir>
323rpf9dump ttpf <each .ttpf under data\ttdb and pack\*\data\ttdb> <outdir>\ttpf\<pool>
324```
325
326```python
327import glob, json
328
329maps = {"C8E8C282": "diffusetex", "C6F46E79": "speculartex", "1E77BF4C": "bumptex", "739E3D0D": "speculartex2"}
330pooled = {t["AssetKey"] for m in glob.glob(r"<outdir>/ttpf/*/manifest.json")
331 for t in json.load(open(m, encoding="utf-8"))["Textures"]}
332items = [i for m in (r"<outdir>/packs/models/manifest.json", r"<outdir>/core_restofworld/models/manifest.json")
333 for i in json.load(open(m, encoding="utf-8"))["Items"]]
334for name in ("hand_fr1_000_nude_cull.#dr", "feet_fr1_000_full.#dr", "bodynipplesgen_fr1_000_regular_ws00_full.#dr",
335 "bodygenitalsgen_fr1_008_regular_ws00_full.#dr", "bodygenitalsgen_mr1_000_regular_ws00_full.#dr"):
336 keys = {maps[t["Param"]]: t["Id64"] for i in items if i["Name"] == name
337 for mat in i["Materials"] for t in mat["Textures"] if t["Param"] in maps}
338 print(name, {k: (v, v in pooled) for k, v in keys.items()})
339```
340
277The fragment and skinning fields are in the same manifest; the skeleton measurements are in 341The fragment and skinning fields are in the same manifest; the skeleton measurements are in
278[character_skeleton.md](character_skeleton.md), and the world model export is in 342[character_skeleton.md](character_skeleton.md), and the world model export is in
279[models.md](models.md). 343[models.md](models.md).