Viewer: animation clips on animals, with the fur following #192

Manually merged
github merged 2 commits from gh-pr/192/head into gh-pr/192/base 2026-11-26 20:16:55 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 18:42 UTC · original
holdmysocks:claude/people-animal-clips → master · +283 −8 · 2 files · 2 commits · merged 2026-11-24 19:19 UTC

What changes

  • Animals get an Animation section in the model viewer, like characters: a list of the clip dictionaries of the animal's species (for a cat: walk, trot, run, idle, sit and so on), play / pause, a position slider and "in place". A dictionary alone plays its move or idle clip.
  • For clips to move an animal, its parts are now bound to its skeleton in the viewer: by bone name, since every part comes with its own joint list. Parts without bones (eyes, teeth, tongue) ride on the nearest bone.
  • The fur follows the body: each fur vertex takes the bone weights of the nearest skin vertex, and the fur models get the same joint matrices as the body each frame.
  • The clip's movement over the ground and the camera follow work for animals as for characters.
  • A clip without animation data in its dictionary now gives a clear message instead of an empty animation.

Numbers

  • 2,709 gameplay@creatures@... clip dictionaries. Of 39 sampled, 31 hold animation data that decodes; 8 list clips whose animation is stored elsewhere (the plain cat walk is one).
  • Cat, slow walk: 85 of 103 bone tracks land on a joint; 1.50 m over the clip's 5.33 s.

Checked

  • Workspace tests pass.
  • Rendered one cat at rest, at two points of its slow walk and sitting: the body, fur, eyes and mouth move together and the camera keeps it in frame.
  • sixng outfit <animal> --clip already exported animal clips with ground movement; re-checked on the cat (root travels 1.49 m; in place with --in-place).

Not covered

  • One animal only (a cat). Birds, fish and reptiles were not opened.
  • The fur's own bone weights are not decoded; nearest-skin binding can stretch long fur near joints.
  • The 8 of 39 dictionaries without local animation data are not decoded.
  • Playback was checked from stills at set positions, not watched live.
  • Three debug prints are added behind an environment variable.
**@⁠holdmysocks** on GitHub · 2026-11-24 18:42 UTC · [original](https://github.com/holdmysocks/SixNG/pull/192) `holdmysocks:claude/people-animal-clips` → `master` · +283 −8 · 2 files · 2 commits · merged 2026-11-24 19:19 UTC ## What changes - Animals get an **Animation** section in the model viewer, like characters: a list of the clip dictionaries of the animal's species (for a cat: walk, trot, run, idle, sit and so on), play / pause, a position slider and "in place". A dictionary alone plays its `move` or `idle` clip. - For clips to move an animal, its parts are now bound to its skeleton in the viewer: by bone name, since every part comes with its own joint list. Parts without bones (eyes, teeth, tongue) ride on the nearest bone. - The fur follows the body: each fur vertex takes the bone weights of the nearest skin vertex, and the fur models get the same joint matrices as the body each frame. - The clip's movement over the ground and the camera follow work for animals as for characters. - A clip without animation data in its dictionary now gives a clear message instead of an empty animation. ## Numbers - 2,709 `gameplay@creatures@...` clip dictionaries. Of 39 sampled, 31 hold animation data that decodes; 8 list clips whose animation is stored elsewhere (the plain cat walk is one). - Cat, slow walk: 85 of 103 bone tracks land on a joint; 1.50 m over the clip's 5.33 s. ## Checked - Workspace tests pass. - Rendered one cat at rest, at two points of its slow walk and sitting: the body, fur, eyes and mouth move together and the camera keeps it in frame. - `sixng outfit <animal> --clip` already exported animal clips with ground movement; re-checked on the cat (root travels 1.49 m; in place with `--in-place`). ## Not covered - One animal only (a cat). Birds, fish and reptiles were not opened. - The fur's own bone weights are not decoded; nearest-skin binding can stretch long fur near joints. - The 8 of 39 dictionaries without local animation data are not decoded. - Playback was checked from stills at set positions, not watched live. - Three debug prints are added behind an environment variable.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:16:54 +00:00
github manually merged commit 9c4e2f3100 into gh-pr/192/base 2026-11-26 20:16:55 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.