Numerical Integration for physically based animation

Slides:



Advertisements
Similar presentations
Lecture on Numerical Analysis Dr.-Ing. Michael Dumbser
Advertisements

Chapter 6 Differential Equations
A TASTE OF CHAOS By Adam T., Andy S., and Shannon R.
MATLAB EXAMPLES Initial-value problems
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L8&9 KFUPM.
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
MAT 594CM S10Fundamentals of Spatial ComputingAngus Forbes Week 2 : Dynamics & Numerical Methods Goal : To write a simple physics simulation Topics: Intro.
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
Numerical Solutions of Ordinary Differential Equations
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
NUMERICAL DIFFERENTIATION The derivative of f (x) at x 0 is: An approximation to this is: for small values of h. Forward Difference Formula.
Applications of Calculus. The logarithmic spiral of the Nautilus shell is a classical image used to depict the growth and change related to calculus.
Chapter 2 Preview Objectives One Dimensional Motion Displacement
Game Physics – Part IV Moving to 3D
Erin Catto Blizzard Entertainment Numerical Integration.
Chapter 17 Boundary Value Problems. Standard Form of Two-Point Boundary Value Problem In total, there are n 1 +n 2 =N boundary conditions.
Introduction to Numerical Analysis I MATH/CMPSC 455 Fall 2011 Instructor: Xiaozhe Hu (Shawn)
CSE 541 Rick Parent ELEMENTARY NUMERICAL METHODS Winter 2012.
Numerical Integration and Rigid Body Dynamics for Potential Field Planners David Johnson.
Computer Animation Algorithms and Techniques
CSE 3802 / ECE 3431 Numerical Methods in Scientific Computation
Lecture Fall 2001 Physically Based Animation Ordinary Differential Equations Particle Dynamics Rigid-Body Dynamics Collisions.
Numerical Methods for Solving ODEs Euler Method. Ordinary Differential Equations  A differential equation is an equation in which includes derivatives.
Integration for physically based animation CSE 3541 Matt Boggus.
Abj 4.2.2: Pressure, Pressure Force, and Fluid Motion Without Flow [Q2 and Q3] Area as A Vector Component of Area Vector – Projected Area Net Area.
PS 5-3 Integration –Discrete data –Polynomial functions Differentiation –Discrete data –Polynomial functions Roots (i.e., zeros) of functions –Polynomial.
Trajectory Generation
Mr.Rockensies Regents Physics
DIFFERENTIAL EQUATIONS Note: Differential equations are equations containing a derivative. They can be solved by integration to obtain a general solution.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Game Technology Animation V Generate motion of objects using numerical simulation methods Physically Based Animation.
Theoretical Mechanics KINEMATICS * Navigation: Right (Down) arrow – next slide Left (Up) arrow – previous slide Esc – Exit Notes and Recommendations:
Sec 21: Generalizations of the Euler Method Consider a differential equation n = 10 estimate x = 0.5 n = 10 estimate x =50 Initial Value Problem Euler.
UW EXTENSION CERTIFICATE PROGRAM IN GAME DEVELOPMENT 2 ND QUARTER: ADVANCED GRAPHICS Advanced Math.
Particle Kinematics Direction of velocity vector is parallel to path Magnitude of velocity vector is distance traveled / time Inertial frame – non accelerating,
Fundamentals of Computer Animation Rigid Body Simulation (1)
ECE 383 / ME 442 Fall 2015 Kris Hauser
The student is expected to:
NUMERICAL DIFFERENTIATION Forward Difference Formula
Forces - basic physics Springs (Hooke’s law) Damping Gravity
525602:Advanced Numerical Methods for ME
Integral as Net Change Chapter 8.1.
Numerical integration for physically based animation
Class Notes 18: Numerical Methods (1/2)
Class Notes 19: Numerical Methods (2/2)
Vector Field Visualization
Introduction.
Chapter 23.
Section 1 Displacement and Velocity
Find the velocity of a particle with the given position function
ORBITAL Trajectories!!! Made by Karol Sanchez
Rigid Body Dynamics (unconstrained)
Numerical Analysis Lecture 37.
Section 1 Displacement and Velocity
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L2.
5.3 Higher-Order Taylor Methods
Numerical solution of first-order ordinary differential equations
VIRTUAL ENVIRONMENT.
Outline: 5.1 INTRODUCTION
Notes for Analysis Et/Wi
Describing Motion: Kinematics in One Dimension
Computer Animation Algorithms and Techniques
Introduction CSE 541.
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L1 KFUPM.
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Uncertainty Propagation
Presentation transcript:

Numerical Integration for physically based animation CSE 3541 Matt Boggus

Recording motion First, save a moving object’s position over time. Then, given time, look up position ; y = f(time) Plot roughly based on dropping a non very bouncy ball

Kinematics terms Position (x,y,z) Velocity (x,y,z) Point with respect to the origin Velocity (x,y,z) Speed (vector magnitude) Direction Acceleration (x,y,z) Rate of change of velocity Magnitude and direction r Kinematics - the branch of mechanics concerned with the motion of objects without reference to the forces that cause the motion.

Problem statement Known current position and velocity i.e. values at start of Update() Unknown “next” position and velocity i.e. what should values be at end of Update() Current forces or acceleration is known Integrate to compute “next” velocity and position Compute an unknown function f(time), using its known derivative f’(time)

Example Initial conditions: acceleration Initial conditions: p = 0, v = 5 If we have the function for acceleration, we can integrate it and use initial conditions to solve for the velocity and position functions velocity position

Step in the direction of the derivative Euler integration For arbitrary function f (ti) with known derivative Step in the direction of the derivative

Integration – derivative field For arbitrary function, f(t) Ex: wind, springs The force acting on a point may vary in space, i.e. in most cases

Sampling A fixed amount of time passes between frames. Approximate the continuous position curve with discrete samples.

Integration and step size Here x is the same thing as time or t in the previous slides

Inaccuracy and instability

Runge Kutta Integration: 2nd order aka Midpoint Method Compute a “full” Euler step Evaluate f’ at midpoint Take a step from the original point using the midpoint f’ value

Runge Kutta Integration: 2nd order aka Midpoint Method For unknown function, f(t); known f ’(t)

Step size Euler Integration Midpoint Method

Integration comparison Image from http://www.physics.drexel.edu/students/courses/Comp_Phys/Integrators/simple.html

Integration comparison Image based on http://www.physics.drexel.edu/students/courses/Comp_Phys/Integrators/simple.html

Integration comparison Image based on http://www.physics.drexel.edu/students/courses/Comp_Phys/Integrators/simple.html

Additional slides

Other integration techniques Implicit Euler Huen Verlat Leapfrog

CSE course Numerical Methods (5361) - http://coe-portal.cse.ohio-state.edu/pdf-exports/CSE/CSE-5361.pdf (541) from quarter system - http://web.cse.ohio-state.edu/~crawfis/cse541/index.html

List of 5361/541 topics Mathematical Preliminaries: Derivatives, Taylor Series Representation of Numbers: Accuracy, Precision Root Finding Polynomial Interpolation Numerical Differentiation Numerical Integration Random Numbers and Monte-Carlo Techniques Linear Systems and Gaussian Elimination