Rigid Body Dynamics, Collision Response, & Deformation

Similar documents
Fracture & Tetrahedral Models

Rigid Body Dynamics, Fracture, & Deformation

Navier-Stokes & Flow Simulation

Navier-Stokes & Flow Simulation

Navier-Stokes & Flow Simulation

Last Time? Animation, Motion Capture, & Inverse Kinematics. Today. Keyframing. Physically-Based Animation. Procedural Animation

Last Time? Inverse Kinematics. Today. Keyframing. Physically-Based Animation. Procedural Animation

Last Time? Animation, Motion Capture, & Inverse Kinematics. Today. Keyframing. Physically-Based Animation. Procedural Animation

Fracture & Tetrahedral Models

Animation, Motion Capture, & Inverse Kinematics

Mass-Spring Systems. Last Time?

Chapter 3: Computer Animation Reminder: Descriptive animation. Procedural animation : Examples. Towards methods that generate motion?

CGT 581 G Fluids. Overview. Some terms. Some terms

2.7 Cloth Animation. Jacobs University Visualization and Computer Graphics Lab : Advanced Graphics - Chapter 2 123

Water. Notes. Free surface. Boundary conditions. This week: extend our 3D flow solver to full 3D water We need to add two things:

Homework 2 Questions? Animation, Motion Capture, & Inverse Kinematics. Velocity Interpolation. Handing Free Surface with MAC

Simulation in Computer Graphics. Deformable Objects. Matthias Teschner. Computer Science Department University of Freiburg

Realistic Animation of Fluids

Physically Based Simulation

Rachel Weinstein, Joseph Teran and Ron Fedkiw

Physically Based Simulation

CS-184: Computer Graphics. Today

CS-184: Computer Graphics. Today. Lecture #20: Spring and Mass systems. 20-SpringMassSystems.key - April 23, Spring and Mass systems

CS-184: Computer Graphics. Today. Lecture #22: Spring and Mass systems. Spring and Mass systems. Distance springs Spring dampers Edge springs

Homework 1: Implicit Surfaces, Collision Detection, & Volumetric Data Structures. Loop Subdivision. Loop Subdivision. Questions/Comments?

Realistic Animation of Fluids

Sand Simulation. Abhinav Golas. COMP Physically Based Simulation. Final Project Presentation. May 6,

Announcements. Ray tracer is due in five days you should have started by now or you re going to have a bad week. Missing file posted on the web page

Structure and Synthesis of Robot Motion

To Do. History of Computer Animation. These Lectures. 2D and 3D Animation. Computer Animation. Foundations of Computer Graphics (Spring 2010)

Interaction of Fluids with Deformable Solids

Adarsh Krishnamurthy (cs184-bb) Bela Stepanova (cs184-bs)

Overview of Traditional Surface Tracking Methods

A simple example. Assume we want to find the change in the rotation angles to get the end effector to G. Effect of changing s

C O M P U T E R G R A P H I C S. Computer Animation. Guoying Zhao 1 / 66

Particle Systems. Lecture 8 Taku Komura

Lecture VI: Constraints and Controllers. Parts Based on Erin Catto s Box2D Tutorial

Soft-Bodies. Spatially Coupled Shells. Technical Report (Soft-Bodies) Benjamin Kenwright. 1 Introduction

Cloth Simulation. Tanja Munz. Master of Science Computer Animation and Visual Effects. CGI Techniques Report

CS 231. Fluid simulation

Cloth The Animation of Natural Phenomena Adrien Treuille

Animation of Fluids. Animating Fluid is Hard

Simultaneous Coupling of Fluids and Deformable Bodies

Physically based simulation of thin-shell objects burning

Computer Animation. Algorithms and Techniques. z< MORGAN KAUFMANN PUBLISHERS. Rick Parent Ohio State University AN IMPRINT OF ELSEVIER SCIENCE

T6: Position-Based Simulation Methods in Computer Graphics. Jan Bender Miles Macklin Matthias Müller

Introduction to Computer Graphics. Animation (2) May 26, 2016 Kenshi Takayama

Virtual Environments

Interaction of Fluid Simulation Based on PhysX Physics Engine. Huibai Wang, Jianfei Wan, Fengquan Zhang

NUMERICAL COUPLING BETWEEN DEM (DISCRETE ELEMENT METHOD) AND FEA (FINITE ELEMENTS ANALYSIS).

CNM 190, pt 2 Advanced Digital Animation Lec 03 : Art Direction on Madagascar / Effects 1

Modeling of Granular Materials

Finite Volume Discretization on Irregular Voronoi Grids

Support for Multi physics in Chrono

Computer animation for fluid simulation of a high viscous fluid melting

Fundamentals of Computer Animation

More Animation Techniques

Dynamical Simulation 1: Particle Systems and ODEs

Cloth Animation with Collision Detection

Simulating Bubbles Michael Running Wolf 4/1/05. Introduction

Anatomy of a Physics Engine. Erwin Coumans

A Framework for Real-Time Animation of Liquid-Rigid Body Interaction

Computer Animation III

Directions: 1) Delete this text box 2) Insert desired picture here

Chapter 5 Modeling and Simulation of Mechanism

Simulating Sinkage & Trim for Planing Boat Hulls. A Fluent Dynamic Mesh 6DOF Tutorial

3D Physics Engine for Elastic and Deformable Bodies. Liliya Kharevych and Rafi (Mohammad) Khan Advisor: David Mount

Cloth Simulation. COMP 768 Presentation Zhen Wei

Physically based modelling Computer Graphics I February 27, 2003

animation computer graphics animation 2009 fabio pellacini 1 animation shape specification as a function of time

animation computer graphics animation 2009 fabio pellacini 1

1.2 Numerical Solutions of Flow Problems

Modeling Cloth Using Mass Spring Systems

Lesson 1: Introduction to Pro/MECHANICA Motion

Smoke Simulation using Smoothed Particle Hydrodynamics (SPH) Shruti Jain MSc Computer Animation and Visual Eects Bournemouth University

Fluid Simulation. [Thürey 10] [Pfaff 10] [Chentanez 11]

Permeable and Absorbent Materials in Fluid Simulations

An added mass partitioned algorithm for rigid bodies and incompressible flows

Particle-based Fluid Simulation

PHYSICALLY BASED ANIMATION

Shape of Things to Come: Next-Gen Physics Deep Dive

Realtime Water Simulation on GPU. Nuttapong Chentanez NVIDIA Research

MODELING AND HIERARCHY

CS4621/5621 Fall Particle Systems and Compute Shaders

Modeling of Granular Materials

Preliminary Spray Cooling Simulations Using a Full-Cone Water Spray

CS 231. Deformation simulation (and faces)

The jello cube. Undeformed cube. Deformed cube

Surgical Cutting on a Multimodal Object Representation

Auto Injector Syringe. A Fluent Dynamic Mesh 1DOF Tutorial

Real-Time Simulation of Deformation and Fracture of Stiff Materials

Real-time haptic display of fluids

Chapter 19- Object Physics

Analysis of Fluid-Structure Interaction Effects of Liquid-Filled Container under Drop Testing

Design of a dynamic simulation system for VR applications

CS 231. Deformation simulation (and faces)

CHAPTER 3. Elementary Fluid Dynamics

Sliding Split Tube Telescope

Mutltiphysics for Ironcad Demonstration Models (Rev. 1.1)

Announcements: Quiz. Animation, Motion Capture, & Inverse Kinematics. Last Time? Today: How do we Animate? Keyframing. Procedural Animation

Transcription:

Rigid Body Dynamics, Collision Response, & Deformation Pop Worksheet! Teams of 2. SOMEONE YOU HAVEN T ALREADY WORKED WITH What are the horizontal and face velocities after 1, 2, and many iterations of divergence adjustment for an incompressible fluid?

Last Time? Navier-Stokes Equations Conservation of Momentum & Mass Incompressible Flow HW2: Cloth & Fluid Simulation Will finally be posted tonight Progress Post #1 due Thursday Sunday@midnight

At each Timestep: Identify which cells are Empty, Full, or on the Surface Compute new velocities Adjust the velocities to maintain an incompressible flow Move the particles Interpolate the velocities at the faces Render the geometry and repeat! Adjusting the Velocities Calculate the divergence of the cell (the extra in/out flow) The divergence is used to update the pressure within the cell Adjust each face velocity uniformly to bring the divergence to zero Image from Iterate across the entire Foster & Metaxas, 1996 grid until divergence is < ε

Calculating/Eliminating Divergence initial flow field after 1 iteration after many iterations (results will vary with different calculation order) corresponding divergence corresponding divergence corresponding divergence Handing Free Surface with MAC Divergence in surface cells: Is divided equally amongst neighboring empty cells Or other similar strategies? Zero out the divergence & pressure in empty cells

At each Timestep: Identify which cells are Empty, Full, or on the Surface Compute new velocities Adjust the velocities to maintain an incompressible flow Move the particles Interpolate the velocities at the faces Render the geometry and repeat! Velocity Interpolation Original image from Foster & Metaxas, 1996 In 2D: For each axis, find the 4 closest face velocity samples: (In 3D Find 8 closest face velocities in each dimension)

Correct Velocity Interpolation NOTE: The complete implementation isn t particularly elegant Storing velocities at face midpoints (req d for conservation of mass) makes the index math messy! No interpolation (just use the left/bottom face velocity) Note the discontinuities in velocity at cell boundaries Correct Interpolation Note that the velocity perpendicular to the outer box is zero Buggy Interpolation Note the clumping particles, and the discontinuities at some of the cell borders (& particles might escape the box!) Reading for Today Realistic Animation of Liquids, Foster & Metaxas, 1996

Reading for Next Time (pick one) Cem Yuksel, Donald H. House, and John Keyser, Wave Particles, SIGGRAPH 2007 Reading for Next Time (pick one) Coupling Water and Smoke to Thin Deformable and Rigid Shells, Guendelman, Selle, Losasso, & Fedkiw, SIGGRAPH 2005.

Reading for Next Time (pick one) Multi-species simulation of porous sand and water mixtures, Pradhana, Gast, Klar, Fu, Teran, Jiang, and Museth, SIGGRAPH 2017. Today Rigid Body Dynamics Collision Response Non-Rigid Objects Finite Element Method Deformation Level-of-Detail

Rigid Body Dynamics How do we simulate this object s motion over time? We could discretize the object into many particles But a rigid body does not deform Only a few degrees of freedom f1(t) Instead, we use f2(t) only one particle at the center of mass Body has velocity and angular velocity f3(t) Compute net force & net torque v(t) x(t) Net Torque Net Force Nice Reference Material: http://www.pixar.com/companyinfo/research/pbm2001/ Degree of Freedom (DOF) Rotations: 1 DOF: knee 2 DOF: wrist 3 DOF: arm Translations count too 6 DOF

Collisions Detection Response Overshooting problem (when we enter the solid) Collision Response tangential velocity vt unchanged normal velocity vn reflects: v N coefficient of restitution 1 for elastic 0 for plastic change of velocity = -(1+є)v change of momentum Impulse = -m(1+є)v

Collisions - Overshooting Usually, we detect collision when it s too late: we re already inside Solutions: back up Compute intersection point Compute response there backtracking Advance for remaining fractional time step fixing Other solution: Quick and dirty fixup Just project back to object closest point Energy & Rigid Body Collisions Total Energy = Kinetic Energy + Potential Energy + Rotational Energy Total Energy stays constant if there is no damping and no friction Rotational Energy is constant between collisions http://www.myphysicslab.com/collision.html

Collision Between Two Objects Suppose a vertex on body A is colliding into an edge of body B at point P. Define the following variables: http://www.myphysicslab.com/collision.html Center of Mass & Moment of Inertia Center of Mass: mean location of all mass in the system Moment of Inertia: a measure of an object's resistance to changes to its rotation If a solid cylinder & a hollow tube have the ame radius & the same mass, which will reach the bottom of the ramp first? http://en.wikipedia.org/wiki/fosbury_flop Liu & Popović http://solomon.physics.sc.edu/~tedeschi/demo/demo12.html http://hyperphysics.phy-astr.gsu.edu/hbase/hoocyl2.html

Advanced Collisions What about friction? What if the contact between two objects is not a single point? What if more than two objects collide simultaneously? Rigid Body Dynamics Physics Velocity Acceleration Angular Momentum Collisions Friction from: Darren Lewis http://www-cs-students.stanford.edu/~dalewis/cs448a/rigidbody.html

Collisions Victor J. Milenkovic & Harald Schmidl Optimization-Based Animation SIGGRAPH 2001 We know how to simulate bouncing really well But resting collisions are harder to manage Guendelman, Bridson & Fedkiw Nonconvex Rigid Bodies with Stacking SIGGRAPH 2003 Today Rigid Body Dynamics Collision Response Non-Rigid Objects Finite Element Method Deformation Level-of-Detail

Simulation of Non-Rigid Objects We modeled string & cloth using mass-spring systems. Can we do the same? Yes But a more physically accurate model uses volumetric elements: Image from O Brien et al. 1999 Strain & Stress Stress the internal distribution of forces within a body that balance and react to the loads applied to it normal stress & shear stress http://en.wikipedia.org/wiki/image:stress_tensor.png Strain material deformation caused by stress. measured by the change in length of a line or by the change in angle between two lines

Finite Element Method To solve the continuous problem (deformation of all points of the object) Discretize the problem Express the interrelationship Solve a big linear system More principled than Mass-Spring object finite elements large matricial system Diagram from Debunne et al. 2001 Today Rigid Body Dynamics Collision Response Non-Rigid Objects Finite Element Method Deformation Level-of-Detail

Level of Detail Interactive shape deformation Use highresolution model only in areas of extreme deformation Gilles Debunne, Mathieu Desbrun, Marie-Paule Cani, & Alan H. Barr Dynamic Real-Time Deformations using Space & Time Adaptive Sampling SIGGRAPH 2001 Multi-Resolution Deformation Use Voronoi diagrams to match parent & child vertices. Interpolate values for inactive interface vertices from active parent/child vertices Need to avoid interference of vibrations between simulations at different resolutions Debunne et al. Dynamic Real-Time Deformations using Space & Time Adaptive Sampling, 2001

Pre-computation & Simulation FEM matrix pre-computed Level of detail coupling pre-computed for rest topology What to do if connectivity of elements changes? Cloth is cut or torn Surgery simulation Multiple Materials Mueller, Dorsey, McMillan, Jagnow, & Cutler Stable Real-Time Deformations Symposium on Computer Animation 2002

Tree Stump Images from Cutler et al. 2002 Image from Cutler et al. 2002

Image from Cutler et al. 2002 Reading for Next Week... James O Brien & Jessica Hodgins Graphical Modeling and Animation of Brittle Fracture SIGGRAPH 1999. Fracture threshhold Remeshing need connectivity info! Material properties Parameter tuning