Viewer body shape: clothes are not left inside a swelling skin #331

Manually merged
github merged 2 commits from gh-pr/331/head into gh-pr/331/base 2026-11-26 20:28:02 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 01:29 UTC · original
holdmysocks:garment-rigs-308 → master · +19 −5 · 1 files · 2 commits · merged 2026-11-26 01:37 UTC

Part of #308 (body sliders). Follows #318.

What changes

With a body shape set, the viewer moves clothes with the skin under them: each garment point moves by the distance-weighted mean of the offsets of the six nearest skin points. Where the skin swells unevenly, that mean can move a garment point less far outward than the skin right beside it, and the skin shows through. This happened on Abel's belly and sides at full weight.

Now the offset along a garment point's normal is at least the largest outward offset of those six skin points. Small rigid accessories (watches, glasses) still move by the offset at their centre, as before.

Before / after (viewer, RTX 4080)

  • Abel (mo1), default outfit, weight/muscle 0/0, 1/1, -1/0, 1/0. At 1/1, before: skin shows through the T-shirt in four or five spots on the belly, side and upper arm. After: one or two small spots remain at the hem fold, and the arm and chest are covered. At 1/0, the spots drop from three to one. Neutral and -1/0 are unchanged.
  • No change elsewhere: Kordell, Raina Koleva, Papa Audacity and two ambient characters at the same four settings look the same as before, with no spikes or new gaps.

Findings (not in this PR)

Garment rigs.

  • RIG0 section 6257c371 holds each rig's path as text, and the rig dictionary key is the hash of that path.
  • Garment rigs are named <Style>_<Category>_Garment_<Shapes|PoseDeformation|BaseDeformation>_<Male|Female>, for example LooseShortSleeve_TShirts_Garment_Shapes_Male. There are 658 of them, and they drive the garments' own GM_U01_* helper bones.
  • Abel's T-shirt has no helper bones: its bone palette is 107 shared body bones.
  • I tried posing such garments through those shared bones with the body rig. It looked worse than following the skin: more skin showed through at full weight, and even at weight -1. So the game does not simply reuse the body's bone values for them.
  • There are also 34 region rigs (ChestFront_Upper_GarmentSurface_Male and others), which are the next lead.
  • Nothing found so far links a garment to its rig.

The 14 rig inputs that no control drives. They appear only in the rigs' input lists, the same kind of entry as the weight and muscle controls, in up to 123 rigs each. No rig writes them, so the game sets them from outside the rigs. Their names and their source are still unknown.

**@⁠holdmysocks** on GitHub · 2026-11-26 01:29 UTC · [original](https://github.com/holdmysocks/SixNG/pull/331) `holdmysocks:garment-rigs-308` → `master` · +19 −5 · 1 files · 2 commits · merged 2026-11-26 01:37 UTC Part of #308 (body sliders). Follows #318. ## What changes With a body shape set, the viewer moves clothes with the skin under them: each garment point moves by the distance-weighted mean of the offsets of the six nearest skin points. Where the skin swells unevenly, that mean can move a garment point less far outward than the skin right beside it, and the skin shows through. This happened on Abel's belly and sides at full weight. Now the offset along a garment point's normal is at least the largest outward offset of those six skin points. Small rigid accessories (watches, glasses) still move by the offset at their centre, as before. ## Before / after (viewer, RTX 4080) - **Abel (`mo1`), default outfit, weight/muscle 0/0, 1/1, -1/0, 1/0.** At 1/1, before: skin shows through the T-shirt in four or five spots on the belly, side and upper arm. After: one or two small spots remain at the hem fold, and the arm and chest are covered. At 1/0, the spots drop from three to one. Neutral and -1/0 are unchanged. - **No change elsewhere:** Kordell, Raina Koleva, Papa Audacity and two ambient characters at the same four settings look the same as before, with no spikes or new gaps. ## Findings (not in this PR) **Garment rigs.** - RIG0 section 6257c371 holds each rig's path as text, and the rig dictionary key is the hash of that path. - Garment rigs are named `<Style>_<Category>_Garment_<Shapes|PoseDeformation|BaseDeformation>_<Male|Female>`, for example `LooseShortSleeve_TShirts_Garment_Shapes_Male`. There are 658 of them, and they drive the garments' own `GM_U01_*` helper bones. - Abel's T-shirt has no helper bones: its bone palette is 107 shared body bones. - I tried posing such garments through those shared bones with the body rig. It looked worse than following the skin: more skin showed through at full weight, and even at weight -1. So the game does not simply reuse the body's bone values for them. - There are also 34 region rigs (`ChestFront_Upper_GarmentSurface_Male` and others), which are the next lead. - Nothing found so far links a garment to its rig. **The 14 rig inputs that no control drives.** They appear only in the rigs' input lists, the same kind of entry as the weight and muscle controls, in up to 123 rigs each. No rig writes them, so the game sets them from outside the rigs. Their names and their source are still unknown.
Clothes follow the skin under them by the weighted mean of the nearest
skin offsets. Where the skin swells unevenly (a belly at full weight)
that mean can move a garment point less far outward than the skin
beside it, and the skin shows through. The offset along the point's
normal is now at least the largest outward offset of those skin points.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:28:00 +00:00
github manually merged commit d90047f4a2 into gh-pr/331/base 2026-11-26 20:28:02 +00:00
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-26 01:45 UTC · original

This was merged before the hold on garment-rig work reached this session. The garment rig work continues in SIX-141.

**@⁠holdmysocks** on GitHub · 2026-11-26 01:45 UTC · [original](https://github.com/holdmysocks/SixNG/pull/331#issuecomment-7180095160) This was merged before the hold on garment-rig work reached this session. The garment rig work continues in SIX-141.
This discussion has been locked. Commenting is limited to contributors.
No description provided.