Head scale: earrings and strand hair follow the scaled head #434

Manually merged
github merged 31 commits from github-bot/gh-434 into gh-pr/434/base 2026-11-27 03:08:47 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 02:03 UTC · original
holdmysocks:head-scale-attachments → master · +5364 −222 · 31 files · 31 commits · merged 2026-11-27 03:03 UTC

Follow-up to #421 (SIX-232), stacked on it: a scaled head now takes its earrings and strand hair with it.

Before
With head scale at −0.5 the earrings and ponytail stayed full size around a small head. At +0.5 and +1 they sank inside the head, and only an earring stud showed.

Why

  • gcheadscale scales BM_Head. The scalp, ears, ponytail root, glasses and hat bones hang under it.
  • The default earring roots (FB_Earring_L_Root, FB_Earring_R_Root) hang from SKEL_Head beside it, so they did not scale. The alternative earring roots hang from the ear lobes, under BM_Head.
  • The viewer moves small accessories as one piece, by the skin offset at their centre. For a pair of earrings that centre is the middle of the head, which barely moves.
  • The viewer put strand hair on SKEL_Head's matrix, which the shape does not change.
  • The game's HeadScaleCompensation_Body_Shapes rig does not cover this. It reads two inputs of its own (0b8484e2, af56d3b2) and writes only the neck, throat and mastoid helper bones and BM_Head.

Changes

  • bodyshape::pose poses the two default earring roots under BM_Head. This covers exports.
  • The viewer takes BM_Head's shaping from the shaped head and applies it to:
    • accessories whose vertices use only bones under SKEL_Head (earrings, glasses);
    • the strand hair, brows and beard.
  • README paragraph updated.

Checks

  • New test earrings_follow_head_scale. cargo test -p sixng-core --lib: 334 passed.
  • cargo check -p sixng-cli passes.
  • Viewer screenshots of cs_lucia (look 0) at head scale −1, −0.5, 0, 0.5 and 1, on the RTX 4080. Hair and earrings now scale with the head; the neutral look is unchanged.

Not covered

  • The compensation rig is still not run. Its two inputs are not set by any preset item we decode.
  • Hats and other larger head garments still follow the skin offsets, point by point.
**@⁠holdmysocks** on GitHub · 2026-11-27 02:03 UTC · [original](https://github.com/holdmysocks/SixNG/pull/434) `holdmysocks:head-scale-attachments` → `master` · +5364 −222 · 31 files · 31 commits · merged 2026-11-27 03:03 UTC Follow-up to #421 (SIX-232), stacked on it: a scaled head now takes its earrings and strand hair with it. **Before** With head scale at −0.5 the earrings and ponytail stayed full size around a small head. At +0.5 and +1 they sank inside the head, and only an earring stud showed. **Why** - `gcheadscale` scales `BM_Head`. The scalp, ears, ponytail root, glasses and hat bones hang under it. - The default earring roots (`FB_Earring_L_Root`, `FB_Earring_R_Root`) hang from `SKEL_Head` beside it, so they did not scale. The alternative earring roots hang from the ear lobes, under `BM_Head`. - The viewer moves small accessories as one piece, by the skin offset at their centre. For a pair of earrings that centre is the middle of the head, which barely moves. - The viewer put strand hair on `SKEL_Head`'s matrix, which the shape does not change. - The game's `HeadScaleCompensation_Body_Shapes` rig does not cover this. It reads two inputs of its own (`0b8484e2`, `af56d3b2`) and writes only the neck, throat and mastoid helper bones and `BM_Head`. **Changes** - `bodyshape::pose` poses the two default earring roots under `BM_Head`. This covers exports. - The viewer takes `BM_Head`'s shaping from the shaped head and applies it to: - accessories whose vertices use only bones under `SKEL_Head` (earrings, glasses); - the strand hair, brows and beard. - README paragraph updated. **Checks** - New test `earrings_follow_head_scale`. `cargo test -p sixng-core --lib`: 334 passed. - `cargo check -p sixng-cli` passes. - Viewer screenshots of cs_lucia (look 0) at head scale −1, −0.5, 0, 0.5 and 1, on the RTX 4080. Hair and earrings now scale with the head; the neutral look is unchanged. **Not covered** - The compensation rig is still not run. Its two inputs are not set by any preset item we decode. - Hats and other larger head garments still follow the skin offsets, point by point.
An outfit's BodyShapePreset variation includes body-shape kits. Their tags
under keys 36313cc7, 02484ea6, 6b3fb5a6, 179c8d5c and 63d3733d name preset
items of the body-shape preset PSO in anim.rpf (struct 890b5009), which
list control values. The game gathers the items key by key over all kits
(fn 0x3e47f90) and stores each rig input's value over the old one
(fn 0x4f95310), so a later item wins.

The Average / Skinny words are only labels (the same word gives -0.2
weight on Lucia and -0.4 on Jason); outfits without kits fall back to the
body-type XML profile as before.
The game gathers a kit's items along that kit's own parent chain
(fn 0x3e47f90; the tag-key table in packs.rpf gives the four item keys
mode 0, append, and 63d3733d mode 1, first wins), so kits apply in include
order rather than all items sorted by key. Mandy, Lucia and Jason give the
same shapes under both orders.
# Conflicts:
#	README.md
#	crates/sixng-core/src/bodyshape.rs
# Conflicts:
#	README.md
gcheadscale scales BM_Head. The default earring roots hang from
SKEL_Head beside it, and the viewer put strand hair and head
accessories on the unscaled head, so a scaled head left its earrings
and ponytail at full size (floating, or buried inside the head).

- bodyshape::pose poses FB_Earring_{L,R}_Root under BM_Head, as the ears
  and the alternative earring roots on the ear lobes are.
- The viewer takes BM_Head's shaping from the shaped head and applies it
  to accessories whose bones all hang under SKEL_Head, and to the strand
  hair, brows and beard.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:09:54 +00:00
# Conflicts:
#	README.md
github-bot changed target branch from master to gh-pr/434/base 2026-11-27 03:08:46 +00:00
github manually merged commit b60971308e into gh-pr/434/base 2026-11-27 03:08:47 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.