Command Palette

Search for a command to run...

Назад к скиллам
скилл № 71708

animation-systems

Use when the user asks about a game animation system, skeletal animation, skinning, animation state machines, blend trees, root motion, IK, retargeting or…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить animation-systems в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Animation Systems — Deep Engineering Guide

Purpose

Animation makes characters feel alive. This skill covers the skeleton/skinning pipeline, animation state machines and blending, root motion, IK, retargeting and the performance budgets that keep hundreds of characters animating on 16 ms budgets.

Agent Protocol

Trigger

"animation system", "skeletal animation", "skinning", "animation state machine", "blend tree", "root motion", "IK", "retargeting", "animation compression".

Input Context

  • Engine (custom C++, Unity, Unreal, Godot) and target platforms
  • Character count and per-frame animation budget
  • Networked or single-player (determinism needs)

Output Artifact

Animation architecture, code for the hot path, and a budget table. No file unless requested.

Response Format

Engine: {engine}
Pipeline: {sample -> blend -> IK -> skin}
Budget: {N characters x bones, ms per frame}
Code: {snippet}
Risks: {pop, foot sliding, cost}

1. The Animation Pipeline

AnimClip (per-bone keyframes)
  → AnimInstance (time, pose)
  → blending (state machine, layers)
  → skeleton-relative posed bones
  → skinning (GPU: vertex skin via bone matrices)
  → render

The hot path is per-bone matrix generation + skinning — the two budget walls for crowds (see §8).

2. Skeleton & Bone Hierarchy

struct Bone { int parent; Mat4 bindPoseInv; /* inverse bind */ const char* name; };
struct Skeleton { vector<Bone> bones; /* sorted so parent < child */ };
  • Bones store inverse bind pose (bindPoseInv): skinning needs model→bone in the bind pose (constant per skeleton).
  • Precompute per-bone bindPoseInv * worldParent can vectorize.
  • Bone order: sorted parents-first so the loop is sequential (cache-friendly; see job/memory skills).

3. The Animation Clip & Compressed Storage

Representation Size/frame Quality
Raw float T/R/S (12 + 16 + 12 bytes) 40 B/bone/key exact
Quantized (smallest-three quats, 16-bit T, constant tracks stripped) ~6-12 B/bone/key visually lossless with error metrics
Keyframe-Lerp (only on change) keys compressed tuned
  • Store local pose (per-bone, parent-relative) — the evaluator blends local, then multiplies down the chain once.
  • Interleave: a clip = array of bone channels; load once to cache.
  • Constant/linear track reduction: bones that do not move (fingers in a run cycle, most scale tracks) collapse to one key; keys reconstructible by interpolation within error tolerance are removed.
  • Off-the-shelf: ACL (Animation Compression Library; integrated into Unreal as a plugin) with per-bone error thresholds measured in object space at the skin, not raw quaternion error.
  • Deterministic: same clip + same t → same pose (see compression ref).

4. Blending & The State Machine

4.1 The AnimStateMachine (ASM)

states: Idle, Walk, Run, Jump, Attack_A...
transitions: {from, to, triggers, blendTime, condition}
  • Blend parameters (e.g., MoveSpeed → Walk/Run weight) or trigger transitions (Attack).
  • Blend atomic poses, not clips: a "Walk" state is a pose (after clips/layers), blended toward Run via lerp(pose) or quat nlerp.
  • Transition evaluator: blend w ramps 0→1 over blendTime (frame-rate independent — state.time/transition.duration).

4.2 Layer Mixing (Upper Body)

base layer:  whole-body locomotion
masked layer: upper-body (aim, pickup, minor)
combine: mix per-bone by mask weights (blend-by-mask)

The mask = per-bone weights (torso 1.0, hips 0.2...) — cache offsets.

5. Root Motion & Movement

  • Root bone = the actor transform. Root motion = the clip's translation/rotation on the root:
    • extracted, applied to the actor position, or
    • ignored (locomotion only; velocity comes from the controller).
  • Extract per frame as a delta (translation + yaw) from the sampled root track, so variable frame rates integrate correctly.
  • Blend root motion through the same blend weights (else foot-slide).

6. IK (Inverse Kinematics)

IK use Method Cost
Foot placement 2-bone (leg) analytic cheap
Head/hand target 2-bone + reach cheap
Full-body align (grippers) CCD/FABRIK heavier
  • Solve after the ASM, on a few bones; keep the rest from ASM.
  • Foot IK: sample ground height under the ankle, rotate the leg→IK chain, blend 0–50%.
  • Never run full-body IK per character when not needed (only interacting/grounded-anim).

7. Retargeting (One Skeleton, Many Rigs)

  • The state machine + clips authored on a reference skeleton; each character maps bones by semantic name (hips, spine_01...).
  • Inverse retarget (author once, apply to all): a mapper table {referenceBone → actorBone, weight} + scale handling.
  • Root/bone lengths differ: retarget applies local pose, not world (keep proportions in the rigs).

8. Performance Budgeting (The Crowd Wall)

Per-character cost budget (sk

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/animation-blending.md
  • references/clip-compression.md
  • references/performance-budgeting.md
  • references/retargeting.md
  • references/root-motion-and-ik.md
  • references/skeleton-and-skinning.md

FAQ

Что делает скилл animation-systems?

Use when the user asks about a game animation system, skeletal animation, skinning, animation state machines, blend trees, root motion, IK, retargeting or animation compression. Produces runtime animation architecture with CPU budgets. Not for UI motion design (use design-motion-design) or ragdoll physics (use physics-engine).

Как установить скилл animation-systems?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл animation-systems запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить animation-systems с