L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 QP-Collide: A New Approach to Collision Treatment Laks.

Slides:



Advertisements
Similar presentations
Numeric Integration Methods Jim Van Verth Red Storm Entertainment
Advertisements

Element Loads Strain and Stress 2D Analyses Structural Mechanics Displacement-based Formulations.
Indeterminate Structure Session Subject: S1014 / MECHANICS of MATERIALS Year: 2008.
Point-wise Discretization Errors in Boundary Element Method for Elasticity Problem Bart F. Zalewski Case Western Reserve University Robert L. Mullen Case.
3.2. I NTRODUCTION TO R EAL - TIME P HYSICS Overview of core principles behind real-time physics systems.
Resolving Surface Collisions through Intersection Contour Minimization Pascal Volino Nadia Magnenat-Thalmann MIRALab, University of Geneva SIGGRAPH 2006.
Integration Techniques
Dynamics of Articulated Robots Kris Hauser CS B659: Principles of Intelligent Robot Motion Spring 2013.
1cs533d-winter-2005 Notes  Please read O'Brien and Hodgins, "Graphical modeling and animation of brittle fracture", SIGGRAPH '99 O'Brien, Bargteil and.
Hierarchical Multi-Resolution Finite Element Model for Soft Body Simulation Matthieu Nesme, François Faure, Yohan Payan 2 nd Workshop on Computer Assisted.
More Accurate Pressure Solves. Solid Boundaries  Voxelized version works great if solids aligned with grid  If not: though the error in geometry is.
1cs533d-winter-2005 Notes  More optional reading on web for collision detection.
Interactive Animation of Structured Deformable Objects Mathieu Desbrun Peter Schroder Alan Barr.
Adapted from: CULLIDE: Interactive Collision Detection Between Complex Models in Large Environments using Graphics Hardware Naga K. Govindaraju, Stephane.
UNC Chapel Hill S. Redon - M. C. Lin Rigid body dynamics II Solving the dynamics problems.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Continuous Collision Detection David Knott COMP 259 class presentation.
1cs533d-term Notes  list Even if you’re just auditing!
Haptic Cloth Rendering 6th Dutch-Belgian Haptics Meeting TUDelft, 21 st June 2006 Lode Vanacken Expertise centre for Digital Media (EDM) Hasselt University.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Constraint-Based Motion Planning using Voronoi Diagrams Maxim Garber and Ming C. Lin Department of Computer.
1cs533d-term Notes  Typo in test.rib --- fixed on the web now (PointsPolygon --> PointsPolygons)
1cs533d-winter-2005 Notes  Assignment 2 instability - don’t worry about it right now  Please read D. Baraff, “Fast contact force computation for nonpenetrating.
1Notes. 2 Time integration for particles  Back to the ODE problem, either  Accuracy, stability, and ease-of- implementation are main issues  Obviously.
Finite Difference Methods to Solve the Wave Equation To develop the governing equation, Sum the Forces The Wave Equation Equations of Motion.
Computer graphics & visualization Rigid Body Simulation.
Computer graphics & visualization Collision Detection – Narrow Phase.
3.7. O THER G AME P HYSICS A PPROACHES Overview of other game engine physics approaches.
Writing a Hair Dynamics Solver Tae-Yong Kim Rhythm & Hues Studios
Fast and Simple Physics using Sequential Impulses
Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Game Physics – Part IV Moving to 3D
Erin Catto Blizzard Entertainment Numerical Integration.
Final Project Presentation& Demo Zhi Dong Real Time FEM of Elasto-Plastic Simulation.
Algorithms for a large sparse nonlinear eigenvalue problem Yusaku Yamamoto Dept. of Computational Science & Engineering Nagoya University.
ME451 Kinematics and Dynamics of Machine Systems
CSE 380 – Computer Game Programming Box2D Box2D TestBed.
Spring Rigid Body Simulation. Spring Contents Unconstrained Collision Contact Resting Contact.
GRAVIR / IMAG, Grenoble, FRANCE A joint lab of CNRS, INPG, INRIA and UJF June 12, 2003IS4TM, Juan-Les-Pins, FRANCE Real-time Simulation of Self-Collisions.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Collisions & Contact.
Modeling and Solving Constraints Erin Catto Blizzard Entertainment.
Numerical Integration and Rigid Body Dynamics for Potential Field Planners David Johnson.
Large Steps in Cloth Simulation - SIGGRAPH 98 박 강 수박 강 수.
Mixing deformable and rigid- body mechanics simulation Julien Lenoir Sylvère Fonteneau Alcove Project - INRIA Futurs - LIFL - University of Lille (France)
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Optimization & Constraints Add mention of global techiques Add mention of calculus.
 d.s. wu 1 Penalty Methods for Contact Resolution interactive contact resolution that usually works pi david s wu.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Physics for Games Spring 2012.
Modeling and Solving Constraints
Rigid Body Dynamics (II). Bodies intersect ! classify contacts Bodies separating –v rel >  –No response required Colliding contact (Last time) –v rel.
Computer Game Design and Development
CS274 Spring 01 Lecture 7 Copyright © Mark Meyer Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Application: Multiresolution Curves Jyun-Ming Chen Spring 2001.
Lecture 6 - Single Variable Problems & Systems of Equations CVEN 302 June 14, 2002.
Game Technology Animation V Generate motion of objects using numerical simulation methods Physically Based Animation.
Advanced Games Development Game Physics CO2301 Games Development 1 Week 19.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 32.
INTEGRATOR CLASSIFICATION & CHARACTERISTICS
Physically Based Simulations For Games
CHAPTER 2 - EXPLICIT TRANSIENT DYNAMIC ANALYSYS
Time Integration in Chrono
PHY 711 Classical Mechanics and Mathematical Methods
3.7. Other Game Physics Approaches
روش عناصر محدود غیرخطی II Nonlinear Finite Element Procedures II
Try Lam Jet Propulsion Laboratory California Institute of Technology
Computer Animation Algorithms and Techniques
Introduction Constraint: important features in computer animation
By Naga Govindaraju UNC Chapel Hill
Computer Animation Algorithms and Techniques
GPAT – Chapter 7 Physics.
Presentation transcript:

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 QP-Collide: A New Approach to Collision Treatment Laks Raghupathi François Faure Co-encadre par Marie-Paule CANI EVASION/GRAVIR INRIA Rhône-Alpes, Grenoble

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Teaser Video

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Classical Physical Simulation Advance time-step (solve ODE for Δv) Detect collisions at Make corrections to and/or

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Detect and handle multiple collisions –Discrete methods miss thin, fast objects –Displacement correction results in large deformation for stiff objects Avoid looping problems in the case of multiple collisions –Responding one-by-one will provoke further collisions Problem at Hand

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Our Strategy Solve mechanics implicit (stable) or explicit form Formulate collisions as linear inequality constraints –Detect both at discrete and continuous time Solve mechanic equations + constraint inequalities –collision correction via quadratic programming (QP)

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Previous Techniques [Baraff94] – contact force computation of rigid bodies using LCP/QP Requires inertial matrix inversion M -1 Not always possible to compute K -1 for deformable objects Others use iterative correction [Volino00] and [Bridson02]

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Overall Collision Approach i.Perform broad-phase rejection tests –E.g. Box-Box test between Cable and Object ii.If i. is true, enter narrow-phase Recursively test Cable Primitives and Object- Children (e.g. ray-box) Primitive tests between Cable and Object primitives (e.g. ray-triangle) Apply Response for each valid collision

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Broad Phase Detection Polygonal model 1-subdivision3-subdivisions

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Why Continuous? No interpenetration at t and t +  t => Undetected by static methods

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Case for Continuous Static collision detection missed if: RelativeVelocity   t > ObjectSize Robust detection for thin, fast moving objects Permits large time step simulations Continuous methods detect first contact during collision detection

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Narrow Phase – Vertex-Triangle Point P(t) colliding with triangle (A(t), B(t), C(t)) and normal N(t) Cubic equation in t c Find valid t c ε [t 0, t 0 +dt] and u,w ε [0, 1], u+w  1

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Quadratic Form (1) Mechanical equation –Implicit (Baraff98) Quadratic form with linear constrains –Minimize: –Subject to:

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Quadratic Form (2) Lagrange form Such that - set of “active” constraints - set of “non-active” constraints

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Active Set Method (1) Find ¢v in Detect Collisions (populate J and c matrices) Classify constraints Find new ¢v and for all constraint J i 2 J[1 … m] do if J i ¢v i > c i then Add i th constraint to A else Add i th constraint to A’

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Active Set Method (2) Verify Lagrange multiplier sign Verify if solution satisfies constraints for all q (k), q 2 A do if q (k) > 0 then Move q from A to A’(active to non-active) endloop = false for all ¢v p, p 2 A do if J p v(k) p > c p then Move p from A’to A (non-active to active) endloop = false

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 On Convergence Using iterative method such as conjugate gradient –Should converge within 3n + m steps –‘n’ number vertices, ‘m’ number of constraints Watch out for numerical errors Toggling Constraints

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Collisions as Linear Constraints Vertex-Triangle condition for non-penetration: Left-hand side of J matrix: Similar for edge-edge and other constraints

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Demos

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Known Problems Degradation of matrix conditioning –Susceptible to numerical errors –Disadvantage vis-à-vis penalty approaches Linearly dependent constraints –High condition number –Simple fix in lieu of QR decomposition Looping –Constraints toggle between “active” and “non-active” –Suppress them – not theoretically justified

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Linearly dependent constraints Add minor “perturbation” to avoid singularity: L = diagonal matrix (l 1, …l m ), l i ~ 10 -3

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Summary New approach to handling multiple collisions and other linear constraints Works well for moderately difficult cases Further theoretical work needed for better numerical precision

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Questions/Comments? Et bien sur, allez les Bleus!

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Demo: Mechanical Simulation (1) Mechanics: Implicit Euler resolved by conjugate gradient Run-time: 40 Hz in Pentium GHz, 1GB RAM, GeForce 3 Pulley trianglesCable with 100 particles Endpoint Masses kg Cable stiffness = 1.38E+6 N/m initial velocity = -2.0 m/s Particle Mass 0.7 kg Gravity = -10 m/s 2

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Primary Accomplishments Fast octree-based method for collision detection (rigid & deformable) Continuous collision detection Numerically stable ODE solver Demo: Simulation of interaction cable and rigid mechanical parts Relevance to medical applications

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Relevant apps: thin tissue cutting Scalpel cutting a thin tissue

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Thin tissue cutting (2)

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Bounding box tests Ray-Box Test  6 Ray-Plane Tests Why ray?  Ray is trajectory of positions between x(t) and x(t+dt)

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Recursive BB test If Ray collides with Box, check with all the 8-children of the boxes recursively till the end Colliding AABBs

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Primitive Tests Test primitives within the smallest box Continuous test: –Cubic equation for two objects moving –Quadratic equation for one fixed mobile Ray-Triangle Tests

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Demo: Mechanical Simulation (2) Mechanics: Implicit Euler resolved by conjugate gradient Run-time: Hz in Pentium GHz, 1GB RAM, GeForce 3 Pulley trianglesCable with 100 particles Cable stiffness = 1E+4 N/m Particle Mass 0.7 kg Gravity = -10 m/s 2

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Demo: Mechanical Simulation (3) Mechanics: Implicit Euler resolved by conjugate gradient Run-time: Hz in Pentium GHz, 1GB RAM, GeForce 3 Pulley triangles Funnel triangles Cable with 250 particles Endpoint Masses kg Cable stiffness = 1.38E+6 N/m initial velocity = -1.5 m/s Particle Mass 0.3 kg Gravity = -10 m/s 2

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Work in Progress So far: Proof of concept –Approach works for Rigid Object + Cable –Now, extend it to deformable objects Extensions: –Deformable Octree for organ (trivial) –Cubic continuous test (just need a bit more CPU power) –Unified treatment of mechanics, collisions and other constraints (present challenge)

L. Raghupathi, QP-Collide: A New Approach to Collision Treatment GTAS, Toulouse, Juin 15-16, 2006 Coming Soon! Deformable organs being disconnected by cutting-off the interstitial tissues