Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

Fast GPU-based Two-way Continuous Collision Handling

Published: 28 July 2023 Publication History
  • Get Citation Alerts
  • Abstract

    Step-and-project is a popular method to simulate non-penetrating deformable bodies in physically based animation. The strategy is to first integrate the system in time without considering contacts and then resolve potential intersections, striking a good balance between plausibility and efficiency. However, existing methods can be defective and unsafe when using large time steps, taking risks of failure or demanding repetitive collision testing and resolving that severely degrade performance. In this article, we propose a novel two-way method for fast and reliable continuous collision handling. Our method launches an optimization from both ends of the intermediate time-integrated state and the previous intersection-free state. It progressively generates a piecewise linear path and eventually obtains a feasible solution for the next time step. The algorithm efficiently alternates between a forward step and a backward step until the result is conditionally converged. Thanks to a set of unified volume-based contact constraints, our method offers flexible and reliable handling of various codimensional deformable bodies, including volumetric bodies, cloth, hair, and sand. Experimental results demonstrate the safety, robustness, physical fidelity, and numerical efficiency of our method, making it particularly suitable for scenarios involving large deformations or large time steps.

    Supplementary Material

    tog-22-0049-File003 (tog-22-0049-file003.mp4)
    Supplementary video
    tog-22-0049-File004 (tog-22-0049-file004.jpg)
    Supplementary material

    References

    [1]
    Samantha Ainsley, Etienne Vouga, Eitan Grinspun, and Rasmus Tamstorf. 2012. Speculative parallel asynchronous contact mechanics. ACM Trans. Graph. 31, 6, Article 151 (Nov.2012), 8 pages.
    [2]
    Sheldon Andrews, Kenny Erleben, and Zachary Ferguson. 2022. Contact and friction simulation for computer graphics. In Proceedings of the ACM SIGGRAPH Courses (SIGGRAPH’22). ACM, New York, NY, Article 3, 172 pages.
    [3]
    David Baraff, Andrew Witkin, and Michael Kass. 2003. Untangling cloth. ACM Trans. Graph. 22, 3 (July2003), 862–870.
    [4]
    Jernej Barbič and Doug L. James. 2010. Subspace self-collision culling. In Proceedings of the ACM SIGGRAPH (SIGGRAPH’10). ACM, New York, NY, Article 81, 9 pages.
    [5]
    Miklos Bergou, Max Wardetzky, David Harmon, Denis Zorin, and Eitan Grinspun. 2006. A quadratic bending model for inextensible surfaces. In Proceedings of the 4th Eurographics Symposium on Geometry Processing (SGP’06). Eurographics Association, Goslar, DEU, 227–230.
    [6]
    Florence Bertails-Descoubes, Florent Cadoux, Gilles Daviet, and Vincent Acary. 2011. A nonsmooth newton solver for capturing exact coulomb friction in fiber assemblies. ACM Trans. Graph. 30, 1, Article 6 (Feb.2011), 14 pages.
    [7]
    Robert Bridson, Ronald Fedkiw, and John Anderson. 2002. Robust treatment of collisions, contact and friction for cloth animation. ACM Trans. Graph. 21, 3 (July2002), 594–603.
    [8]
    R. Bridson, S. Marino, and R. Fedkiw. 2005. Simulation of clothing with folds and wrinkles. In Proceedings of the ACM SIGGRAPH 2005 Courses (SIGGRAPH’05). ACM, New York, NY, 28–36.
    [9]
    Yunuo Chen, Minchen Li, Lei Lan, Hao Su, Yin Yang, and Chenfanfu Jiang. 2022. A unified newton barrier method for multibody dynamics. ACM Trans. Graph. 41, 4, Article 66 (July2022), 14 pages.
    [10]
    Kwang-Jin Choi and Hyeong-Seok Ko. 2002. Stable but responsive cloth. ACM Trans. Graph. 21, 3 (July 2002), 604–611.
    [11]
    Andrew R. Conn, Nicholas I. M. Gould, and Ph L. Toint. 1988. Global convergence of a class of trust region algorithms for optimization with simple bounds. SIAM J. Numer. Anal. 25, 2 (1988), 433–460.
    [12]
    Gilles Daviet. 2020. Simple and scalable frictional contacts for thin nodal objects. ACM Trans. Graph. 39, 4, Article 61 (July 2020), 16 pages.
    [13]
    Mathieu Desbrun, Mark Meyer, Peter Schröder, and Alan H. Barr. 1999. Implicit fairing of irregular meshes using diffusion and curvature flow. In Proceedings of the 26th Annual Conference on Computer Graphics and Interactive Techniques (SIGGRAPH’99). ACM Press/Addison-Wesley Publishing Co., 317–324.
    [14]
    Kenny Erleben. 2013. Numerical methods for linear complementarity problems in physics-based animation. In Proceedings of the ACM SIGGRAPH (SIGGRAPH’13). ACM, New York, NY, Article 8, 42 pages.
    [15]
    Olaf Etzmuß, Michael Keckeisen, and Wolfgang Straßer. 2003. A fast finite element solution for cloth modelling. In Proceedings of the 11th Pacific Conference on Computer Graphics and Applications. IEEE, 244–251.
    [16]
    Yu Fang, Minchen Li, Chenfanfu Jiang, and Danny M. Kaufman. 2021. Guaranteed globally injective 3D deformation processing. ACM Trans. Graph. 40, 4, Article 75 (July 2021), 13 pages.
    [17]
    Marco Fratarcangeli, Valentina Tibaldo, and Fabio Pellacini. 2016. Vivace: A practical Gauss-Seidel method for stable soft body dynamics. ACM Trans. Graph. 35, 6, Article 214 (Nov. 2016), 9 pages.
    [18]
    Ming Gao, Xinlei Wang, Kui Wu, Andre Pradhana, Eftychios Sifakis, Cem Yuksel, and Chenfanfu Jiang. 2018. GPU optimization of material point methods. ACM Trans. Graph. 37, 6, Article 254 (Dec. 2018), 12 pages.
    [19]
    Eitan Grinspun, Anil N. Hirani, Mathieu Desbrun, and Peter Schröder. 2003. Discrete shells. In Proceedings of the ACM SIGGRAPH/Eurographics Symposium on Computer Animation (SCA’03). Eurographics Association, Goslar, DEU, 62–67.
    [20]
    David Harmon, Etienne Vouga, Breannan Smith, Rasmus Tamstorf, and Eitan Grinspun. 2009. Asynchronous contact mechanics. ACM Trans. Graph. 28, 3, Article 87 (July 2009), 12 pages.
    [21]
    David Harmon, Etienne Vouga, Rasmus Tamstorf, and Eitan Grinspun. 2008. Robust treatment of simultaneous collisions. ACM Trans. Graph. 27, 3 (Aug. 2008), 1–4.
    [22]
    David Harmon, Qingnan Zhou, and Denis Zorin. 2011. Asynchronous integration with phantom meshes. In Proceedings of the ACM SIGGRAPH/Eurographics Symposium on Computer Animation (SCA’11). ACM, New York, NY, 247–256.
    [23]
    Couro Kane, Eduardo A Repetto, Michael Ortiz, and Jerrold E. Marsden. 1999. Finite element analysis of nonsmooth contact. Comput. Methods Appl. Mech. Eng. 180, 1-2 (1999), 1–26.
    [24]
    Lei Lan, Guanqun Ma, Yin Yang, Changxi Zheng, Minchen Li, and Chenfanfu Jiang. 2022. Penetration-free projective dynamics on the GPU. ACM Trans. Graph. 41, 4, Article 69 (July 2022), 16 pages.
    [25]
    Christian Lauterbach, Qi Mo, and Dinesh Manocha. 2010. gProximity: Hierarchical GPU-based operations for collision and distance queries. In Proceedings of Eurographics, Vol. 29. 419–428.
    [26]
    Cheng Li, Min Tang, Ruofeng Tong, Ming Cai, Jieyi Zhao, and Dinesh Manocha. 2020b. P-Cloth: Interactive complex cloth simulation on multi-GPU systems using dynamic matrix assembly and pipelined implicit integrators. ACM Trans. Graph. 39, 6, Article 180 (Nov. 2020), 15 pages.
    [27]
    Minchen Li, Zachary Ferguson, Teseo Schneider, Timothy Langlois, Denis Zorin, Daniele Panozzo, Chenfanfu Jiang, and Danny M. Kaufman. 2020a. Incremental potential contact: Intersection-and inversion-free, large-deformation dynamics. ACM Trans. Graph. 39, 4, Article 49 (July 2020), 20 pages.
    [28]
    Minchen Li, Danny M. Kaufman, and Chenfanfu Jiang. 2021. Codimensional incremental potential contact. ACM Trans. Graph. 40, 4, Article 170 (July 2021), 24 pages.
    [29]
    Chih-Jen Lin and Jorge J Moré. 1999. Newton’s method for large bound-constrained optimization problems. SIAM J. Optimiz. 9, 4 (1999), 1100–1127.
    [30]
    Mickaël Ly, Jean Jouve, Laurence Boissieux, and Florence Bertails-Descoubes. 2020. Projective dynamics with dry frictional contact. ACM Trans. Graph. 39, 4, Article 57 (July 2020), 8 pages.
    [31]
    Miles Macklin, Kenny Erleben, Matthias Müller, Nuttapong Chentanez, Stefan Jeschke, and Viktor Makoviychuk. 2019. Non-smooth newton methods for deformable multi-body dynamics. ACM Trans. Graph. 38, 5, Article 140 (Oct. 2019), 20 pages.
    [32]
    Miles Macklin and Matthias Muller. 2021. A constraint-based formulation of stable neo-hookean materials. In Proceedings of the Conference on Motion, Interaction and Games (MIG’21). ACM, New York, NY, Article 12, 7 pages.
    [33]
    Sebastian Martin, Bernhard Thomaszewski, Eitan Grinspun, and Markus Gross. 2011. Example-based elastic materials. In Proceedings of the ACM SIGGRAPH (SIGGRAPH’11). ACM, New York, NY, Article 72, 8 pages.
    [34]
    Stan Melax. 2017. 3x3 Matrix Diagonalization. Retrieved from http://melax.github.io/diag.html.
    [35]
    Mark Meyer, Mathieu Desbrun, Peter Schröder, and Alan H Barr. 2003. Discrete differential-geometry operators for triangulated 2-manifolds. In Visualization and Mathematics III. Springer, 35–57.
    [36]
    Brian Mirtich. 2000. Timewarp rigid body simulation. In Proceedings of the 27th Annual Conference on Computer Graphics and Interactive Techniques (SIGGRAPH’00). ACM Press/Addison-Wesley Publishing Co., 193–200.
    [37]
    Brian Mirtich and John Canny. 1995. Impulse-based dynamic simulation. In Proceedings of the Workshop on Algorithmic Foundations of Robotics (WAFR). A. K. Peters, Ltd., 407–418.
    [38]
    Matthias Müller. 2008. Hierarchical position based dynamics. In Proceedings of Virtual Reality Interactions and Physical Simulations. Grenoble.
    [39]
    Matthias Müller, Nuttapong Chentanez, Tae-Yong Kim, and Miles Macklin. 2015. Air meshes for robust collision handling. ACM Trans. Graph. 34, 4, Article 133 (July 2015), 9 pages.
    [40]
    Rahul Narain, Armin Samii, and James F. O’Brien. 2012. Adaptive anisotropic remeshing for cloth simulation. ACM Trans. Graph. 31, 6, Article 152 (Nov. 2012), 10 pages.
    [41]
    Jorge Nocedal and Stephen J. Wright. 2006. Numerical Optimization. Springer.
    [42]
    Simon Pabst, Artur Koch, and Wolfgang Straßer. 2010. Fast and scalable CPU/GPU collision detection for rigid and deformable surfaces. Comput. Graph. Forum 29, 5 (2010), 1605–1612.
    [43]
    Ulrich Pinkall and Konrad Polthier. 1993. Computing discrete minimal surfaces and their conjugates. Exper. Math. 2, 1 (1993), 15–36.
    [44]
    Xavier Provot. 1997. Collision and self-collision handling in cloth model dedicated to design garments. In Computer Animation and Simulation. 177–189.
    [45]
    Eftychios Sifakis, Sebastian Marino, and Joseph Teran. 2008. Globally coupled collision handling using volume preserving impulses. In Proceedings of the ACM SIGGRAPH/Eurographics Symposium on Computer Animation (SCA’08). Eurographics Association, Goslar, DEU, 147–153.
    [46]
    Breannan Smith, Fernando De Goes, and Theodore Kim. 2019. Analytic eigensystems for isotropic distortion energies. ACM Trans. Graph. 38, 1, Article 3 (Feb. 2019), 15 pages.
    [47]
    Jason Smith and Scott Schaefer. 2015. Bijective parameterization with free boundaries. ACM Trans. Graph. 34, 4, Article 70 (July 2015), 9 pages.
    [48]
    Jos Stam. 2009. Nucleus: Towards a unified dynamics solver for computer graphics. In Proceedings of the 11th IEEE International Conference on Computer-Aided Design and Computer Graphics.
    [49]
    Min Tang, Young J. Kim, and Dinesh Manocha. 2010. Continuous collision detection for non-rigid contact computations using local advancement. In Proceedings of the IEEE Robotics & Automation Society Conference (ICRA’10). 4016–4021.
    [50]
    Min Tang, Zhongyuan Liu, Ruofeng Tong, and Dinesh Manocha. 2018a. PSCC: Parallel self-collision culling with spatial hashing on GPUs. Proc. ACM Comput. Graph. Interact. Tech. 1, 1, Article 18 (July 2018), 18 pages.
    [51]
    Min Tang, Dinesh Manocha, Jiang Lin, and Ruofeng Tong. 2011a. Collision-streams: Fast GPU-based collision detection for deformable models. In Proceedings of the Symposium on Interactive 3D Graphics and Games (I3D’11). ACM, New York, NY, 63–70.
    [52]
    Min Tang, Dinesh Manocha, Sung-Eui Yoon, Peng Du, Jae-Pil Heo, and Ruo-Feng Tong. 2011b. VolCCD: Fast continuous collision culling between deforming volume meshes. ACM Trans. Graph. 30, 5, Article 111 (Oct. 2011), 15 pages.
    [53]
    Min Tang, Ruofeng Tong, Zhendong Wang, and Dinesh Manocha. 2014. Fast and exact continuous collision detection with bernstein sign classification. ACM Trans. Graph. 33, 6, Article 186 (Nov. 2014), 8 pages.
    [54]
    Min Tang, Huamin Wang, Le Tang, Ruofeng Tong, and Dinesh Manocha. 2016. CAMA: Contact-aware matrix assembly with unified collision handling for GPU-based cloth simulation. Comput. Graph. Forum (Eurographics) 35, 2 (May 2016), 511–521.
    [55]
    Min Tang, Tongtong Wang, Zhongyuan Liu, Ruofeng Tong, and Dinesh Manocha. 2018b. I-Cloth: Incremental collision handling for GPU-based interactive cloth simulation. ACM Trans. Graph. 37, 6, Article 204 (Dec. 2018), 10 pages.
    [56]
    Joseph Teran, Eftychios Sifakis, Geoffrey Irving, and Ronald Fedkiw. 2005. Robust quasistatic finite elements and flesh simulation. In Proceedings of the ACM SIGGRAPH/Eurographics Symposium on Computer Animation (SCA’05). ACM, New York, NY, 181–190.
    [57]
    Matthias Teschner, Bruno Heidelberger, Matthias Müller, Danat Pomerantes, and Markus H. Gross. 2003. Optimized spatial hashing for collision detection of deformable objects. In Proceedings of Vision, Modeling, Visualization, Vol. 3. 47–54.
    [58]
    Bernhard Thomaszewski, Simon Pabst, and Wolfgang Straßer. 2008. Asynchronous cloth simulation. In Proceedings of Computer Graphics International.
    [59]
    Mickeal Verschoor and Andrei C. Jalba. 2019. Efficient and accurate collision response for elastically deformable models. ACM Trans. Graph. 38, 2, Article 17 (Mar. 2019), 20 pages.
    [60]
    Pascal Volino and Nadia Magnenat-Thalmann. 2006. Resolving surface collisions through intersection contour minimization. In Proceedings of the ACM SIGGRAPH Papers (SIGGRAPH’06). ACM, New York, NY, 1154–1159.
    [61]
    Brian Von Herzen, Alan H. Barr, and Harold R. Zatz. 1990. Geometric collisions for time-dependent parametric surfaces. SIGGRAPH Comput. Graph. 24, 4 (Sep. 1990), 39–48.
    [62]
    Bolun Wang, Zachary Ferguson, Teseo Schneider, Xin Jiang, Marco Attene, and Daniele Panozzo. 2021. A large-scale benchmark and an inclusion-based algorithm for continuous collision detection. ACM Trans. Graph. 40, 5 (2021), 1–16.
    [63]
    Huamin Wang. 2014. Defending continuous collision detection against errors. ACM Trans. Graph. 33, 4, Article 122 (July 2014), 10 pages.
    [64]
    Huamin Wang. 2015. A chebyshev semi-iterative approach for accelerating projective and position-based dynamics. ACM Trans. Graph. 34, 6, Article 246 (Oct. 2015), 9 pages.
    [65]
    Huamin Wang and Yin Yang. 2016. Descent methods for elastic body simulation on the GPU. ACM Trans. Graph. 35, 6, Article 212 (Nov. 2016), 10 pages.
    [66]
    Tongtong Wang, Zhihua Liu, Min Tang, Ruofeng Tong, and Dinesh Manocha. 2017. Efficient and reliable self-collision culling using unprojected normal cones. Comput. Graph. Forum (Eurographics) 36, 8 (2017), 487–498.
    [67]
    Martin Wicke, Hermes Lanker, and Markus Gross. 2006. Untangling cloth with boundaries. In Proceedings of the Conference on Vision, Modeling, and Visualization. 349–356.
    [68]
    Longhua Wu, Botao Wu, Yin Yang, and Huamin Wang. 2020. A safe and fast repulsion method for GPU-based cloth self collisions. ACM Trans. Graph. 40, 1, Article 5 (Dec. 2020), 18 pages.
    [69]
    Cem Yuksel. 2022. A fast and robust solution for cubic and higher-order polynomials. In Proceedings of the ACM SIGGRAPH Talks (SIGGRAPH’22). ACM, New York, NY, Article 28, 2 pages.
    [70]
    Changxi Zheng and Doug L. James. 2012. Energy-based self-collision culling for arbitrary mesh deformations. ACM Trans. Graph. 31, 4, Article 98 (July 2012), 12 pages.

    Cited By

    View all
    • (2024)Preconditioned Nonlinear Conjugate Gradient Method for Real-time Interior-point HyperelasticityACM SIGGRAPH 2024 Conference Papers10.1145/3641519.3657490(1-11)Online publication date: 13-Jul-2024
    • (2024)AFDGCF: Adaptive Feature De-correlation Graph Collaborative Filtering for RecommendationsProceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval10.1145/3626772.3657724(1242-1252)Online publication date: 10-Jul-2024
    • (2024)Dynamic Cloth Folding Using Curriculum Learning使用课程学习的动态布料折叠Journal of Shanghai Jiaotong University (Science)10.1007/s12204-024-2710-7Online publication date: 22-Feb-2024
    • Show More Cited By

    Index Terms

    1. Fast GPU-based Two-way Continuous Collision Handling

      Recommendations

      Comments

      Information & Contributors

      Information

      Published In

      cover image ACM Transactions on Graphics
      ACM Transactions on Graphics  Volume 42, Issue 5
      October 2023
      195 pages
      ISSN:0730-0301
      EISSN:1557-7368
      DOI:10.1145/3607124
      Issue’s Table of Contents

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 28 July 2023
      Online AM: 13 June 2023
      Accepted: 17 May 2023
      Revised: 19 April 2023
      Received: 23 July 2022
      Published in TOG Volume 42, Issue 5

      Permissions

      Request permissions for this article.

      Check for updates

      Author Tags

      1. Collision handling
      2. deformable body simulation
      3. GPU computation
      4. nonlinear optimization

      Qualifiers

      • Research-article

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)596
      • Downloads (Last 6 weeks)23
      Reflects downloads up to 10 Aug 2024

      Other Metrics

      Citations

      Cited By

      View all
      • (2024)Preconditioned Nonlinear Conjugate Gradient Method for Real-time Interior-point HyperelasticityACM SIGGRAPH 2024 Conference Papers10.1145/3641519.3657490(1-11)Online publication date: 13-Jul-2024
      • (2024)AFDGCF: Adaptive Feature De-correlation Graph Collaborative Filtering for RecommendationsProceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval10.1145/3626772.3657724(1242-1252)Online publication date: 10-Jul-2024
      • (2024)Dynamic Cloth Folding Using Curriculum Learning使用课程学习的动态布料折叠Journal of Shanghai Jiaotong University (Science)10.1007/s12204-024-2710-7Online publication date: 22-Feb-2024
      • (undefined)Graph Augmentation Empowered Contrastive Learning for RecommendationACM Transactions on Information Systems10.1145/3677377

      View Options

      Get Access

      Login options

      Full Access

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Full Text

      View this article in Full Text.

      Full Text

      Media

      Figures

      Other

      Tables

      Share

      Share

      Share this Publication link

      Share on social media