Fast GPU-based Two-way Continuous Collision Handling

Tianyu Wang, Jiong Chen, Dongping Li, Xiaowei Liu, Huamin Wang, Kun Zhou

TL;DR

This paper introduces a novel "two-way" continuous collision handling method for physically-based animation that significantly improves robustness and efficiency, especially for large deformations and time steps. By iteratively optimizing from both the current state and the target state, their GPU-accelerated approach ensures physically plausible and intersection-free simulations with reduced computational cost compared to existing methods.

What Problem Does This Paper Address?

Simulating deformable objects in computer graphics often involves ensuring that these objects don't penetrate each other, which is crucial for realism. A common approach is the "step-and-project" method: first, simulate the object's movement over a small time step, and then "project" it back into a non-penetrating state. While this balances plausibility and efficiency, existing methods struggle with large time steps or significant deformations. They can become unstable, require excessive computation for collision detection and resolution, or produce undesirable artifacts like "tunneling" (where objects pass through each other) or excessive stretching. This paper aims to address these limitations by developing a more robust and efficient continuous collision handling technique.

Methods

The core innovation is a "two-way" collision handling approach that operates iteratively. Instead of just projecting a predicted state back into a valid configuration, their method works from both ends:

  • Backward Step: This step aims to inexactly project the target state (the state after a time step, potentially with collisions) back towards a feasible, collision-free region. It formulates this as an optimization problem, using volume-based contact constraints and an "inexact" optimization process to keep costs down. A key aspect is linearizing contact constraints around the current state, not the target state, to avoid stagnation and ensure progress.
  • Forward Step: This step takes the current state and advances it towards the target state found in the backward step. Crucially, it uses a "lightweight" method to calculate safe step sizes for each vertex, avoiding expensive continuous collision detection (CCD) tests. This is achieved by evaluating discrete distances between potential collision pairs.

These two steps are interleaved until a convergence criterion is met, generating a piecewise-linear path that is guaranteed to be collision-free. The entire process is designed for GPU acceleration.

Datasets

Not discussed in the paper. The paper focuses on developing a simulation method and demonstrates its capabilities on various synthetic examples (knotting, cloth, hair, sand, falling objects, etc.) rather than using pre-existing datasets for training or evaluation.

Key Insights and Ideas

  • Two-Way Optimization: The most significant insight is the "two-way" approach. By simultaneously working from the current state and the target state, the method gains robustness and avoids the pitfalls of single-direction projections, especially when dealing with large displacements.
  • Volume-Based Constraints: Using volume enforcement for contact constraints (e.g., ensuring the volume of a tetrahedron formed by a vertex and a triangle remains consistent) provides a more physically intuitive and robust way to prevent self-intersections compared to simpler gap constraints. This also helps avoid locking artifacts.
  • Linearizing Around Current State: Linearizing contact constraints around the current state (rather than the predicted target state) in the backward step is crucial for preventing simulation stagnation and ensuring progress towards a valid solution.
  • CCD-Free Step Size Calculation: Replacing computationally expensive CCD tests with fast, discrete distance evaluations for determining safe step sizes in the forward step is a major performance win, making the method significantly faster and more robust to floating-point errors.
  • Piecewise-Linear Path: Generating a piecewise-linear path, rather than strictly linear, allows for more flexibility in navigating complex collision scenarios and avoiding the limitations of linear path assumptions.

Key Results

  • Robustness to Large Time Steps: The method demonstrates the ability to handle large time steps (e.g., $\Delta t = 1/10s$) without significant visual artifacts or simulation failures, a common issue for existing methods.
  • Efficiency: The GPU-based implementation achieves significant speedups. For example, the CCD-free step size calculation is 5-7 times faster than CCD-based schemes. The overall method is shown to be faster than existing impact zone methods like ARCSim and CAMA, especially in challenging scenarios.
  • Versatility: The volume-based constraints allow the method to handle a wide range of codimensional deformable bodies, including volumetric bodies, cloth, hair, and sand.
  • Reduced Artifacts: The method produces visually plausible results with fewer artifacts (like stretching or tunneling) compared to previous approaches, even in complex scenarios like knotting or falling cloth.

Limitations and Future Work

  • Global Convergence: The authors acknowledge that, like most step-and-project methods, their approach does not offer a theoretical guarantee of global convergence to the true solution of the optimization problem.
  • Friction Modeling: The current implementation does not natively handle friction. It uses a velocity filtering approach, which is noted as being less accurate for self-contacts, especially with large time steps.
  • Future Work:
    • Developing a unified framework for handling both collisions and friction jointly.
  • Extending the method to an intact projected gradient (Newton) method for potentially improved convergence.
  • Implementing the method on distributed systems (multiple GPUs) for real-time performance on very large-scale simulations.
  • Further exploring the theoretical guarantees of step-and-project methods and improving their convergence properties.

Summary updated

BibTeX
@article{wang2023fast,
  author = {Tianyu Wang and Jiong Chen and Dongping Li and Xiaowei Liu and Huamin Wang and Kun Zhou},
  title = {{Fast GPU-based Two-way Continuous Collision Handling}},
  journal = {ACM Trans. Graphics},
  year = {2023},
  url = {https://openreview.net/forum?id=rU3l-MAFUFY},
}
Figure