Files
mandy/docs/character_models.md
ItsNotRexed 38ca58e866 Merge pull request #1534 from Kam471
# Conflicts:
#	docs/README.md
#	docs/character_models.md
2026-11-22 08:08:03 -05:00

10 KiB

Character models and ped parts

Measured from the pinned e293917 export of packs.rpf (tools/rpf9dump models): 26,585 manifest rows, 11,335 unique names, 23,720 .#dr drawable rows and 2,865 .#ft fragment rows. One row is one LOD or variant, so these are row counts, not character counts.

No game data is reproduced here.

A character is a drawable plus a fragment

  • A .#dr drawable carries the geometry, materials and texture references.
  • A .#ft fragment carries the shared 597-name humanoid skeleton and the character's bounds. The measured skeleton is in character_skeleton.md.

The current exporter writes every fragment as a 25-vertex bounds cube with Embedded: null (2,865 of 2,865). Fragment child drawables are not walked, so a part that exists only as a fragment child is not in the OBJ/GLB output even though its parent fragment is. The current exporter writes every fragment as a flat 25-vertex / 32-triangle bounds grid (a 5x5 grid at z=0, Min/Max z = 0) with Embedded: null (2,865 of 2,865). Fragment child drawables are not walked, so a part that exists only as a fragment child is not in the OBJ/GLB output even though its parent fragment is.

Lucia records

22 unique names contain lucia (12 contain cs_lucia). They are parts, not one assembled model. The decoded export used by the previews contains 13 parts:

Part Source drawable Vertices Triangles Albedo key
head (hi) player_story000_00_head_fr1_lat_000_m.#dr 8,983 13,320 none
head L0 same 4,638 4,940 none
head L2 same 599 514 none
eyes …_head_fr1_lat_000_m_eyes.#dr 434 816 0x429453B7A2EB9980
eyecap …_head_fr1_lat_000_m_eyecap.#dr 214 304 0x5CE55BAA340248BD
hands hand_fr1_000_nude_cull.#dr 10,440 13,534 0x4D89F2311DBBB7A8
feet feet_fr1_000_full.#dr 2,309 4,082 0xA54D9F8B51CA6034
body (legacy) cs_lucia_legacypedcs_fr1_000_fullbody_ws00_full.#dr 1,748 1,816 0x996FDBA2DB30CC12
legacy head cs_lucia_legacyheadcs_fr1_001_regular_ws00_full.#dr 592 1,028 0x707771F769AA3542
jacket (biker) cs_lucia_jacketbiker_fr1_000_regular_c_hl_long_full.#dr 9,818 10,837 0xF5073AA039BB3CED
crop tee player_story000_00_tshirtcrop_fr1_001_slim_cc_un_long_full.#dr 4,932 6,756 0x46E8FA9436E9D43C
jacket (biker) cs_lucia_jacketbiker_fr1_000_regular_c_hl_long_full.#dr 9,818 10,837 none (normal map only)
crop tee player_story000_00_tshirtcrop_fr1_001_slim_cc_un_long_full.#dr 4,932 6,756 none (normal map only)
bikini top brabikini_fr1_012_regular_ws00_full.#dr 6,547 5,697 0xDF3615ADFB1F4787
undies undiesgstring_fr1_002_slim_hw_full.#dr 961 913 0xCFD339832A9C724A

Two caveats that matter for any render:

  • body is not a base body. The only Lucia full-body record in packs.rpf is the
  • body is not a base body. The only lucia-named full-body record in packs.rpf is the cs_lucia_legacypedcs clothed legacy ped. The decoded part is 1,748 vertices / 1,816 triangles, and the manifest lists 874- and 640-vertex rows of the same drawable. Do not present it as Lucia's hero body.
  • The head drawable has no texture references. Its face cannot be textured from the material keys alone.

player_story000_00 (Lucia's slot prefix) has 104 unique names: 63 drawables plus 41 char_bipedbounds fragments. The largest drawables:

Drawable Vertices Triangles
…_hoodiezip_fr1_001_regular_o_hd_long_cull_00.#dr 20,311 14,256
…_sweatshirtcrewneck_fr1_000_loose_cc_un_long_cull_00.#dr 19,217 13,600
…_hoodiezip_fr1_001_regular_h_hd_long_cull_00.#dr 19,141 14,106
…_shirtdress_fr1_000_slim_c_oc_un_long_cull_00.#dr 14,341 16,146
…_tshirtcrop_fr1_001_slim_cc_un_long_cull_00.#dr 12,254 15,437
…_jacketbiker_fr1_000_regular_o_hl_long_full.#dr 11,093 12,023

Slot tokens

These are counts of unique names containing the token. They are a naming heuristic, not the game's component table.

Token Unique names Note
player_story 196 Lucia (000_00) and Jason (000_01)
head 3,741 heads and head attachments across all characters
hair 278 includes accessories and non-human fur
belt 44 accessories
pants 459 pantsjeans, pantscargo, pantsleggings, pantstrack, …
jeans 157 pantsjeans / shortsjeans
jacket 327 jacketbiker, jacketdenim, jacketblazer, jackettrack, …
uppr 17 all slod_uppr_* super-LOD crowd parts
lowr 21 all slod_lowr_* super-LOD crowd parts
uppr 17 14 are slod_uppr_*; 3 are char_bipedbounds_female_armor…_uppr_l/r.#ft
lowr 21 17 are slod_lowr_*; 4 are char_bipedbounds_female_armor…_lowr_l/r.#ft
jbib 0 the GTA V slot code is not a name token here
hands 8 the singular hand_ appears in 35 names
feet 26 bare feet plus creature variants
bikini 45 brabikini_* and related
undies 102 undiesgstring, undiesbriefs, undiesboxers, …

Textures

The character export requested 215 texture keys and matched 184. Only 0xC8E8C282 is used as sRGB albedo; 0xC6F46E79 / 0x1E77BF4C are tangent-space normal maps, 0x739E3D0D is ORM/mask and 0x8ADB8480 is a BC4 mask. A part without an explicit albedo keeps a flat material colour; it must not be painted with a normal or ORM map.

The hands and feet keys (0x4D89F2311DBBB7A8, 0xA54D9F8B51CA6034) did not resolve in the scanned TTPF pools. The head has no texture reference at all.

Materials

A binding audit of 120 exported scenes (232 material rows) found 62 with a real C8E8C282 albedo, 29 with a shared peds_* collage, 4 with a C6F46E79 normal map as the base colour, and 137 with no texture. The 4 normal-map rows are the biker jacket and crop tee: those parts have no albedo, so a preview must render them as clay rather than invent a colour.

  • The belt is not a separate part. It is 172 connected components / 2,229 vertices inside the jeans mesh, with no node, material or texture key; it cannot be separated without editing the geometry.
  • UVs above 1 are wraps, not atlas pages. The blazer reaches U=2.0014 (1,628 vertices); after subtracting 1, 90.9% of those vertices are within 1e-4 of a page-0 vertex. The jeans reach U=-0.9936, a -1 mirror.
  • The body atlas is a shared collage. 996FDBA2DB30CC12 is 256x256 and contains several ped variants (faces, a tropical shirt, blue jeans, dark cloth). Only 43.7% of the sheet is covered by the body's islands, so bilinear sampling at an island edge can read a neighbouring variant. The blue in an earlier preview came from the authored baseColorFactor (0.200, 0.270, 0.400), not from this atlas.

What is not decoded

  • Fragment children. All 2,865 fragments export as the 25-vertex bounds cube described above. A shared body that is only a child drawable would be invisible to the current export.
  • Fragment children. All 2,865 fragments export as the flat 25-vertex / 32-triangle bounds grid described above. A shared body that is only a child drawable would be invisible to the current export.
  • Fragment children (tested). A SixNG fragment-child walk (2026-11-21 build) finds no child drawables in any of the 2,865 character fragments; every one is the flat 25-vertex / 32-triangle grid. The path is alive on world fragments (bus2_frag_hi: 14 model structs, 11 children, a 650 KB model_parts.glb), so the negative is a property of the character files. ambient_femalebody is a 596-bone skeleton plus the same 25-vertex grid; it has no skin mesh. A body that exists only as a child drawable is therefore not present in packs.rpf's character fragments.
  • A ped-variation table. common.rpf contains CPedVariationBodyTypeManager (0x226000) and CPedComponentSetManager (0x228000), but neither maps a component variation index to a drawable plus texture. The first is height and body-shape presets (SCALE_PLAYER_STORY000_00 is 1.62 m); the second lists gameplay components. Slot selection from names is a heuristic, not the game's rule.
  • Lucia's hair. Her three named hair drawables are 3-vertex / 1-triangle placeholders. Across all characters, 241 of 329 hair rows are 3-vertex placeholders, but 68 have more than 100 vertices, so real hair geometry does exist for some characters. A static export of Lucia is bald by design, not by a missing decode.
  • Lucia's hair. The packs.rpf manifest lists three player_story000_00 hair drawables, and the decoded export resolves ten unique hair names; all of them are 3-vertex / 1-triangle placeholders. Across all characters, 241 of 329 hair rows are 3-vertex placeholders, but 68 have more than 100 vertices, so real hair geometry does exist for some characters. A static export of Lucia is bald by design, not by a missing decode.
  • levels.rpf names. The archive has not been name-enumerated in this workspace; the negative for a Lucia body is scoped to the named packs.rpf records above.
  • Bind pose and full skinning. The delivered GLBs use identity inverse-bind matrices and do not apply the 8-influence bone-palette skinning. Prior art places inverse bind matrices at the skeleton header +0x08; that is not yet reproduced here, so the reference TRS remains the only measured pose.

Reproduce

rpf9dump models <packs.rpf> <outdir>
import json

items = json.load(open(r"<outdir>/packs/models/manifest.json", encoding="utf-8"))["Items"]
names = sorted({i["Name"] for i in items})
print(len(items), len(names))
print(sum(1 for i in items if i.get("IsFragment")), "fragments")
print([n for n in names if "lucia" in n.lower()])
import json

items = json.load(open(r"<outdir>/packs/models/manifest.json", encoding="utf-8"))["Items"]
names = sorted({i["Name"] for i in items})
print(len(items), len(names))
print(sum(1 for i in items if i.get("IsFragment")), "fragments")
print([n for n in names if "lucia" in n.lower()])

The fragment and skinning fields are in the same manifest; the skeleton measurements are in character_skeleton.md, and the world model export is in models.md.