Neural Cloth Simulation

Hugo Bertiche, Meysam Madadi, Sergio EscaleraACM Trans. Graphics 2022

Abstract

Traditional cloth simulation in computer graphics faces a persistent trade-off between physical accuracy, computational speed, and data requirements. This paper introduces the first unsupervised deep learning framework capable of learning realistic cloth dynamics—such as the sway of a skirt or the ripple of a shirt—without requiring any ground-truth simulation data. By disentangling static and dynamic cloth behaviors into separate neural subspaces, the proposed model achieves high-fidelity, real-time results that outperform previous unsupervised methods.

Introduction

Animating cloth is a classic "pick two" problem in computer graphics: one can typically achieve physical accuracy, real-time speed, or low manual effort, but rarely all three simultaneously. Traditional Physically Based Simulation (PBS) is highly accurate but computationally expensive, making it difficult to deploy in real-time applications like VR or gaming. Supervised Deep Learning offers high-speed inference but requires "ground truth" data—thousands of hours of expensive PBS runs to train the network.

Unsupervised Learning (such as the previous PBNS method) removes the data requirement by using physics-based loss functions. However, until now, these models were largely "static," capable of draping a garment on a still body but failing to handle the inertia and temporal "memory" of cloth in motion. This research addresses these limitations through a novel recurrent architecture that learns dynamics directly from physics-based energy functions.

Methodology

The authors propose a recurrent encoder-decoder architecture that treats cloth simulation as an unsupervised optimization problem. The core innovation lies in the disentanglement of cloth behavior into two distinct components:

1. Disentangled Descriptors

Instead of feeding the network raw joint data, the model uses "unposed" descriptors. For the Static Encoder, the system provides 6D joint orientations and a gravity vector relative to each joint. For the Dynamic Encoder, it provides time derivatives (velocity and acceleration) of those joints. By representing gravity in the local frame of each joint, the network becomes invariant to the character's global orientation, ensuring consistent cloth behavior regardless of the character's heading.

2. Two-Branch Architecture

  • Static Branch: Predicts how cloth hangs due to gravity.
  • Dynamic Branch: Utilizes a Gated Recurrent Unit (GRU) to capture the history of motion and predict inertial effects. Crucially, the dynamic layers have no bias terms, ensuring that if there is no motion, the dynamic output is exactly zero. This prevents the "ghost movement" often seen in recurrent networks.

3. Physics-Based Losses

Since there is no ground truth, the model is trained using energy functions:

  • Cloth/Bending Loss: Penalizes stretching and unrealistic folding.
  • Collision Loss: Pushes cloth vertices out of the body mesh to prevent penetration.
  • Inertia Loss: A temporal constraint that penalizes the difference between the predicted vertex position and its expected position based on previous velocity.

Datasets and Training

The researchers utilized motion data from Mixamo (approx. 45,000 poses including walking, jumping, and spinning) and AMASS (for comparisons with state-of-the-art methods like SNUG). It is important to note that while these datasets provide the poses, the model does not use any pre-computed cloth simulation data from them, maintaining its unsupervised nature.

Key Results and Insights

  • Visual Fidelity: Qualitatively, the model captures complex behaviors like a dress "coiling" around a character during a fast spin—a feat previous unsupervised models failed to achieve realistically.
  • Real-Time Performance: The model runs at 206 to 853 frames per second (fps) depending on the mesh complexity (10K to 250K degrees of freedom), significantly exceeding real-time requirements.
  • Latent Space Interpolation: Because the static and dynamic components are separate, artists can manually scale the dynamic latent code. This allows for "turning up" the inertia for dramatic cinematic effects or "turning it down" for a more rigid look without retraining the model.
  • Generalization: The disentangled approach showed superior generalization to unseen motions compared to "entangled" architectures, resulting in lower strain and fewer body collisions.

Limitations and Future Work

While the model handles cloth-to-body collisions effectively, it does not yet account for self-collision (e.g., layers of a skirt overlapping). Additionally, the model is currently specific to a particular garment and body pairing; changing the outfit or character proportions requires retraining. Future research directions include exploring "history-free" self-collision solvers and investigating hybrid training methods that use small amounts of sparse simulated data to accelerate convergence.

Conclusion

This neural cloth simulation framework represents a significant step forward in making high-quality garment animation accessible for real-time applications. By removing the data bottleneck and providing a controllable, physics-aware architecture, the authors provide a robust alternative to traditional simulation pipelines.

Summary updated

BibTeX
@article{bertiche2022neural,
  author = {Hugo Bertiche and Meysam Madadi and Sergio Escalera},
  title = {{Neural Cloth Simulation}},
  journal = {ACM Trans. Graphics},
  year = {2022},
}
Figure