People: named characters wear their outfits, with hair, a body slider and heeled feet #78

Manually merged
github merged 1 commit from gh-pr/78/head into gh-pr/78/base 2026-11-26 20:08:08 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 20:47 UTC · original
holdmysocks:claude/people → master · +2766 −28 · 26 files · 1 commits · merged 2026-11-23 20:58 UTC

What this does

Named characters own only a head, eyes and a hair placeholder, so the viewer showed a bald floating head. What they wear is data: the game's outfit list (one packs PSO, joaat(model name) -> outfits in order) and the model's wardrobe resource. This reads both and shows the character whole.

  • pedlook (new core module): the outfits of a model, flattened (an outfit includes its head set, body set, brows and body-shape preset by id). sixng ped-look <model> prints them; ped-look "^" gives one summary row per character; sixng outfit <name> --look N exports outfit N as one rigged GLB.
  • Viewer, Character panel: Outfit list (the first listed outfit is the default), weight / muscle sliders (--body w,m), hair tick boxes, notes on what was filled in.
  • hairlink (new core module): places the strand grooms of a hair asset by the name words in the asset registry, archive order, piece counts and geometry, with a model probability per placement.
  • wardrobe: parts now carry the named drawable, asset GUID, state colour, colour tag, face textures and the texture candidates; variations list what they include. Merged with the body-class / head-prefix picking from #70.
  • ExportOptions::part_skins: a face for a head whose bound texture is in no store.

Verified

  • 275 of 327 character prefixes resolve (116 by model name, 159 through their head). 273 have a head and a body, 232 a top and a bottom or a one-piece, 194 shoes. Same numbers before and after rebasing on #70.
  • Screenshots on the integrated GPU: 24 randomly chosen characters plus the two protagonists render whole, dressed and coloured; the body sliders at thin, heavy, muscular and heavy + muscular with the clothes following; heeled sandals from three sides; a crop top without a gap at the hem.
  • cargo test --workspace: 144 core and 12 viewer tests pass.

Not game data (the panel says so)

  • Body skin tone = the face texture's colour at the neck. No painted body texture is stored.
  • Clothing colour: the item's stored colour, else row tint 0 of its palette (for ped_tint_generic_clean only when it agrees with the colour tag), else the colour tag (18 words) in a plain shade of ours. Tints 1 and 2 are not applied.
  • Clothes follow the body sliders by moving with the nearest skin, not by the game's own data.
  • Skin under garments is hidden by coverage; the game uses skin meshes cut to the garment, and few of those are in packs.
  • Feet in heeled shoes (name tokens sh, mh, hh) are posed by a fit to the sole, not by the game's pose.

Not verified / known limits

  • Hair: 780 assets placed. Of 261 characters with a hair asset, 108 are at 50 % or more (shown) and 114 between 20 and 50 % (offered, off by default). The percentage is a model probability, not a measured error rate; generic styles in long same-fit runs have no anchors. Hair renders as guide strands, and its colour is not decoded (colour picker).
  • 52 characters do not resolve (cs_lucia and cs_jason, whose outfits are under player_story000_00 / _01, some hc_*, sc_*, u_*); they show their own parts as before.
  • Body-shape preset values are not applied (the name is read).
  • macOS Metal renderer: only the new material field was added there; not run.
  • First use builds ped_models.json (about a minute) and hair_links.json (about 40 s) in the work folder.

Overlap

model_view.rs, main.rs, glb.rs, render3d*.rs (one new material field), export.rs (head skin block), wardrobe.rs. No shader changes. Rebased on master 65e1138.

**@⁠holdmysocks** on GitHub · 2026-11-23 20:47 UTC · [original](https://github.com/holdmysocks/SixNG/pull/78) `holdmysocks:claude/people` → `master` · +2766 −28 · 26 files · 1 commits · merged 2026-11-23 20:58 UTC ## What this does Named characters own only a head, eyes and a hair placeholder, so the viewer showed a bald floating head. What they wear is data: the game's outfit list (one packs PSO, joaat(model name) -> outfits in order) and the model's wardrobe resource. This reads both and shows the character whole. - **`pedlook` (new core module)**: the outfits of a model, flattened (an outfit includes its head set, body set, brows and body-shape preset by id). `sixng ped-look <model>` prints them; `ped-look "^"` gives one summary row per character; `sixng outfit <name> --look N` exports outfit N as one rigged GLB. - **Viewer, Character panel**: Outfit list (the first listed outfit is the default), weight / muscle sliders (`--body w,m`), hair tick boxes, notes on what was filled in. - **`hairlink` (new core module)**: places the strand grooms of a hair asset by the name words in the asset registry, archive order, piece counts and geometry, with a model probability per placement. - `wardrobe`: parts now carry the named drawable, asset GUID, state colour, colour tag, face textures and the texture candidates; variations list what they include. Merged with the body-class / head-prefix picking from #70. - `ExportOptions::part_skins`: a face for a head whose bound texture is in no store. ## Verified - 275 of 327 character prefixes resolve (116 by model name, 159 through their head). 273 have a head and a body, 232 a top and a bottom or a one-piece, 194 shoes. Same numbers before and after rebasing on #70. - Screenshots on the integrated GPU: 24 randomly chosen characters plus the two protagonists render whole, dressed and coloured; the body sliders at thin, heavy, muscular and heavy + muscular with the clothes following; heeled sandals from three sides; a crop top without a gap at the hem. - `cargo test --workspace`: 144 core and 12 viewer tests pass. ## Not game data (the panel says so) - Body skin tone = the face texture's colour at the neck. No painted body texture is stored. - Clothing colour: the item's stored colour, else row tint 0 of its palette (for `ped_tint_generic_clean` only when it agrees with the colour tag), else the colour tag (18 words) in a plain shade of ours. Tints 1 and 2 are not applied. - Clothes follow the body sliders by moving with the nearest skin, not by the game's own data. - Skin under garments is hidden by coverage; the game uses skin meshes cut to the garment, and few of those are in packs. - Feet in heeled shoes (name tokens `sh`, `mh`, `hh`) are posed by a fit to the sole, not by the game's pose. ## Not verified / known limits - Hair: 780 assets placed. Of 261 characters with a hair asset, 108 are at 50 % or more (shown) and 114 between 20 and 50 % (offered, off by default). The percentage is a model probability, not a measured error rate; generic styles in long same-fit runs have no anchors. Hair renders as guide strands, and its colour is not decoded (colour picker). - 52 characters do not resolve (`cs_lucia` and `cs_jason`, whose outfits are under `player_story000_00` / `_01`, some `hc_*`, `sc_*`, `u_*`); they show their own parts as before. - Body-shape preset values are not applied (the name is read). - macOS Metal renderer: only the new material field was added there; not run. - First use builds `ped_models.json` (about a minute) and `hair_links.json` (about 40 s) in the work folder. ## Overlap `model_view.rs`, `main.rs`, `glb.rs`, `render3d*.rs` (one new material field), `export.rs` (head skin block), `wardrobe.rs`. No shader changes. Rebased on master 65e1138.
Named characters own only a head, eyes and a hair placeholder. The game's
outfit list (a packs PSO: joaat(model name) -> outfits in order) and the
model's wardrobe resource say what they wear. New pedlook module reads both;
275 of 327 characters resolve (116 by model name, 159 through their head).
sixng ped-look prints the outfits; outfit --look N exports one.

Viewer: the first listed outfit is shown, with an Outfit list, the face the
head item names, the body in the skin tone of the face at the neck (no body
texture is stored), clothing colours from the stored colour, the tint row or
the colour tag, accessories on their attach bones, skin hidden under
garments, feet posed for heeled shoes, and weight / muscle sliders that the
clothes follow by moving with the nearest skin.

Hair: new hairlink module places the strand grooms of a hair asset by name
words, archive order, piece counts and geometry, with a model probability.
Hair at 50 % or more is shown; lower placements are offered and start off.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:08:06 +00:00
github manually merged commit 5cceb3c4b2 into gh-pr/78/base 2026-11-26 20:08:08 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.