Hair colliders: the worn garments' bounds join the body bound #374

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

@⁠holdmysocks on GitHub · 2026-11-26 16:01 UTC · original
holdmysocks:claude/people-garment-colliders → master · +14 −3 · 1 files · 1 commits · merged 2026-11-26 16:15 UTC

Hair styling is now also damped against the bounds of the garments the character wears, not only the bare body bound (#365).

What the data holds

  • packs.rpf has 2,293 garment bound fragments named char_bipedbounds_<sex>_<garment drawable>: 1,196 female, 1,095 male, one infant and one kid.
    • The name after the sex prefix is the garment's own drawable name. For example, the bound for the drawable apronbib_fr1_000_regular_knee_ws00_full is char_bipedbounds_female_apronbib_fr1_000_regular_knee_ws00_full.
    • In a sample of 200 bounds, 167 have a drawable of the same name.
  • They use the same layout as the body bound, so fragphys::body_pieces reads them unchanged:
    • one group per bone (group name = joaat of the bone name);
    • pieces are mostly kind 2 tapered capsules (48,747), with 915 spheres, 877 boxes, 1,072 kind 13 and 93 kind 9;
    • 59 bounds have no round pieces.
  • Correction to #365: some garment bounds do have head and neck pieces (245 head pieces and 726 neck pieces across all bounds, for example hoods and collars).
  • A garment's pieces sit where the garment sits, slightly out from the body. For example, the apron's thigh capsules reach down to the knee.

What changed

  • For each worn part, the viewer looks up char_bipedbounds_<female|male>_<part name> and adds its round pieces to the body bound's pieces. Damping uses the nearest piece of either set.
  • The note in the character panel now gives the number of garment bounds used.

What is inferred

  • That the game damps hair against garment bounds as well as the body bound. The bound names tie each bound to its garment, but nothing read shows the hair pass using them.
  • Whether the game adds a garment's pieces to the body's or replaces the body's pieces on those bones. Taking the nearest piece gives the same result wherever the garment encloses the body.
  • The 3 cm falloff is still a guess.

Checks

  • cargo check --workspace --all-targets is clean.
  • Tests: 317 core, 50 gui and cli pass.
  • Renders of Lucia and Mandy (front, close and back), before and after: Lucia's ponytail lies slightly flatter where it hangs over her top, and Mandy is practically unchanged (under 900 pixels differ). Nothing else moves.
**@⁠holdmysocks** on GitHub · 2026-11-26 16:01 UTC · [original](https://github.com/holdmysocks/SixNG/pull/374) `holdmysocks:claude/people-garment-colliders` → `master` · +14 −3 · 1 files · 1 commits · merged 2026-11-26 16:15 UTC Hair styling is now also damped against the bounds of the garments the character wears, not only the bare body bound (#365). ## What the data holds - packs.rpf has 2,293 garment bound fragments named `char_bipedbounds_<sex>_<garment drawable>`: 1,196 female, 1,095 male, one infant and one kid. - The name after the sex prefix is the garment's own drawable name. For example, the bound for the drawable `apronbib_fr1_000_regular_knee_ws00_full` is `char_bipedbounds_female_apronbib_fr1_000_regular_knee_ws00_full`. - In a sample of 200 bounds, 167 have a drawable of the same name. - They use the same layout as the body bound, so `fragphys::body_pieces` reads them unchanged: - one group per bone (group name = joaat of the bone name); - pieces are mostly kind 2 tapered capsules (48,747), with 915 spheres, 877 boxes, 1,072 kind 13 and 93 kind 9; - 59 bounds have no round pieces. - Correction to #365: some garment bounds do have head and neck pieces (245 head pieces and 726 neck pieces across all bounds, for example hoods and collars). - A garment's pieces sit where the garment sits, slightly out from the body. For example, the apron's thigh capsules reach down to the knee. ## What changed - For each worn part, the viewer looks up `char_bipedbounds_<female|male>_<part name>` and adds its round pieces to the body bound's pieces. Damping uses the nearest piece of either set. - The note in the character panel now gives the number of garment bounds used. ## What is inferred - That the game damps hair against garment bounds as well as the body bound. The bound names tie each bound to its garment, but nothing read shows the hair pass using them. - Whether the game adds a garment's pieces to the body's or replaces the body's pieces on those bones. Taking the nearest piece gives the same result wherever the garment encloses the body. - The 3 cm falloff is still a guess. ## Checks - `cargo check --workspace --all-targets` is clean. - Tests: 317 core, 50 gui and cli pass. - Renders of Lucia and Mandy (front, close and back), before and after: Lucia's ponytail lies slightly flatter where it hangs over her top, and Mandy is practically unchanged (under 900 pixels differ). Nothing else moves.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:31:31 +00:00
github manually merged commit d7909317ed into gh-pr/374/base 2026-11-26 20:31:32 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.