Body shape: the game's bone composition and body types for every character #318
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!318
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/318/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-25 22:23 UTC · original
holdmysocks:body-morphs-308→master· +156 −19 · 4 files · 4 commits · merged 2026-11-25 23:32 UTCPart of #308 (body sliders on the main characters). The "only the parts shown hide skin" fix moved to #319, which is merged; master is merged in here.
What changes
1. Bones are composed the way the game's skeleton update does it. This replaces the rule in the first version of this PR, which was inferred from renders. The game's per-frame skeleton update works like this:
So a helper bone's scale does reach the bones under it, but in each bone's own axes, without the shear that the earlier matrix product added. The old matrix product is what tore the chest of heavy male shapes.
--body-shapeexports pose the same way. The joint world matrices match the game's transforms. A joint's local matrix can carry shear, and TRS joint nodes (used with animations) can't hold it.A unit test covers the rule with a parent scaled 3x along z and a child turned 90° about x. The child's offset is scaled with the parent (1.3 m), and the child's own z axis is 3 long while its y axis stays 1: no shear.
2. Body type from the fit tag. The rig and the reference skeleton were picked by
!name.contains("_mr1"), so every male body type other thanmr1was shaped as a female body. Now:m(mr1,mb1,mo1,mc1,msk1) gets the male rig and skeleton.mk1) and infant (mi1) parts get their own reference skeletons (ambient_kidbody,ambient_infantbody). Before, they were bound to the adult female skeleton: a kid's head bone sat 0.65 m above the head mesh.bbandxxlreference skeletons have the same joint positions as the regular ones, so they need nothing separate.Coverage (all characters)
Of the 2,628 characters and outfit-list models whose default look resolves:
mr1fr1mo1fo1mb1fb1mk1/mi1So 2,580 have body-shape data: every adult body is shaped by one of the two rigs. The 22
mo1andmb1characters were shaped with the female rig before this PR, and the 15 kids and infants with the adult rig and skeleton.Sample at the extremes. I rendered 14 characters in their default outfits at weight/muscle 0/0, 1/1, -1/0 and 1/0:
mr1, fivefr1, onefo1, onefb1;mb1) and Abel (mo1).13 look right at every setting: smooth bodies with no tears, and clothes that follow. Abel's skin pokes through his T-shirt at the belly at full weight. That happens because the viewer's clothes follow the nearest skin rather than the game's garment rigs, which aren't linked yet. Jason and Lucia also look right, apart from the nipple noted below.
Before / after (viewer, RTX 4080)
Jason and Lucia, bare body (head plus upper and lower body), at weight/muscle 0/0, 1/0, 1/1 and -1/0, rendered with three builds:
With the game's rule:
Jason's chest close-up at 1/0 and 1/1: no torn skin. A pointed nipple with a fold under it remains (see below).
Kordell (
mb1), at full weight: before, he got wide female hips. After, he is shaped as a male body.Abel (
mo1): shaped as a male body after the fix.Thomas, kid (
mk1): before, his body tore apart at every slider setting. After, he is whole and unchanged by the sliders.Not in this PR (findings for #308)
The 14 rig inputs that no control drives. They are not in the game's presets, PSO or meta files, and their hashes are not constants in the executable. They act on:
So they look like extra shape controls set from data not decoded yet. Several of them reshape the breast bones, which probably explains the pointed male nipple at full weight.
Face fat: the game's body-shape presets (common.rpf
BodyShapePresets) and both rigs have no face controls.Lucia's "holes in the neck": a light band along the underside of the jaw. It shows on the head alone, at every body setting, and disappears in the albedo view, so it is head shading (shader
ped_standard_head), not geometry.Body textures: Lucia's upper-body item names a texture that isn't in the install, so her torso keeps the flat tone taken from the face.
Body hair: the grooms are listed under "Hair and fur" but start switched off.
Jason's hips: a visible line where the upper and lower body textures meet.