PhysAnimator: Physics-Guided Generative Cartoon Animation

Tianyi Xie, Yiwei Zhao, Ying Jiang, Chenfanfu Jiang

PhysAnimator is a novel framework that transforms static anime illustrations into high-quality, physically plausible animations by combining 2D deformable body simulations with video diffusion models. By using physics to guide the motion of sketches and AI to "re-render" the final frames, it achieves a level of temporal consistency and artistic control that purely data-driven methods often lack.

Addressing the Animation Bottleneck

Creating hand-drawn 2D animation is notoriously labor-intensive, requiring professional expertise to ensure characters move with both fluidity and "physical logic." Existing AI-based solutions generally fall into two camps:

  1. Traditional Physics-based Tools: These often require manual layering or simplified line-art inputs, making them difficult to apply to complex, "in-the-wild" anime illustrations.
  2. Data-driven Generative Models (Video Diffusion): While these can generate motion from a single image, they often lack a "geometric soul." Without physical constraints, hair might clip through bodies, or textures might "swim" and distort unnaturally—artifacts often called "black holes" or "pixel fizzing."

PhysAnimator bridges this gap by providing the physical consistency of a simulator with the creative, texture-rich generation of a diffusion model.

The PhysAnimator Pipeline

The framework consists of four main stages designed to maintain structural integrity while allowing for artistic expression:

  1. Geometry Registration: The system uses the Segment Anything Model (SAM) to isolate objects of interest (like a character's hair or a flag). It then generates a 2D triangulated mesh over these segments, creating a geometric foundation for motion.
  2. Deformable Body Simulation: Instead of guessing motion, the system runs a real physics simulation on the mesh using a Fixed Corotated constitutive model. This allows for "squash and stretch" effects characteristic of anime. Users can interactively guide this by drawing "energy strokes" (to simulate wind) or setting "rigging points" (to anchor parts of the mesh).
  3. Texture-Agnostic Dynamics: To avoid the distortion artifacts common in direct image warping, the authors extract a sketch from the original image. They warp this sketch using the optical flow derived from the physics simulation.
  4. Sketch-Guided Rendering: The warped sketches are fed into a Stable Video Diffusion model equipped with a ControlNet. The AI uses the sketch as a structural guide to synthesize high-quality, colorized frames that match the original illustration's style.
  5. Complementary Dynamics: Finally, a cartoon interpolation model (ToonCrafter) adds subtle, expressive details that physics simulations might miss, such as the specific "flicker" or secondary motions unique to hand-drawn styles.
PhysAnimator uses interactive 'Rig' and 'Force' inputs to guide physics-based simulations, which then drive a sketch-guided diffusion model to produce temporally consistent animation.

Key Insights: Physics as a Prior

A major "aha moment" in this research is the decision to warp sketches instead of pixels. Directly warping an image creates holes and stretches. By warping a sketch and using it as a diffusion prompt, the model can "hallucinate" the missing textures and occlusions realistically, maintaining a clean look.

Furthermore, the authors recognize that anime often breaks the laws of physics for dramatic effect. By combining a rigid physics simulator with a data-driven interpolation model, they get the best of both worlds: the structural integrity of gravity and inertia alongside the "exaggeration" of traditional animation. Unlike many "black box" AI video generators, PhysAnimator allows for specific artistic intent via energy strokes, giving animators a tool rather than just a "generate" button.

Data and Training

The authors utilized the Sakuga-42M Dataset, a massive collection of 1.4 million animation clips. They filtered this down to a high-quality subset of 380,000 pairs of sketches and corresponding video sequences to train their sketch-guided diffusion components. Clips were selected based on having at least 24 frames and specific "dynamics scores" to ensure the training data featured meaningful motion.

Evaluation and Results

PhysAnimator was compared against state-of-the-art baselines like Cinemo, DragAnything, and DynamiCrafter.

  • Quantitative Performance: In a user study, PhysAnimator was preferred over baselines in terms of visual quality (VQ), temporal consistency (TC), and motion plausibility (MP), often by margins exceeding 80-90%.
  • VideoScore: It achieved higher scores in factual consistency (matching the input image) and temporal stability compared to purely motion-controlled models.
  • Qualitative Quality: The results show significantly less "identity melting" (where a character's face or clothes change mid-animation) compared to other generative methods.

Limitations and Future Outlook

Despite its strengths, the system relies on 2D mesh deformation and thus struggles with complex 3D rotations (e.g., a character turning their head 180 degrees). Additionally, the quality of the animation is heavily dependent on the initial SAM segmentation. Future work could involve integrating 3D-aware priors to handle more complex character movements while maintaining the 2D "flat" aesthetic of anime.

Summary updated

BibTeX
@inproceedings{xie2025physanimator,
  author = {Tianyi Xie and Yiwei Zhao and Ying Jiang and Chenfanfu Jiang},
  title = {{PhysAnimator: Physics-Guided Generative Cartoon Animation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01008},
}
Figure