Computer graphics & visualization Rigid Body Simulation.

Slides:



Advertisements
Similar presentations
AP Physics C Mechanics Review.
Advertisements

Lectures D25-D26 : 3D Rigid Body Dynamics
Rigid Body Dynamics Jim Van Verth
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Chris Hall Aerospace and Ocean Engineering
Rotational Equilibrium and Rotational Dynamics
Chapter 9 Rotational Dynamics.
 Angular speed, acceleration  Rotational kinematics  Relation between rotational and translational quantities  Rotational kinetic energy  Torque 
Chapter 11 Angular Momentum.
Chapter 8 Rotational Equilibrium and Rotational Dynamics.
Rotational Dynamics Chapter 9.
© 2005 Pearson Prentice Hall This work is protected by United States copyright laws and is provided solely for the use of instructors in teaching their.
Dynamics of Articulated Robots Kris Hauser CS B659: Principles of Intelligent Robot Motion Spring 2013.
Physics 7B Lecture 824-Feb-2010 Slide 1 of 31 Physics 7B-1 (A/B) Professor Cebra Rotational Kinematics and Angular Momentum Conservation Winter 2010 Lecture.
Chapter 10: Rotation. Rotational Variables Radian Measure Angular Displacement Angular Velocity Angular Acceleration.
Ch. 7: Dynamics.
Game Physics Chris Miles. The Goal To learn how to create game objects with realistic physics models To learn how to simulate aspects of reality in order.
Chapter Eight Rotational Dynamics Rotational Dynamics.
Rigid Bodies Rigid Body = Extended body that moves as a unit Internal forces maintain body shape Mass Shape (Internal forces keep constant) Volume Center.
1 Lecture #4 Angular Momentum And moment of inertia And torque And Central force Moment of Inertia Difference between it and CM Worked examples :10.
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Mechanics of Rigid Bodies
Physics 1A, Section 2 November 15, Translation / Rotation translational motionrotational motion position x angular position  velocity v = dx/dt.
Angular Momentum. Inertia and Velocity  In the law of action we began with mass and acceleration F = maF = ma  This was generalized to use momentum:
Final exam: room 105 HECC, 8-10 am, Wednesday, December 12 th.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Physically Based Animation.
Rotation and angular momentum
Spring Topic Outline for Physics 1 Spring 2011.
Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Chapter 11 Angular Momentum. The Vector Product There are instances where the product of two vectors is another vector Earlier we saw where the product.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Spring Rigid Body Simulation. Spring Contents Unconstrained Collision Contact Resting Contact.
Sect 5.4: Eigenvalues of I & Principal Axis Transformation
Chapter 9: Rotational Dynamics
Numerical Integration and Rigid Body Dynamics for Potential Field Planners David Johnson.
Lecture Fall 2001 Physically Based Animation Ordinary Differential Equations Particle Dynamics Rigid-Body Dynamics Collisions.
Chapter 17 PLANE MOTION OF RIGID BODIES: ENERGY AND MOMENTUM METHODS
Rotational Mechanics. Rotary Motion Rotation about internal axis (spinning) Rate of rotation can be constant or variable Use angular variables to describe.
Advanced Computer Graphics Rigid Body Simulation Spring 2002 Professor Brogan.
Chapter 11 Angular Momentum. Angular momentum plays a key role in rotational dynamics. There is a principle of conservation of angular momentum.  In.
Spring Rigid Body Simulation. Spring Contents Unconstrained Collision Contact Resting Contact.
The Spinning Top Chloe Elliott. Rigid Bodies Six degrees of freedom:  3 cartesian coordinates specifying position of centre of mass  3 angles specifying.
Sect. 1.2: Mechanics of a System of Particles Generalization to many (N) particle system: –Distinguish External & Internal Forces. –Newton’s 2 nd Law.
1 Work in Rotational Motion Find the work done by a force on the object as it rotates through an infinitesimal distance ds = r d  The radial component.
CS274 Spring 01 Lecture 7 Copyright © Mark Meyer Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Rigid Body Dynamics CSE169: Computer Animation
Chapter 1: Survey of Elementary Principles
Advanced Games Development Game Physics CO2301 Games Development 1 Week 19.
Rick Parent - CIS682 Rigid Body Dynamics simulate basic physics of an object subject to forces Keyframing can be tedious - especially to get ‘realism’
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Dynamics. Motion with Regard to Mass Particle Dynamics Mass concentrated in point Newton’s Equation Governs Motion f = M x.
1 7. Rotational motion In pure rotation every point of an object moves in a circle whose center lies on the axis of rotation (in translational motion the.
1 Angular Momentum Chapter 11 © 2012, 2016 A. Dzyubenko © 2004, 2012 Brooks/Cole © 2004, 2012 Brooks/Cole Phys 221
UNIT 6 Rotational Motion & Angular Momentum Rotational Dynamics, Inertia and Newton’s 2 nd Law for Rotation.
Advanced Computer Graphics Rigid Body Simulation
ECE 383 / ME 442 Fall 2015 Kris Hauser
Physically Based Simulations For Games
Chapter 9 Rotational Dynamics.
Ch 8 : Rotational Motion .
Lecture Rigid Body Dynamics.
Lecture 16 Newton Mechanics Inertial properties,Generalized Coordinates Ruzena Bajcsy EE
College Physics, 7th Edition
Mg x L.
Rotational Motion.
Angular Momentum.
Manipulator Dynamics 2 Instructor: Jacob Rosen
Advanced Computer Graphics Spring 2008
Rigid Body Dynamics (unconstrained)
Physics 319 Classical Mechanics
Presentation transcript:

computer graphics & visualization Rigid Body Simulation

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group The next few lectures…

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Comming up… Point Dynamics no extendno extend only positiononly position Rigid Bodies extendedextended positioned & orientedpositioned & oriented „a set of points“„a set of points“

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Dynamic simulation Movement of point masses, rigid bodies, systems of point masses etc. with respect to – Forces – Body charcteristics (mass, shape) – Derivation of accelerations from properties and physical laws Dynamic of point masses Dynamic of rigid bodies

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Dynamic simulation Newtons Axioms – Without external forces, a body moves uniformly (Inertia) – An external force F applied to a mass m results in an acceleration a: F = ma – Actio = reactio

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Now… Point Dynamics no extendno extend no orientationno orientation Rigid Bodies ExtendedExtended OrientedOriented „a set of points“„a set of points“

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Point dynamics Dynamic simulation of particles – Position r, mass m, velocity v, acceleration a, but no extend – Forces F act on particles F,a,v,r are 3D vectors!!!

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Point dynamics Dynamic simulation of particles – Multiple forces may act on particles Forces are added by vector addition – F is usually a function of time – Mass might change as well Change of momentum (Impuls) with change of time

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Point dynamics Particles have no internal structure 3 DOF = degrees of freedom (position only) Direct kinematic: from a  v  r Indirect kinematic: from r and boundary conditions  v  a

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Point dynamics Relation between force F and acceleration a Direct dynamics Point mass

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Point dynamics Important Forces – Gravity – Hooke's Law – Friction

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Point dynamics Linear momentum (Impuls) – Force F act on center of mass Force Conservation of momentum Example: elastic push

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Point dynamics Angular momentum (Drall) Torque (Drehmoment) Conservation of angular momentum r p Moment of inertia: I = mr 2

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Point dynamics Angular velocity of a point (rate at which the point is rotating): magnitude of change Notation:

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Point dynamics Analog for rotation matrix R - it changes under angular velocity Aggregate movement of a body point – (r 0 /r(t): position in local/world space coordinate system)

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Point dynamics Relation between angular momentum and angular velocity Inertia tensor I (Trägheitstensor) Symmetric tensor Example: Skater

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Point dynamics Summary TranslationRotation Position r Angle  velocity v Angular velocity  Momentum p Angular momentum L Force F Torque T

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Next… Point Dynamics no extendno extend no orientationno orientation Rigid Bodies ExtendedExtended OrientedOriented „a set of points“„a set of points“

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Idea – Combination of many small particles to a rigid body – Bodies that do not deform – they are stiff – They do not penetrate – They bounce back if they collide – Rigid convex polyhedra of constant density – 6 DOF instead of 3n DOF (for n particles) Distinguish between – Movement of center of mass (CM) – Rotation around (CM)

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Mass M in continuous case small, discrete mass points Volume integral over entire body Mass density (= specific weight = Mass/Volume)

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation CM (center of mass) in continuous case

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Dynamic simulation of rigid bodies – Motion consist of translational and angular component – Velocity v(t) is rate of change of position r(t) over time v(t) = r´(t) v(t) is linear velocity at center of mass – Bodies also have a spin About an axis (vector) through the center of mass Magnitude of the vector defines how fast the body is spinning

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Translation and Rotation: Rotation R: – 3*3 Matrix – Redundancies – only 3 DOF CM local/fixed coordinate system

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Translation Rotation

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Momentum Movement of CM Force F ext is sum of all external forces R F ext,i F ext

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Angular momentum Inertia tensor I

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Angular momentum Inertia tensor I in continuous case Kronecker-symbol x,y,z coordinates

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Translation vs. Rotation MassInertia Moment (Trägheitsmoment) m VelocityAngular Velocity v =dr/dt  = d  /dt MomentumAngular Momentum p = mv L = I  = r x p ForceTorque F = dp/dt T = r x F = dL/dt Kinetc EnergyKinetic Energy E = ½ mv 2 E = ½ I  2 Rigid body simulation

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Properties of the Inertia tensor – Diagonal elements are moments of inertia with respect to coordinate axes – It is symmetric and real Has three principal axis (eigenvectors) Eigenvectors are orthogonal: directions of inertia (Hauptträgheitsachsen) Eigenvalues are real: moments of inertia (Hauptträgheitsmomente)

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Inertia tensor – In this (directions of inertia) coordinate system, I can be diagonalized by RIR T, where R is a rotation matrix: Inertia moment (scalar) for rotation around axis n (normalized)

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Torque of single „body element“ Total torque Important: starting point of force Equations of motion for rotation (Euler equations for fixed coordinate system)

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation State vector of a rigid body Constants: – Inertia tensor I KS – Mass M Position Orientation (rotation matrix) Impuls Angular momentum

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Derived variables

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Equations of motion

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation System of ordinary partial differential equations Initial boundary problem Structure In general, numeric solution (Integration) – Explicit solve: Euler, Runge-Kutta – Implicit solver

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Numerical Integration Initial value problem: Simple approach: Euler Derivation: Taylor expansion First order scheme Higher accuracy with smaller step size

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Numerical Integration Problems of Euler-Scheme Inaccurate Unstable Example: Divergenz für  t > 2/k

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Numerical Integration Midpoint method: 1. Euler-Step 2. Evaluation of f at midpoint 3. Step with value at midpoint Second order scheme

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Numerical Integration Fourth order Runge-Kutta Adaptive step size control

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Numerical Integration So far: Explicit techniques Stable integration by means of implicit integration schemes Implicit Euler-Step „rewind“ the explicit Euler-Step Taylor-expansion around t +  t instead of t Solving the non-linear system of equations for x(t +  t)

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Demo

computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization Group Rigid body simulation Summary Torque T Forces F ext Angular moment L Impuls p CM Angular velocity  Velocity v CM Orientation R Position r CM RotationTranslation Inertia tensor  Mass M