Body skins: approximate skin for whole-body meshes that no body set names #366

Manually merged
github merged 2 commits from gh-pr/366/head into gh-pr/366/base 2026-11-26 20:30:50 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 06:45 UTC · original
holdmysocks:people-body-skin-approx → master · +254 −21 · 4 files · 2 commits · merged 2026-11-26 07:16 UTC

Characters whose outfit data names no body set (cs_ghost, cs_papa_audacity, the cs_ mermen, cs_kent_paul's lower body, a few child cutscene characters …) get their fit's whole-body meshes (hand_<fit>_000_nude_cull, feet_<fit>_000_nude_cull) as "default" parts with no skin. Until now the viewer and exporter coloured those with the face tone at the neck. This gives them an approximate painted skin instead.

Where the skin comes from

  • The asset table pass, which already reads every wardrobe resource, now also records:
    • which skins the body sets put on each whole-body mesh;
    • which lower-body skin goes with which upper-body skin in the same body set.
  • A body item counts for the mesh its GUID names. The GUID is the name id of the item's own drawable, as the look already uses. Texture matching alone sends mr1 lower bodies to feet_mc1_000_nude_full, because a _nude_cull mesh is never matched by textures.
  • A default part takes:
    1. the skin other characters wear with this outfit's other body-part skin (skin_from: "paired"), else
    2. the skin of that mesh whose mean colour is nearest the face texture's ("tone"), and then the other part is paired with it, else
    3. the most-worn skin ("common").

Result

  • All 26 body parts that had no skin get one: 17 adult mr1 parts on 10 characters, and 9 child lower bodies (feet_mk1), which only one body set wears.
  • cs_kent_paul and the two mermen pair their own upper skin with the lower skin that 640 body sets wear with it.
  • The look JSON gives skin_from. The viewer adds a note that the body skin is approximate and how it was chosen.
  • The table is cached as asset_drawables_v2.json. Older builds keep their asset_drawables.json, so the two don't keep rebuilding each other's cache.

Checks

  • New unit test body_skin_pairs. 312 core tests pass.
  • Survey of all 26 parts before and after: every one now has stored albedo and normal textures.
  • Viewer renders of the bare body (head plus the two skin meshes), before and after:
    • cs_ghost: white before, a tone-matched upper body with its paired lower body after;
    • cs_kent_paul: white legs before, legs paired to his own upper skin after.
  • Dressed renders of cs_ghost, cs_kent_paul, cs_papa_audacity and cs_cousin_00 look unchanged apart from the visible skin.
**@⁠holdmysocks** on GitHub · 2026-11-26 06:45 UTC · [original](https://github.com/holdmysocks/SixNG/pull/366) `holdmysocks:people-body-skin-approx` → `master` · +254 −21 · 4 files · 2 commits · merged 2026-11-26 07:16 UTC Characters whose outfit data names no body set (cs_ghost, cs_papa_audacity, the cs_ mermen, cs_kent_paul's lower body, a few child cutscene characters …) get their fit's whole-body meshes (`hand_<fit>_000_nude_cull`, `feet_<fit>_000_nude_cull`) as "default" parts with no skin. Until now the viewer and exporter coloured those with the face tone at the neck. This gives them an approximate painted skin instead. **Where the skin comes from** - The asset table pass, which already reads every wardrobe resource, now also records: - which skins the body sets put on each whole-body mesh; - which lower-body skin goes with which upper-body skin in the same body set. - A body item counts for the mesh its GUID names. The GUID is the name id of the item's own drawable, as the look already uses. Texture matching alone sends mr1 lower bodies to `feet_mc1_000_nude_full`, because a `_nude_cull` mesh is never matched by textures. - A default part takes: 1. the skin other characters wear with this outfit's other body-part skin (`skin_from: "paired"`), else 2. the skin of that mesh whose mean colour is nearest the face texture's (`"tone"`), and then the other part is paired with it, else 3. the most-worn skin (`"common"`). **Result** - All 26 body parts that had no skin get one: 17 adult `mr1` parts on 10 characters, and 9 child lower bodies (`feet_mk1`), which only one body set wears. - cs_kent_paul and the two mermen pair their own upper skin with the lower skin that 640 body sets wear with it. - The look JSON gives `skin_from`. The viewer adds a note that the body skin is approximate and how it was chosen. - The table is cached as `asset_drawables_v2.json`. Older builds keep their `asset_drawables.json`, so the two don't keep rebuilding each other's cache. **Checks** - New unit test `body_skin_pairs`. 312 core tests pass. - Survey of all 26 parts before and after: every one now has stored albedo and normal textures. - Viewer renders of the bare body (head plus the two skin meshes), before and after: - cs_ghost: white before, a tone-matched upper body with its paired lower body after; - cs_kent_paul: white legs before, legs paired to his own upper skin after. - Dressed renders of cs_ghost, cs_kent_paul, cs_papa_audacity and cs_cousin_00 look unchanged apart from the visible skin.
Characters whose outfit data names no body set get the fit's whole-body
meshes as "default" parts with no skin; the viewer coloured them with the
face tone at the neck. The asset table pass now also records which skins
the body sets put on each whole-body mesh (an item's GUID is the name id of
its drawable) and which lower-body skin goes with which upper-body skin.
A default part takes the skin worn with the other body part's skin, else
the one whose mean colour is nearest the face texture's. All 26 such parts
get one (17 adult mr1 parts, 9 child feet_mk1). The look gives skin_from;
the viewer notes the skin as approximate. Cache: asset_drawables_v2.json.
# Conflicts:
#	crates/sixng-core/src/pedlook.rs
#	crates/sixng-core/src/pedset.rs
#	crates/sixng-gui/src/model_view.rs
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:30:49 +00:00
github manually merged commit 461fdff4cc into gh-pr/366/base 2026-11-26 20:30:50 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.