Quaffure: Real-Time Quasi-Static Neural Hair Simulation

Tuur Stuyck, Gene Wei-Chin Lin, Egor Larionov, Hsiao-Yu Chen, Aljaz Bozic, Nikolaos Sarafianos, Doug Roble

Abstract

Simulating the complex interactions of hundreds of thousands of hair strands in real-time is a significant challenge in computer graphics. Quaffure introduces a novel neural simulator that predicts physically plausible hair "drape" (quasi-statics) in milliseconds. By employing a self-supervised, physics-based loss function, Quaffure bypasses the need for expensive pre-simulated training data while maintaining high generalization across diverse hairstyles, body shapes, and poses.

Introduction

The simulation of human hair is often considered a "final boss" in computer graphics due to the sheer number of strands and the complexity of their mutual interactions and collisions with the body. Traditional physics-based methods, such as mass-spring systems or Cosserat rods, are too computationally intensive for real-time applications like virtual reality or gaming, often requiring minutes to simulate a single second of motion. While data-driven approaches offer speed, they typically require massive datasets of ground-truth simulations, creating a computational bottleneck. Quaffure addresses these issues by providing a fast, robust, and easy-to-train solution that generalizes across characters.

Methodology

Quaffure utilizes a hybrid approach combining geometric transformations with a neural "corrector." Hair is represented as a high-dimensional 2D texture map, where each pixel corresponds to a strand's root on the scalp and stores 3D vertex coordinates. This representation allows the model to leverage efficient 2D convolutional neural networks (CNNs).

Detailed view of simulated long hair drape showing strand-level detail and natural fall.

The architecture consists of a Groom Autoencoder that learns a latent "Groom Code" for various hairstyles and a Deformation Decoder. The decoder takes the hairstyle code, body shape parameters, and pose to predict a deformation field that corrects hair from a rigid state to a natural, physically plausible drape.

A key innovation is the self-supervised physics loss. Instead of supervised learning against ground-truth simulations, the network minimizes a physics-based energy function during training. This function incorporates a modified Cosserat potential for curl and length preservation, vertex-triangle loss for collision handling, and SPH (Smoothed Particle Hydrodynamics) density loss to prevent strand collapse.

Key Insights

  • Physics as a Loss Function: By embedding physics directly into the loss, the network learns to solve complex physical states in a single forward pass without needing external simulation data.
  • Rigid + Non-Rigid Split: The model first performs a simple rigid transformation (moving hair with the head) and then uses the neural network to handle complex non-rigid draping, significantly simplifying the learning task.
  • Constant Inference Time: As a CNN-based model, Quaffure's performance is independent of hair length or collision complexity, providing a predictable budget for real-time engines.

Key Results

Quaffure achieves remarkable performance, predicting a groom in approximately 2.86 milliseconds on an NVIDIA RTX A6000. It can scale to predict the drape of 1,000 different grooms in just 0.3 seconds.

Quaffure demonstrates robust generalization across a vast array of hairstyles and character poses.

The model generalizes effectively to unseen body shapes and maintains hairstyle identity—such as keeping curls curly—even in extreme poses. Compared to previous state-of-the-art methods like GroomGen, Quaffure exhibits significantly fewer intersections with the body and better preserves original strand lengths.

Limitations and Future Work

Currently, Quaffure is limited to quasi-static states (the "settled" position) and does not handle secondary dynamics like swinging or bouncing during movement. Future work aims to address these dynamic effects and provide real-time control over material properties, such as stiffness and friction, via additional input parameters at inference time.

Summary updated

BibTeX
@inproceedings{stuyck2025quaffure,
  author = {Tuur Stuyck and Gene Wei-Chin Lin and Egor Larionov and Hsiao-Yu Chen and Aljaz Bozic and Nikolaos Sarafianos and Doug Roble},
  title = {{Quaffure: Real-Time Quasi-Static Neural Hair Simulation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00031},
}
Figure