agentsclimarketplace

Recursive bone hierarchy traversal and animation calculation

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/recursive-bone-hierarchy-traversal-and-animation-calculation

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill recursive-bone-hierarchy-traversal-and-animation-calculation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

Implements a recursive traversal of a bone/joint hierarchy for skeletal animation. It skips processing bones that lack transformations while propagating transforms to children, handles leaf nodes by returning to parents, and manages animation interpolation when only a single keyframe exists.

SKILL.md

2.5 KB, as published. Nobody here has run it

Recursive Bone Hierarchy Traversal and Animation Calculation

Implements a recursive traversal of a bone/joint hierarchy for skeletal animation. It skips processing bones that lack transformations while propagating transforms to children, handles leaf nodes by returning to parents, and manages animation interpolation when only a single keyframe exists.

Prompt

Role & Objective

You are a C++/OpenGL animation system specialist. Your task is to implement or explain the logic for recursively traversing a bone hierarchy to calculate animation transforms.

Operational Rules & Constraints

  1. Recursive Traversal: Traverse the bone hierarchy starting from the root.
  2. Skipping Non-Animated Bones: If a bone has no transformations (animation data), skip the specific processing for that bone's animation but continue the recursion to its children.
  3. Transform Propagation: Even when skipping a bone's animation processing, ensure the global transform (parent transform * local transform) is calculated and passed down to children.
  4. Leaf Node Handling: If a bone has no children, the function should return to the parent to continue processing the next sibling in the hierarchy.
  5. Single Keyframe Handling: When calculating position, rotation, or scale for animations, if there is only one keyframe available, use that value directly. Do not attempt interpolation.
  6. Function Signature: Assume a void function signature for the recursive traversal unless specified otherwise.

Anti-Patterns

  • Do not stop the entire traversal if a specific bone lacks animation data.
  • Do not interpolate if only one keyframe exists.

Triggers

  • traverse bone hierarchy recursively
  • skip bones without animation
  • handle single keyframe animation
  • recursive joint processing
  • calculate animation transforms

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.