How to Train Your Dragon: Automatic Diffusion-Based Rigging for Characters with Diverse Topologies

Zeqi Gu, Difan Liu, Timothy Langlois, Matthew Fisher, Abe Davis · DOI

Abstract

AniDiffusion is a novel diffusion-based framework designed to automate character rigging for arbitrary 2D shapes. By employing a coordinate-based skeleton representation and training on a large-scale procedurally generated synthetic dataset, AniDiffusion enables high-quality animation of characters with diverse topologies—ranging from animals to mechanical objects—after minimal character-specific fine-tuning. This approach bridges the "topology gap" in current animation models, which are largely restricted to human-centric skeletal structures.

Overview of the AniDiffusion pipeline, showing rig creation and animation generation for a fox, alongside examples of diverse topologies like pinwheels and dragons.

Introduction

In traditional animation, "rigging" is a labor-intensive manual process where artists define a digital skeleton and determine how its movement affects the character's surface. While recent AI advancements have simplified human animation, these models typically rely on fixed skeletal templates (e.g., OpenPose), making them unusable for non-humanoid characters like dragons, insects, or abstract objects. AniDiffusion addresses this limitation by providing a topology-agnostic solution that brings the power of diffusion models to any 2D shape.

Methods

AniDiffusion operates through a two-stage process designed for both general motion understanding and character-specific precision:

  1. Large-Scale Synthetic Pre-training: The model is first trained on a procedural pipeline that generates random tree-like topologies wrapped in arbitrary Bezier-curve shapes. These shapes are skinned with diverse textures from datasets like LAION and COCO, forcing the model to learn the fundamental relationship between skeletal movement and surface deformation across infinite variations.
  2. Rapid Character-Specific Fine-tuning: To animate a specific character, a user provides 3–5 example frames with annotated keypoints. The model then undergoes approximately 25 minutes of fine-tuning on a single GPU to master the unique skinning behavior and texture of that specific subject.

RGB-Encoded Skeleton Representation

A key innovation of AniDiffusion is its RGB-encoded skeleton. Unlike standard models that use simple lines, this representation uses the Red and Green channels to encode $(x, y)$ coordinates relative to a "rest pose," pinpointing exactly where a piece of texture originates. The Blue channel encodes layer ordering (depth), allowing the model to handle complex occlusions, such as a wing passing in front of a body, without visual artifacts.

Key Insights and Ideas

  • Implicit Physics: The model implicitly learns to emulate classical rigging algorithms, such as As-Rigid-As-Possible or Bounded Biharmonic Weights, simply by observing examples rather than relying on explicit mathematical constraints.
  • Topology Agnosticism: By utilizing coordinate mapping instead of semantic labels (like "left arm"), the model treats all joints equally. This allows it to generalize to any structure, whether it is a human, a dragon, or a mechanical toy.
  • Synthetic Data Efficacy: The research demonstrates that training on abstract, procedurally generated "blobs" is sufficient for the model to generalize to complex, artistic characters in the real world.
AniDiffusion demonstrates its versatility by successfully rigging and animating characters with diverse topologies, including a multi-part pinwheel and a complex dragon.

Results

AniDiffusion significantly outperforms existing state-of-the-art pose-conditioned models like Animate Anyone and MagicDance when applied to non-humanoid subjects. Quantitatively, it achieved a Mean Squared Error (MSE) of 8.61, a marked improvement over Animate Anyone (12.44). Qualitatively, the model maintains superior character identity and texture consistency during extreme poses and handles overlapping parts where other models often produce "melting" artifacts.

Limitations and Future Work

Currently, AniDiffusion is limited to 2D animation and cannot hallucinate unseen perspectives (e.g., a character turning around). It also performs best on static backgrounds. Future research aims to improve temporal consistency to reduce frame flickering and integrate additional control signals, such as text prompts or interactive "drag-based" manipulation, to further empower creators.

Summary updated

BibTeX
@article{gu2025how,
  author = {Zeqi Gu and Difan Liu and Timothy Langlois and Matthew Fisher and Abe Davis},
  title = {{How to Train Your Dragon: Automatic Diffusion-Based Rigging for Characters with Diverse Topologies}},
  journal = {Computer Graphics Forum},
  year = {2025},
  url = {https://openreview.net/forum?id=Z0BvO8UBwm},
}
Figure