People: play the game's animation clips on characters #90

Manually merged
github merged 1 commit from gh-pr/90/head into gh-pr/90/base 2026-11-26 20:09:06 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 23:00 UTC · original
holdmysocks:claude/people-anim → master · +145 −3 · 3 files · 1 commits · merged 2026-11-23 23:06 UTC

Follow-up to #88.

What this does

  • Animation on characters. The Character panel gets an Animation section: a clip of anim.rpf, written <dictionary>/<clip>, is mapped to the character's skeleton with outfit::clip_channels (bone tracks by name hash; values converted from Z-up as the GLB export does) and played through the existing clip path of joint_mats. Play / pause, a position slider, and a Walk button that loads a walk clip for the body type. Loading runs on a worker thread; a screenshot waits for it.
  • --anim <dictionary>/<clip> [--anim-pos 0..1] holds a clip at a position for screenshots.
  • --pose-head nod,turn,tilt and --pose-spine bend,twist,lean add head and spine angles to a pose preset.

Verified

  • Rendered on the integrated GPU: the male walk clip on player_story000_01 mid-stride; the female and the male walk clip on cs_isabella from the side at position 0.3; clothes, shoes and hair follow.
  • Rig checks left open in #88: head nod and turn (hair follows), spine bend on a character with jacket, beard and hat, and one car (door open, steered) and one aircraft render normally.
  • After rebasing on #89 the female walk frame is pixel-identical to before the rebase.
  • cargo test --workspace: 144 core and 12 viewer tests pass.

Not verified / known limits

  • Only held frames were rendered. Live playback in the window (the play button, timing, looping) was not watched.
  • The clip plays in place: the mover track is left out. Float tracks (facial and other controls) are not applied.
  • The female walk dictionary holds three animations (move, turn_l1, turn_r1); the frame at 0.3 of move shows a very long stride with one arm stretched forward, and frames at 0, 0.25, 0.5 and 0.75 all look like a standing phase. Whether move is a plain walk cycle or a blend was not checked.
  • macOS Metal renderer not run.

Files

crates/sixng-gui/src/model_view.rs (character code; one block in joint_mats), main.rs (flags), README.md. No shader or core changes.

**@⁠holdmysocks** on GitHub · 2026-11-23 23:00 UTC · [original](https://github.com/holdmysocks/SixNG/pull/90) `holdmysocks:claude/people-anim` → `master` · +145 −3 · 3 files · 1 commits · merged 2026-11-23 23:06 UTC Follow-up to #88. ## What this does - **Animation on characters.** The Character panel gets an Animation section: a clip of `anim.rpf`, written `<dictionary>/<clip>`, is mapped to the character's skeleton with `outfit::clip_channels` (bone tracks by name hash; values converted from Z-up as the GLB export does) and played through the existing clip path of `joint_mats`. Play / pause, a position slider, and a **Walk** button that loads a walk clip for the body type. Loading runs on a worker thread; a screenshot waits for it. - `--anim <dictionary>/<clip> [--anim-pos 0..1]` holds a clip at a position for screenshots. - `--pose-head nod,turn,tilt` and `--pose-spine bend,twist,lean` add head and spine angles to a pose preset. ## Verified - Rendered on the integrated GPU: the male walk clip on `player_story000_01` mid-stride; the female and the male walk clip on `cs_isabella` from the side at position 0.3; clothes, shoes and hair follow. - Rig checks left open in #88: head nod and turn (hair follows), spine bend on a character with jacket, beard and hat, and one car (door open, steered) and one aircraft render normally. - After rebasing on #89 the female walk frame is pixel-identical to before the rebase. - `cargo test --workspace`: 144 core and 12 viewer tests pass. ## Not verified / known limits - Only held frames were rendered. Live playback in the window (the play button, timing, looping) was not watched. - The clip plays in place: the mover track is left out. Float tracks (facial and other controls) are not applied. - The female walk dictionary holds three animations (move, turn_l1, turn_r1); the frame at 0.3 of `move` shows a very long stride with one arm stretched forward, and frames at 0, 0.25, 0.5 and 0.75 all look like a standing phase. Whether `move` is a plain walk cycle or a blend was not checked. - macOS Metal renderer not run. ## Files `crates/sixng-gui/src/model_view.rs` (character code; one block in `joint_mats`), `main.rs` (flags), `README.md`. No shader or core changes.
The Character panel has an Animation section: a clip of anim.rpf
(<dictionary>/<clip>) is mapped to the character's skeleton by bone name
hash and played in place, with play / pause, a position slider and a Walk
button; --anim and --anim-pos hold a clip at a position for screenshots.
--pose-head and --pose-spine add head and spine angles to a pose preset.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:09:05 +00:00
github manually merged commit 1eb674133f into gh-pr/90/base 2026-11-26 20:09:06 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.