[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
research-article

Mass splitting for jitter-free parallel rigid body simulation

Published: 01 July 2012 Publication History

Abstract

We present a parallel iterative rigid body solver that avoids common artifacts at low iteration counts. In large or real-time simulations, iteration is often terminated before convergence to maximize scene size. If the distribution of the resulting residual energy varies too much from frame to frame, then bodies close to rest can visibly jitter. Projected Gauss-Seidel (PGS) distributes the residual according to the order in which contacts are processed, and preserving the order in parallel implementations is very challenging. In contrast, Jacobi-based methods provide order independence, but have slower convergence. We accelerate projected Jacobi by dividing each body mass term in the effective mass by the number of contacts acting on the body, but use the full mass to apply impulses. We further accelerate the method by solving contacts in blocks, providing wallclock performance competitive with PGS while avoiding visible artifacts. We prove convergence to the solution of the underlying linear complementarity problem and present results for our GPU implementation, which can simulate a pile of 5000 objects with no visible jittering at over 60 FPS.

Supplementary Material

JPG File (tp218_12.jpg)
ZIP File (a105-tonge.zip)
Supplemental material.
MP4 File (tp218_12.mp4)

References

[1]
Anitescu, M., and Potra, F. A. 1997. Formulating dynamic multi-rigid-body contact problems with friction as solvable linear complementarity problems. Nonlinear Dynamics 14, 231--247.
[2]
Baraff, D. 1991. Coping with friction for non-penetrating rigid body simulation. In Proceedings of the 18th annual conference on Computer graphics and interactive techniques, ACM, New York, NY, USA, SIGGRAPH '91, 31--41.
[3]
Bridson, R., Fedkiw, R., and Anderson, J. 2002. Robust treatment of collisions, contact and friction for cloth animation. Proceedings of ACM Siggraph, 594--603.
[4]
Catto, E. 2005. Iterative dynamics with temporal coherence. Presented at the Game Developers Conference.
[5]
Cline, M. B., and Pai, D. K. 2003. Post-stabilization for rigid body simulation with contact and constraints. In ICRA, IEEE, 3744--3751.
[6]
Cottle, R., Pang, J.-S., and Stone, R. 1992. The Linear Complementarity Problem. Academic Press.
[7]
Coumans, E. 2011. Game physics artefacts. Presented at the Game Developers Conference.
[8]
Daviet, G., Bertails-Descoubes, F., and Boissieux, L. 2011. A hybrid iterative solver for robustly capturing coulomb friction in hair dynamics. In Proceedings of the 2011 SIGGRAPH Asia Conference, ACM, New York, NY, USA, SA '11, 139:1--139:12.
[9]
Dostal, Z., and Schoberl, J. 2005. Minimizing quadratic functions subject to bound constraints with the rate of convergence and finite termination. Computational Optimization and Applications 30, 23--43.
[10]
Erleben, K. 2004. Stable, Robust, and Versatile Multibody Dynamics Animation. PhD thesis, University of Copenhagen Copenhagen.
[11]
Guendelman, E., Bridson, R., and Fedkiw, R. 2003. Non-convex rigid bodies with stacking. In ACM SIGGRAPH 2003 Papers, ACM, New York, NY, USA, SIGGRAPH '03, 871--878.
[12]
Gustafsson, D. 2010. Understanding game physics artefacts. In Game Physics Pearls. A K Peters, ch. 2.
[13]
Harada, T. 2007. Real-time rigid body simulation on GPUs. In GPU gems 3. Addison-Wesley Professional, ch. 29.
[14]
Harada, T. 2009. Parallelizing the physics pipeline: Physics simulations on the GPU. Presented at the Game Developers Conference.
[15]
Harada, T. 2011. A parallel constraint solver for a rigid body simulation. Presented at SIGGRAPH Asia.
[16]
Hege, H.-C., and Stüben, H. 1991. Vectorization and parallelization of irregular problems via graph coloring. In ICS, 47--56.
[17]
Hsu, S.-W., and Keyser, J. 2010. Piles of objects. In ACM SIGGRAPH Asia 2010 papers, ACM, New York, NY, USA, SIGGRAPH ASIA '10, 155:1--155:6.
[18]
Kaufman, D. M., Edmunds, T., and Pai, D. K. 2005. Fast frictional dynamics for rigid bodies. In ACM SIGGRAPH 2005 Papers, ACM, New York, NY, USA, SIGGRAPH '05, 946--956.
[19]
Kaufman, D. M., Sueda, S., James, D. L., and Pai, D. K. 2008. Staggered projections for frictional contact in multibody systems. In ACM SIGGRAPH Asia 2008 papers, ACM, New York, NY, USA, SIGGRAPH Asia '08, 164:1--164:11.
[20]
Lacoursière, C. 2007. A parallel block iterative method for interactive contacting rigid multibody simulations on multicore pcs. In Proceedings of the 8th international conference on Applied parallel computing: state of the art in scientific computing, Springer-Verlag, Berlin, Heidelberg, PARA'06, 956--965.
[21]
Lengyel, E. 2011. A jitter-tolerant rigid body sleep condition. In Game Engine Gems 2. A K Peters, ch. 23.
[22]
Morales, J., Nocedal, J., and Smelyanskiy, M. 2008. An algorithm for the fast solution of symmetric linear complementarity problems. Numerische Mathematik 111, 251--266.
[23]
Müller, M., and Chentanez, N. 2011. Solid simulation with oriented particles. In ACM SIGGRAPH 2011 papers, ACM, New York, NY, USA, SIGGRAPH '11, 92:1--92:10.
[24]
Murty, K. G. 1988. Iterative methods for LCPs. In Linear Complementarity, Linear and Non-linear Programming. Helderman Verlag, ch. 9.
[25]
NVIDIA. 2011. NVIDIA PhysX 3.2 user guide.
[26]
Parker, E. G., and O'Brien, J. F. 2009. Real-time deformation and fracture in a game environment. In Proceedings of the 2009 ACM SIGGRAPH/Eurographics Symposium on Computer Animation, ACM, New York, NY, USA, SCA '09, 165--175.
[27]
Renouf, M., and Alart, P. 2005. Conjugate gradient type algorithms for frictional multi-contact problems: applications to granular materials. Computer Methods in Applied Mechanics and Engineering 194, 18--20, 2019--2041.
[28]
Silcowitz, M., Niebe, S., and Erleben, K. 2010. A nonsmooth nonlinear conjugate gradient method for interactive contact force problems. The Visual Computer 26, 893--901.
[29]
Stewart, D. E., and Trinkle, J. C. 1996. An implicit time-stepping scheme for rigid body dynamics with inelastic collisions and coulomb friction. International Journal for Numerical Methods in Engineering 39, 15, 2673--2691.
[30]
Tasora, A., Negrut, D., and Anitescu, M. 2008. A GPU-based implementation of a cone convex complementarity approach for simulating rigid body dynamics with frictional contact. ASME Conference Proceedings 2008, 48722, 107--118.
[31]
Tonge, R., Zhang, L., and Sequeira, D. 2004. Method and program solving LCPs for rigid body dynamics. United States Patent 7079145.
[32]
Tonge, R., Wyatt, B., and Nicholson, B. 2010. PhysX GPU rigid bodies in Batman: Arkham Asylum. In Game Programming Gems 8, A. Lake, Ed. Cengage Learning, ch. 7.2, 590--601.
[33]
Vizing, V. G. 1964. On an estimate of the chromatic class of a p-graph. Diskret. Analiz. 3, 25--30.

Cited By

View all
  • (2024)A Multi-Layer Solver for XPBDProceedings of the ACM SIGGRAPH/Eurographics Symposium on Computer Animation10.1111/cgf.15186(1-11)Online publication date: 21-Aug-2024
  • (2023)Subspace-Preconditioned GPU Projective Dynamics with Contact for Cloth SimulationSIGGRAPH Asia 2023 Conference Papers10.1145/3610548.3618157(1-12)Online publication date: 10-Dec-2023
  • (2023)Interactive Hair Simulation on the GPU using ADMMACM SIGGRAPH 2023 Conference Proceedings10.1145/3588432.3591551(1-11)Online publication date: 23-Jul-2023
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Transactions on Graphics
ACM Transactions on Graphics  Volume 31, Issue 4
July 2012
935 pages
ISSN:0730-0301
EISSN:1557-7368
DOI:10.1145/2185520
Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 July 2012
Published in TOG Volume 31, Issue 4

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. contact
  2. friction
  3. non-smooth dynamics
  4. rigid bodies

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)36
  • Downloads (Last 6 weeks)3
Reflects downloads up to 01 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2024)A Multi-Layer Solver for XPBDProceedings of the ACM SIGGRAPH/Eurographics Symposium on Computer Animation10.1111/cgf.15186(1-11)Online publication date: 21-Aug-2024
  • (2023)Subspace-Preconditioned GPU Projective Dynamics with Contact for Cloth SimulationSIGGRAPH Asia 2023 Conference Papers10.1145/3610548.3618157(1-12)Online publication date: 10-Dec-2023
  • (2023)Interactive Hair Simulation on the GPU using ADMMACM SIGGRAPH 2023 Conference Proceedings10.1145/3588432.3591551(1-11)Online publication date: 23-Jul-2023
  • (2023)Wavelet-Based Methods to Partition Multibody Systems With Contact in Dynamic SimulationJournal of Computational and Nonlinear Dynamics10.1115/1.405684818:4Online publication date: 2-Mar-2023
  • (2023)Monolithic Friction and Contact Handling for Rigid Bodies and Fluids Using SPHComputer Graphics Forum10.1111/cgf.1472742:1(155-179)Online publication date: 20-Jan-2023
  • (2023)Using GPUs and CUDA for Computer Simulation of Rigid Bodies Motion2023 Seminar on Information Computing and Processing (ICP)10.1109/ICP60417.2023.10397386(140-142)Online publication date: 27-Nov-2023
  • (2023)Heat extraction through conductive proppantsSustainable Energy Technologies and Assessments10.1016/j.seta.2023.10351460(103514)Online publication date: Dec-2023
  • (2022)Using digital rock physics to investigate the impacts of diagenesis events and pathways on rock propertiesJournal of Petroleum Science and Engineering10.1016/j.petrol.2020.108025208(108025)Online publication date: Jan-2022
  • (2022)Numerical simulation of filtration processes in the flow-induced deformation of fibrous porous media by a three-dimensional two-way fluid–structure interaction schemeChemical Engineering Science10.1016/j.ces.2022.117500252(117500)Online publication date: Apr-2022
  • (2021)FrictionalMonolithACM Transactions on Graphics10.1145/3478513.348053940:6(1-20)Online publication date: 10-Dec-2021
  • Show More Cited By

View Options

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media