Outfit export: clips carry their movement over the ground #166

Manually merged
github merged 1 commit from gh-pr/166/head into gh-pr/166/base 2026-11-26 20:14:46 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 15:01 UTC · original
holdmysocks:claude/people-clip-export → master · +130 −7 · 3 files · 1 commits · merged 2026-11-24 16:16 UTC

Follow-up to #150: exported animations no longer play in place.

What changes

  • sixng outfit <name> --clip <dictionary>/<clip> writes the clip's own movement over the ground (its mover tracks) on the root joint's translation and rotation. A walk now travels in Blender as it does in the viewer.
  • The root's own keys, where the clip has them, are moved and turned by the mover at every key time; otherwise its rest pose is.
  • New flag --in-place leaves the movement out (the old behaviour).
  • The JSON report has ground_movement per clip: whether it was applied, the distance in metres and the turn in degrees.

Checked

  • Workspace tests pass, with a new test of the root keys.
  • Exported the female walk clip (skeleton only) and ran forward kinematics on the file: 6.65 m over the clip, and each planted foot stays at one ground position while it is down (the same positions as the viewer check in #150). With --in-place the feet stay within 0.2 m of the origin as before.

Not covered

  • The exported file was not run through the Khronos validator or opened in Blender after this change.
  • Only one clip of one dictionary was exported. A turn clip was not exported.
**@⁠holdmysocks** on GitHub · 2026-11-24 15:01 UTC · [original](https://github.com/holdmysocks/SixNG/pull/166) `holdmysocks:claude/people-clip-export` → `master` · +130 −7 · 3 files · 1 commits · merged 2026-11-24 16:16 UTC Follow-up to #150: exported animations no longer play in place. ## What changes - `sixng outfit <name> --clip <dictionary>/<clip>` writes the clip's own movement over the ground (its mover tracks) on the root joint's translation and rotation. A walk now travels in Blender as it does in the viewer. - The root's own keys, where the clip has them, are moved and turned by the mover at every key time; otherwise its rest pose is. - New flag `--in-place` leaves the movement out (the old behaviour). - The JSON report has `ground_movement` per clip: whether it was applied, the distance in metres and the turn in degrees. ## Checked - Workspace tests pass, with a new test of the root keys. - Exported the female walk clip (skeleton only) and ran forward kinematics on the file: 6.65 m over the clip, and each planted foot stays at one ground position while it is down (the same positions as the viewer check in #150). With `--in-place` the feet stay within 0.2 m of the origin as before. ## Not covered - The exported file was not run through the Khronos validator or opened in Blender after this change. - Only one clip of one dictionary was exported. A turn clip was not exported.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:14:44 +00:00
github manually merged commit 0c95172ac9 into gh-pr/166/base 2026-11-26 20:14:46 +00:00
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-24 15:10 UTC · original

Further checks on the exported walk clip (skeleton-only file):

  • Blender 5.3, headless import: one armature, one action, 89 frames. The root travels from 0 to 6.60 m along +Y over the action and the left foot goes with it.
  • Structure of the animation in the file: 142 channels, no two on the same target, every time accessor ascending with min and max, every rotation key of unit length, no non-finite value.

Not done: the Khronos validator is not installed on this machine, so it was not run.

**@⁠holdmysocks** on GitHub · 2026-11-24 15:10 UTC · [original](https://github.com/holdmysocks/SixNG/pull/166#issuecomment-7135586021) Further checks on the exported walk clip (skeleton-only file): - Blender 5.3, headless import: one armature, one action, 89 frames. The root travels from 0 to 6.60 m along +Y over the action and the left foot goes with it. - Structure of the animation in the file: 142 channels, no two on the same target, every time accessor ascending with min and max, every rotation key of unit length, no non-finite value. Not done: the Khronos validator is not installed on this machine, so it was not run.
This discussion has been locked. Commenting is limited to contributors.
No description provided.