Facial control names and garment pose shape keys (#392) #453

Manually merged
github merged 1 commit from github-bot/gh-453 into gh-pr/453/base 2026-11-27 05:17:32 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 04:17 UTC · original
holdmysocks:face-controls-392 → master · +269 −15 · 7 files · 1 commits · merged 2026-11-27 05:11 UTC

Follow-up to #392 and #438: facial control names and garment pose shape keys.

Facial control names (new facecontrols module)

  • Facial clips drive 91 controls. Each control is a float track of kind joaat(facialtranslation), and the track id is joaat of the control name.
  • 80 of the 91 names are recovered by joaat search over FACS-style word combinations (face_[l_|r_]<region>_<action>). Examples: face_jaw, face_mouth, face_l_lipcorner_puller, face_r_upperlip_raiser, face_tongueextension. Every left/right name has its mirror among the ids, which checks each find. The other 11 show as hex. Four of these are 2-D controls the teeth and tongue rig reads; the other seven are read by no rig.
  • sixng clips <dictionary> now lists each clip's facial_controls by name.
  • Tests pin a few ids and check that every name has its mirror.

Garment pose correctives

  • Each character also has a network stored under its ped model's name. For example, player_story000_00 has 294 inputs and 4,675 surface points. It is a body surface that bends with the pose.
  • A garment's stream 8 names three surface points + 1 per vertex (tag 0xb210 / 0xb220; all zero where the vertex does not follow the surface). The vertex moves by their mean. Over a garment's own neighbouring vertices, the equal-weight mean gives the smoothest result: 0.07, against 0.10 for one point and 1.7 shuffled. The low halves do not work as weights.
  • Model and outfit exports now give these garments glTF morph targets pose_000…, which import into Blender as shape keys. The viewer's Expression panel lists them, at -1..1.
  • pose_morphs per geometry in the export report.

Not decoded, and why

  • The head network's inputs (370–445 per head) are not the 91 clip controls. The map from controls to network inputs is the face engine setup. Its resource types appear in no table of contents of the install: all 23 archives were checked, plus the rig dictionaries, the compute schemes, the other compute graphs, the executable and the shaders. So the head shape keys keep index names, and facial clips cannot play on them.
  • What drives each pose input. The likely source is body pose rigs that read joint rotations, but the input order is unknown.
  • Teeth and tongue with facial clips. The lower teeth hang under the jaw bone, which no rig writes: the game poses it in code. The teeth and tongue rig also reads 14 float inputs that are in no file. With the clip's controls the rig leaves the teeth where they are, even on a jaw-open clip.
**@⁠holdmysocks** on GitHub · 2026-11-27 04:17 UTC · [original](https://github.com/holdmysocks/SixNG/pull/453) `holdmysocks:face-controls-392` → `master` · +269 −15 · 7 files · 1 commits · merged 2026-11-27 05:11 UTC Follow-up to #392 and #438: facial control names and garment pose shape keys. **Facial control names** (new `facecontrols` module) - Facial clips drive 91 controls. Each control is a float track of kind joaat(`facialtranslation`), and the track id is joaat of the control name. - 80 of the 91 names are recovered by joaat search over FACS-style word combinations (`face_[l_|r_]<region>_<action>`). Examples: `face_jaw`, `face_mouth`, `face_l_lipcorner_puller`, `face_r_upperlip_raiser`, `face_tongueextension`. Every left/right name has its mirror among the ids, which checks each find. The other 11 show as hex. Four of these are 2-D controls the teeth and tongue rig reads; the other seven are read by no rig. - `sixng clips <dictionary>` now lists each clip's `facial_controls` by name. - Tests pin a few ids and check that every name has its mirror. **Garment pose correctives** - Each character also has a network stored under its ped model's name. For example, `player_story000_00` has 294 inputs and 4,675 surface points. It is a body surface that bends with the pose. - A garment's stream 8 names three surface points + 1 per vertex (tag 0xb210 / 0xb220; all zero where the vertex does not follow the surface). The vertex moves by their mean. Over a garment's own neighbouring vertices, the equal-weight mean gives the smoothest result: 0.07, against 0.10 for one point and 1.7 shuffled. The low halves do not work as weights. - Model and outfit exports now give these garments glTF morph targets `pose_000`…, which import into Blender as shape keys. The viewer's Expression panel lists them, at -1..1. - `pose_morphs` per geometry in the export report. **Not decoded, and why** - The head network's inputs (370–445 per head) are not the 91 clip controls. The map from controls to network inputs is the face engine setup. Its resource types appear in no table of contents of the install: all 23 archives were checked, plus the rig dictionaries, the compute schemes, the other compute graphs, the executable and the shaders. So the head shape keys keep index names, and facial clips cannot play on them. - What drives each pose input. The likely source is body pose rigs that read joint rotations, but the input order is unknown. - Teeth and tongue with facial clips. The lower teeth hang under the jaw bone, which no rig writes: the game poses it in code. The teeth and tongue rig also reads 14 float inputs that are in no file. With the clip's controls the rig leaves the teeth where they are, even on a jaw-open clip.
Facial clips drive 91 controls by joaat(name); 79 names recovered and
listed by sixng clips. Garments sample the character's pose network
(stored under the ped model name) through stream 8: exported as pose_*
morph targets, shown in the viewer's Expression panel.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 04:20:46 +00:00
github-bot changed target branch from master to gh-pr/453/base 2026-11-27 05:17:30 +00:00
github manually merged commit 683ea637df into gh-pr/453/base 2026-11-27 05:17:32 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.