Viewer: teeth and tongue open with the jaw shape keys (#392) #481

Manually merged
github merged 1 commit from github-bot/gh-481 into gh-pr/481/base 2026-11-27 17:51:48 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 17:42 UTC · original
holdmysocks:viewer-jaw-392 → master · +117 −31 · 3 files · 1 commits · merged 2026-11-27 17:50 UTC

Follow-up to #479: the viewer's teeth now open with the jaw too.

Problem
#479 gave exported outfits teeth and tongue shape keys that follow the head's jaw keys. The viewer builds characters itself, so its Expression panel still moved only the head: at full jaw open, the lower teeth stayed shut against the upper teeth.

What this does

  • After the viewer rigs a character, it fits the head's jaw keys the same way the export does: on the bony chin, as a turn about FB_Jaw, or as a shift when no turn fits.
  • The vertices under FB_Jaw get shape keys with the same names: the lower teeth, the tongue and the head's inner mouth. The Expression sliders then move them together with the head.
  • The model's notes say how many keys were given.
  • jawkeys gains fit_keys and add_keys, and the export and the viewer both use them. The export output is unchanged: a re-export of player_story000_00 is byte-identical to the one #479 made.

Checked

  • In the viewer (RTX 4080) on player_story000_00 at face_039 = 1, seen from the front: the lower teeth and tongue sit low in the open mouth, behind the lower lip.
  • The jaw unit tests pass.
**@⁠holdmysocks** on GitHub · 2026-11-27 17:42 UTC · [original](https://github.com/holdmysocks/SixNG/pull/481) `holdmysocks:viewer-jaw-392` → `master` · +117 −31 · 3 files · 1 commits · merged 2026-11-27 17:50 UTC Follow-up to #479: the viewer's teeth now open with the jaw too. **Problem** #479 gave exported outfits teeth and tongue shape keys that follow the head's jaw keys. The viewer builds characters itself, so its Expression panel still moved only the head: at full jaw open, the lower teeth stayed shut against the upper teeth. **What this does** - After the viewer rigs a character, it fits the head's jaw keys the same way the export does: on the bony chin, as a turn about `FB_Jaw`, or as a shift when no turn fits. - The vertices under `FB_Jaw` get shape keys with the same names: the lower teeth, the tongue and the head's inner mouth. The Expression sliders then move them together with the head. - The model's notes say how many keys were given. - `jawkeys` gains `fit_keys` and `add_keys`, and the export and the viewer both use them. The export output is unchanged: a re-export of player_story000_00 is byte-identical to the one #479 made. **Checked** - In the viewer (RTX 4080) on player_story000_00 at `face_039` = 1, seen from the front: the lower teeth and tongue sit low in the open mouth, behind the lower lip. - The jaw unit tests pass.
The Expression panel moved only the head, so a jaw-open key left the
lower teeth shut. After rigging a character, the viewer fits the head's
jaw keys as the export does and gives the vertices under FB_Jaw keys of
the same name. jawkeys gains fit_keys and add_keys for both callers; the
export's output is unchanged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 17:43:51 +00:00
github-bot changed target branch from master to gh-pr/481/base 2026-11-27 17:51:47 +00:00
github manually merged commit c3f3325623 into gh-pr/481/base 2026-11-27 17:51:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.