Viewer: Breasts, Butt and region body sliders; outfits open in their body-shape preset #388

Manually merged
github merged 3 commits from gh-pr/388/head into gh-pr/388/base 2026-11-26 20:32:38 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 18:01 UTC · original
holdmysocks:body-breasts-butt-297 → master · +282 −31 · 7 files · 3 commits · merged 2026-11-26 18:14 UTC

Adds more body-shape controls to the model viewer and opens outfits in their own body-shape preset (#297).

Sliders

  • Breasts and Butt sit next to Weight and Muscle. They drive the game's gcbreasts (−1…1) and gcbutt (0…1) controls.
  • Regions is a collapsible section with the 12 weight (−1…1) and 12 muscle (0…1) controls: back, belly, butt, calf, chest, forearm, hip, muffin, neck, shoulder, thigh and upper arm. The overall Weight and Muscle sliders set every region.
  • Exports from the viewer carry the full set as a --body-shape spec.
  • --body for screenshots takes w,m[,breasts,butt] or a spec such as gcweightbelly=1.

The outfit's own preset

  • Where it comes from. An outfit's body-shape preset variation has a profile word under tag key c2cfc00a, for example Average. The word names a BODYSHAPE_<word> profile in the body-type XML in common.rpf (CPedVariationBodyTypeManager). The profile's first PED_BODYSHAPE_* preset gives the control values; where a control lists several values, the first is used. GCCleavage has no known rig input, so it is left out.
  • Viewer. The sliders open in the preset's values. Reset goes back to the preset and Neutral sets every control to 0. --body keeps its own shape instead of the preset.
  • CLI. outfit --look exports use the preset too, unless --body-shape is given.
  • Fix. The preset word was read from the wrong tag before: the first word of any other tag, such as "true" or "male". An unnamed word is now kept as its hash and matched against the XML's profile names.

Limit. Across all wardrobes the profile words are Average (7,520), Big (3,538), Skinny (1,555), very_big (637) and very_skinny (253). Only Average names a profile in the XML, and its preset (REGULAR) is all zeros. So for now every outfit opens neutral. Mapping the other words, for example Skinny → HALFTHIN and very_big → HEAVY, would be a guess, so it is not in this PR.

Checked

  • cargo test -p sixng-core: 323 passed. That includes new preset tests, one of them on an unnamed word.
  • Viewer screenshots of cs_mandy, cs_lucia and cs_jason at neutral, at breasts and butt 1, and at belly weight 1. The shapes show on all three; Jason's change is small because his tank top covers it. The panel shows the new sliders, Regions, Reset and Neutral, and the preset line.
  • outfit cs_lucia --look 0 exports with and without --body-shape gcbreasts=1, and outfit cs_mandy --look 1 --body-shape gcbutt=1 exports.

Linear: SIX-232.

**@⁠holdmysocks** on GitHub · 2026-11-26 18:01 UTC · [original](https://github.com/holdmysocks/SixNG/pull/388) `holdmysocks:body-breasts-butt-297` → `master` · +282 −31 · 7 files · 3 commits · merged 2026-11-26 18:14 UTC Adds more body-shape controls to the model viewer and opens outfits in their own body-shape preset (#297). ## Sliders - **Breasts and Butt** sit next to Weight and Muscle. They drive the game's `gcbreasts` (−1…1) and `gcbutt` (0…1) controls. - **Regions** is a collapsible section with the 12 weight (−1…1) and 12 muscle (0…1) controls: back, belly, butt, calf, chest, forearm, hip, muffin, neck, shoulder, thigh and upper arm. The overall Weight and Muscle sliders set every region. - **Exports** from the viewer carry the full set as a `--body-shape` spec. - **`--body`** for screenshots takes `w,m[,breasts,butt]` or a spec such as `gcweightbelly=1`. ## The outfit's own preset - **Where it comes from.** An outfit's body-shape preset variation has a profile word under tag key `c2cfc00a`, for example `Average`. The word names a `BODYSHAPE_<word>` profile in the body-type XML in `common.rpf` (`CPedVariationBodyTypeManager`). The profile's first `PED_BODYSHAPE_*` preset gives the control values; where a control lists several values, the first is used. `GCCleavage` has no known rig input, so it is left out. - **Viewer.** The sliders open in the preset's values. **Reset** goes back to the preset and **Neutral** sets every control to 0. `--body` keeps its own shape instead of the preset. - **CLI.** `outfit --look` exports use the preset too, unless `--body-shape` is given. - **Fix.** The preset word was read from the wrong tag before: the first word of any other tag, such as "true" or "male". An unnamed word is now kept as its hash and matched against the XML's profile names. **Limit.** Across all wardrobes the profile words are `Average` (7,520), `Big` (3,538), `Skinny` (1,555), `very_big` (637) and `very_skinny` (253). Only `Average` names a profile in the XML, and its preset (REGULAR) is all zeros. So for now every outfit opens neutral. Mapping the other words, for example Skinny → HALFTHIN and very_big → HEAVY, would be a guess, so it is not in this PR. ## Checked - `cargo test -p sixng-core`: 323 passed. That includes new preset tests, one of them on an unnamed word. - Viewer screenshots of cs_mandy, cs_lucia and cs_jason at neutral, at breasts and butt 1, and at belly weight 1. The shapes show on all three; Jason's change is small because his tank top covers it. The panel shows the new sliders, Regions, Reset and Neutral, and the preset line. - `outfit cs_lucia --look 0` exports with and without `--body-shape gcbreasts=1`, and `outfit cs_mandy --look 1 --body-shape gcbutt=1` exports. Linear: SIX-232.
- Breasts (gcbreasts -1..1) and Butt (gcbutt 0..1) sliders next to Weight
  and Muscle, and a Regions section with the 12 weight and 12 muscle
  controls. The overall sliders set every region. Exports and --body carry
  the full set as a --body-shape spec; --body also takes a spec.
- An outfit opens in its own body-shape preset: the variation's profile
  word (tag c2cfc00a, e.g. Average) names a BODYSHAPE_<word> profile in
  common.rpf's body-type XML (CPedVariationBodyTypeManager); its first
  preset gives the control values. Reset returns to it, Neutral sets all
  to 0. outfit --look exports use it unless --body-shape is given.
- The preset word is now read from its own tag key (before, the first word
  of another tag, e.g. "true" or "male"); an unnamed word is kept as its
  hash and matched against the XML's profile names.
# Conflicts:
#	crates/sixng-cli/src/main.rs
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:32:37 +00:00
github manually merged commit aac177a1e9 into gh-pr/388/base 2026-11-26 20:32:38 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.