Body skins use the character's own normal map #378

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

@⁠holdmysocks on GitHub · 2026-11-26 16:32 UTC · original
holdmysocks:people-item-normals → master · +16 −1 · 2 files · 1 commits · merged 2026-11-26 16:51 UTC

Characters' bodies now use their own normal maps, so an old woman's body shows ribs, loose skin and knobbly knees, and a muscular man shows chest and abdomen detail. Before, every character of a body type had the same smooth generic body.

What was wrong

  • A body item lists its colour texture twice, the first time without a normal map ((albedo, 0), then (albedo, normal)).
  • The export took the first entry, so it had no normal map from the item.
  • It also kept the whole-body mesh's own normal map whenever that one was stored. The mesh's map is a smooth, generic body.

Change (export.rs, part skins)

  • The normal map comes from the entry that has one for the chosen colour texture.
  • When it is stored, it replaces the mesh's.

Scope, from a survey of every character on current master:

  • 1,042 of the 2,645 characters with a body skin change (1,798 body parts).
  • 1,288 parts already had the same map (for example Lucia's), so they look the same.
  • 2,204 parts whose item names no stored normal map keep the mesh's.
  • Exports with part skins are always redone, so no cache needs clearing.

Checks

  • cargo check --workspace --all-targets is clean. 317 core tests and 50 viewer tests pass.
  • Bare-body viewer renders (head plus the two body meshes) of cs_annabelle and cs_artim, before and after:
    • Annabelle's body now matches her aged face.
    • Artim's shows his build.
    • Colour is unchanged.
  • The item and mesh normal maps were decoded side by side. The item maps carry the character-specific detail, and the mesh map is nearly flat.
**@⁠holdmysocks** on GitHub · 2026-11-26 16:32 UTC · [original](https://github.com/holdmysocks/SixNG/pull/378) `holdmysocks:people-item-normals` → `master` · +16 −1 · 2 files · 1 commits · merged 2026-11-26 16:51 UTC Characters' bodies now use their own normal maps, so an old woman's body shows ribs, loose skin and knobbly knees, and a muscular man shows chest and abdomen detail. Before, every character of a body type had the same smooth generic body. **What was wrong** - A body item lists its colour texture twice, the first time without a normal map (`(albedo, 0)`, then `(albedo, normal)`). - The export took the first entry, so it had no normal map from the item. - It also kept the whole-body mesh's own normal map whenever that one was stored. The mesh's map is a smooth, generic body. **Change** (`export.rs`, part skins) - The normal map comes from the entry that has one for the chosen colour texture. - When it is stored, it replaces the mesh's. **Scope**, from a survey of every character on current master: - 1,042 of the 2,645 characters with a body skin change (1,798 body parts). - 1,288 parts already had the same map (for example Lucia's), so they look the same. - 2,204 parts whose item names no stored normal map keep the mesh's. - Exports with part skins are always redone, so no cache needs clearing. **Checks** - `cargo check --workspace --all-targets` is clean. 317 core tests and 50 viewer tests pass. - Bare-body viewer renders (head plus the two body meshes) of cs_annabelle and cs_artim, before and after: - Annabelle's body now matches her aged face. - Artim's shows his build. - Colour is unchanged. - The item and mesh normal maps were decoded side by side. The item maps carry the character-specific detail, and the mesh map is nearly flat.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:31:50 +00:00
github manually merged commit 4f0ea86127 into gh-pr/378/base 2026-11-26 20:31:53 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.