Characters: shift skin detail images when parts are merged #508

Manually merged
github merged 1 commit from github-bot/gh-508 into gh-pr/508/base 2026-11-27 21:39:41 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 21:23 UTC · original
holdmysocks:claude/people-skin-merge → master · +9 −1 · 1 files · 1 commits · merged 2026-11-27 21:34 UTC

On characters assembled from parts, the skin of the body parts was badly shaded. Lucia's chest, belly, arms and legs had large flat patches tilted one way, a hard colour seam at the neck, and a blocky look. Connie's chest had the same.

Cause

glb::merge shifts a part's image indices when it adds the part to the character. It covered base, normal, packed, emissive, fabric detail and the ramps, but not:

  • the skin detail's images (speculartex2 and the detail normal and control sheets);
  • the vehicle wear, primer and dust masks.

So every skin part read images 3–5 of the first part loaded. For Lucia that part is her bracelet, so the body's detail used bracelet textures as its strength mask, regions and detail normals. With skin detail off, the body was already correct.

Fix

Shift those image indices in merge as well.

Checks

  • Lucia and Connie, normals view: before, the bare skin showed flat green and orange patches. After, the normals are smooth and match the clothing and head.
  • Lucia's neck close-up: the seam and blocky patches are gone, and the engine pore detail now shows on the body.
  • cargo test --release -p sixng-gui --bins passes.
  • No unit test: glb::Model and Material have no Default, so a test would need full literals. Checked with renders instead.
**@⁠holdmysocks** on GitHub · 2026-11-27 21:23 UTC · [original](https://github.com/holdmysocks/SixNG/pull/508) `holdmysocks:claude/people-skin-merge` → `master` · +9 −1 · 1 files · 1 commits · merged 2026-11-27 21:34 UTC On characters assembled from parts, the skin of the body parts was badly shaded. Lucia's chest, belly, arms and legs had large flat patches tilted one way, a hard colour seam at the neck, and a blocky look. Connie's chest had the same. ## Cause `glb::merge` shifts a part's image indices when it adds the part to the character. It covered base, normal, packed, emissive, fabric detail and the ramps, but not: - the skin detail's images (speculartex2 and the detail normal and control sheets); - the vehicle wear, primer and dust masks. So every skin part read images 3–5 of the first part loaded. For Lucia that part is her bracelet, so the body's detail used bracelet textures as its strength mask, regions and detail normals. With skin detail off, the body was already correct. ## Fix Shift those image indices in `merge` as well. ## Checks - Lucia and Connie, normals view: before, the bare skin showed flat green and orange patches. After, the normals are smooth and match the clothing and head. - Lucia's neck close-up: the seam and blocky patches are gone, and the engine pore detail now shows on the body. - `cargo test --release -p sixng-gui --bins` passes. - No unit test: `glb::Model` and `Material` have no `Default`, so a test would need full literals. Checked with renders instead.
glb::merge left the skin detail's speculartex2 and tile sheets, and the
vehicle wear, primer and dust masks, at the first part's image indices, so
body skin read another part's textures as its detail (flat tilted patches
and a neck seam on Lucia's and Connie's bodies).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:26:59 +00:00
github-bot changed target branch from master to gh-pr/508/base 2026-11-27 21:39:39 +00:00
github manually merged commit b61e080051 into gh-pr/508/base 2026-11-27 21:39:41 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.