Physically Based Modeling Let physics take over!.

Slides:



Advertisements
Similar presentations
AP Physics C Mechanics Review.
Advertisements

Net Force.
The Law of Inertia. Objects at rest remain at rest unless acted upon by an outside force. Objects in motion will remain in motion unless acted upon by.
1 Computer Graphics Physical simulation for animation Case study: The jello cube The Jello Cube Mass-Spring System Collision Detection Integrators.
Science Starter! Draw a free-body diagram for: 1)A chair at rest on the floor. 2) A ball rolling to the right and slowing down across a grassy field.
1Notes. 2 Building implicit surfaces  Simplest examples: a plane, a sphere  Can do unions and intersections with min and max  This works great for.
MAT 594CM S10Fundamentals of Spatial ComputingAngus Forbes Week 2 : Dynamics & Numerical Methods Goal : To write a simple physics simulation Topics: Intro.
Particle Systems 1 Adapted from: E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012.
ME Robotics Dynamics of Robot Manipulators Purpose: This chapter introduces the dynamics of mechanisms. A robot can be treated as a set of linked.
Interactive Animation of Structured Deformable Objects Mathieu Desbrun Peter Schroder Alan Barr.
Dynamics Why and how an object moves? Newton’s Laws.
Physics 121 Topics: Course announcements Quiz Newton’s Law of Motion: Force Newton’s First, Second, and Third Law of Motion Problem Solving Strategies.
Physics 218: Mechanics Instructor: Dr. Tatiana Erukhimova Sections 818, 819, 820, 821 Lecture 10.
Frank L. H. WolfsDepartment of Physics and Astronomy, University of Rochester Physics 121. February 5, My favorite airline.
Particle Systems Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University.
Computer graphics & visualization Rigid Body Simulation.
Newton’s First Law Mathematical Statement of Newton’s 1st Law:
Mechanical Energy and Simple Harmonic Oscillator 8.01 Week 09D
Vectors 1D kinematics 2D kinematics Newton’s laws of motion
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Physically Based Animation.
Physically Based Animation and Modeling
GRAPHS  INTERPRET  MEASURE SLOPE  -INSATATANEOUS AND AVERAGE  MEASURE AREA.
Spring Topic Outline for Physics 1 Spring 2011.
Cloth Simulation By Chris Szendrovits o based on Jim Adams “Soft Body Mesh” demo.
7.1 Integral As Net Change Quick Review What you’ll learn about Linear Motion Revisited General Strategy Consumption Over Time Net Change from Data.
Game Physics – Part I Dan Fleck Coming up: Rigid Body Dynamics.
Give the expression for the velocity of an object rolling down an incline without slipping in terms of h (height), M(mass), g, I (Moment of inertia) and.
Reference Book is.
Chapter 13: Oscillatory Motions
CS559: Computer Graphics Lecture 38: Animation Li Zhang Spring 2008 Slides from Brian Curless at U of Washington.
Equation of Motion for a Particle Sect nd Law (time independent mass): F = (dp/dt) = [d(mv)/dt] = m(dv/dt) = ma = m(d 2 r/dt 2 ) = m r (1) A 2.
Equations for Projectile Motion
Advanced Computer Graphics Rigid Body Simulation Spring 2002 Professor Brogan.
CENTRIPETAL FORCE Centripetal Force is the force required to change the direction of a moving object. Newton’s 1 st Law version 2.0: An object at rest.
Forces Chapter 6.1. What You Already Learned Velocity is the ratio of the change in position of an object over a period of time. Acceleration describes.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Physics for Games Spring 2012.
1 Ch 11 Forces 11.1 Forces Change Motion. 2 A force is a push or pull –Some require contact between objects, such as friction –Some act at a distance,
Sect. 1.2: Mechanics of a System of Particles Generalization to many (N) particle system: –Distinguish External & Internal Forces. –Newton’s 2 nd Law.
Physics 211 Force and Equilibrium Hookes Law Newtons Laws Weight Friction Free Body Diagrams Force Problems 4: Classical Mechanics - Newtons Laws.
1 Two of Newton’s Law of Motions 1) In the absence of any forces applied, an object at rest will stay at rest, and a body moving at a constant velocity.
Rigid Body Dynamics CSE169: Computer Animation
SECTION Madison Evans, Mitchell Peters, Ryder Briggs.
Game Technology Animation V Generate motion of objects using numerical simulation methods Physically Based Animation.
Chapter 1: Survey of Elementary Principles
Advanced Games Development Game Physics CO2301 Games Development 1 Week 19.
3.1 Dynamics p Review of Newton’s Laws of Motion Newton’s First Law of Motion If there is no net force acting on a body, it will continue to move.
Forces - basic physics Gravity Friction - static and kinetic Viscosity
Computer Graphics Imaging Ying Zhu Georgia State University Lecture 29 Soft Bodies and Rigid Bodies.
PHY 151: Lecture Motion of an Object attached to a Spring 12.2 Particle in Simple Harmonic Motion 12.3 Energy of the Simple Harmonic Oscillator.
Fall 2011 PHYS 172: Modern Mechanics Lecture 4 – Physical Models, Fundamental Interactions Read 2.7–2.8,
Test – What to study The test will cover things we have done in class up to Lecture 9 Momentum will NOT be on the test Please look over old test (available.
Balanced and Unbalanced Forces
Forces - basic physics Gravity Friction - static and kinetic Viscosity
Forces - basic physics Springs (Hooke’s law) Damping Gravity
Simple Harmonic Motion
Forces.
ENGR 214 Chapter 14 Systems of Particles
Oscillatory Motion Periodic motion Spring-mass system
IMPULSE AND MOMENTUM When ever things collide, I’ve heard,
Integral as Net Change.
Physically Based Animation and Modeling
Forces in One Dimension
Gravitational field strength = 9.81 m/s2 on Earth
Advanced Games Development Game Physics
BELLRINGER.
BELLRINGER.
Ch. 12 Waves pgs
Simple Harmonic Motion and Wave Interactions
Net Force.
Presentation transcript:

Physically Based Modeling Let physics take over!

Physically Based Modeling Account for forces in system Account for object interaction, e.g. friction, collision

Spring-Mass-Damper Model: jello, cloth, muscle –Have gravity: add mass to vertices –Have stability (add stiffness to flag pole) –Put springs on each vertex, allowing to stretch a finite amount –Another use: angular springs on polygon corners to prevent self-penetration –Numerical integration for animation

Governing Equations Hooke’s Law (for graphics): F s = k s (dist-len) where –len = rest length –dist = current length – k s = spring constant F ij = -F ji = k s (dist ij (t) – len ij )d ij –Where d ij = unit vector along i-j –t = time F s = Σ F ij (sum of all edges coming out of a vertex) V1V1 V2V2 V3V3 E 12 E 31 E 23 Look at neighbors when calculating spring force! V F

Damping Force & Angular Springs F D = -k d v(t) Damper force is proportional to velocity and acts in direction opposite to velocity NET FORCE: F = Fs + Fd = k s (dist-len) -k d v(t) Angular spring: τ (torque) = k s [Ө(t) -Ө(rest)] - k d Ө(t) M1M1 M2M2

Object Representation Vertices: mass Edges: –Spring, damping constant –Resting length –Vertex IDs Each vertex has –Current position –Current velocity –Current acceleration –Mass –Number of edges X, Y, Z components

How it all comes together Use Newton’s Law (F = ma) to calculate acceleration for every vertex (big system of linear equations) Basic strategy: accumulate acceleration from different sources (Gravity, Spring, Damper) and integrate 2 times to get velocity and position –Can use Runge-Kutta, for example For project: you can use xspringies (2D) & ODE library or other library you can find or roll your own Make sure to cite your sources

Details (source Paul Bourke) Create the particles Create the springs between the particles Initialize the particle and spring parameters loop in time { Update the particle positions (solve ODEs) Display the results somehow }

Update Particle Positions Calculate force at each point –Add Positive force: Force*mass for each X,Y,Z –Subtract Drag: drag*velocity for each X,Y,Z –Handle spring interaction For each spring –For each of X,Y,Z of attached points »Force = Hooke’s law »Force += damping constant(Δvelocity of points)(Δlen of points in direction)/len x,y,z »Force *= -(Δlen of points)/len x,y,z »Add or subtract force to/from point (if the point is not fixed)

Calculate derivatives for points We already have velocities: –dp x /dt = velocity x Velocity derivative: –dv x /dt = force x /mass And solve with your favorite ODE solver (Runge-Kutta..) –Update positions –Update velocity