Geometric Constraints

Similar documents
2.5 Physically-based Animation

An Introduction to Physically Based Modeling: Constrained Dynamics

SOFA an Open Source Framework for Medical Simulation

Position Based Dynamics

Solving Simultaneous Equations and Matrices

(a) We have x = 3 + 2t, y = 2 t, z = 6 so solving for t we get the symmetric equations. x 3 2. = 2 y, z = 6. t 2 2t + 1 = 0,

Figure 1.1 Vector A and Vector F

STATICS. Introduction VECTOR MECHANICS FOR ENGINEERS: Eighth Edition CHAPTER. Ferdinand P. Beer E. Russell Johnston, Jr.

Dynamic Simulation of Non-penetrating Flexible Bodies

The equivalence of logistic regression and maximum entropy models

CG T17 Animation L:CC, MI:ERSI. Miguel Tavares Coimbra (course designed by Verónica Orvalho, slides adapted from Steve Marschner)

Volumetric Meshes for Real Time Medical Simulations

Physics 9e/Cutnell. correlated to the. College Board AP Physics 1 Course Objectives

Graphics. Computer Animation 고려대학교 컴퓨터 그래픽스 연구실. kucg.korea.ac.kr 1

Proof of the conservation of momentum and kinetic energy

Dynamics. Basilio Bona. DAUIN-Politecnico di Torino. Basilio Bona (DAUIN-Politecnico di Torino) Dynamics / 30

Vector Spaces; the Space R n

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

521493S Computer Graphics. Exercise 2 & course schedule change

Nonlinear analysis and form-finding in GSA Training Course

Kinematics & Dynamics

Design-Simulation-Optimization Package for a Generic 6-DOF Manipulator with a Spherical Wrist

Force/position control of a robotic system for transcranial magnetic stimulation

Elasticity Theory Basics

Numerical Analysis An Introduction

The Basics of FEA Procedure

(Refer Slide Time: 1:42)

ABSTRACT 1. INTRODUCTION

Mechanics 1: Conservation of Energy and Momentum

Mathematical Modeling and Engineering Problem Solving

Metrics on SO(3) and Inverse Kinematics

CHAPTER 3. INTRODUCTION TO MATRIX METHODS FOR STRUCTURAL ANALYSIS

Off-line Model Simplification for Interactive Rigid Body Dynamics Simulations Satyandra K. Gupta University of Maryland, College Park

DINAMIC AND STATIC CENTRE OF PRESSURE MEASUREMENT ON THE FORCEPLATE. F. R. Soha, I. A. Szabó, M. Budai. Abstract

Vectors. Objectives. Assessment. Assessment. Equations. Physics terms 5/15/14. State the definition and give examples of vector and scalar variables.

animation animation shape specification as a function of time

THEORETICAL MECHANICS

SPECIAL PERTURBATIONS UNCORRELATED TRACK PROCESSING

Piecewise Cubic Splines

Lecture PowerPoints. Chapter 7 Physics: Principles with Applications, 6 th edition Giancoli

Chapter 4 One Dimensional Kinematics

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus

Computational Optical Imaging - Optique Numerique. -- Deconvolution --

Lecture 07: Work and Kinetic Energy. Physics 2210 Fall Semester 2014

the points are called control points approximating curve

Today. Keyframing. Procedural Animation. Physically-Based Animation. Articulated Models. Computer Animation & Particle Systems

Computer Graphics. Geometric Modeling. Page 1. Copyright Gotsman, Elber, Barequet, Karni, Sheffer Computer Science - Technion. An Example.

Dipartimento di Tecnologie dell Informazione Università di MIlano. Physics Engines LOGO

Introduction Epipolar Geometry Calibration Methods Further Readings. Stereo Camera Calibration

Interactive simulation of an ash cloud of the volcano Grímsvötn

The dynamic equation for the angular motion of the wheel is R w F t R w F w ]/ J w

Curves and Surfaces. Goals. How do we draw surfaces? How do we specify a surface? How do we approximate a surface?

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS

Behavioral Animation Modeling in the Windows Environment

VELOCITY, ACCELERATION, FORCE

Basic numerical skills: EQUATIONS AND HOW TO SOLVE THEM. x + 5 = = (2-2) = = 5. x = 7-5. x + 0 = 20.

Algebra Unpacked Content For the new Common Core standards that will be effective in all North Carolina schools in the school year.

Lab #4 - Linear Impulse and Momentum

Interactive Computer Graphics

Modelling 3D Avatar for Virtual Try on

EMOT Evolutionary Approach to 3D Computer Animation

Kyu-Jung Kim Mechanical Engineering Department, California State Polytechnic University, Pomona, U.S.A.

EMOT Evolutionary Approach to 3D Computer Animation

Onboard electronics of UAVs

TWO-DIMENSIONAL FINITE ELEMENT ANALYSIS OF FORCED CONVECTION FLOW AND HEAT TRANSFER IN A LAMINAR CHANNEL FLOW

NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS

Kinematical Animation

Numerical Solution of Differential Equations

How To Understand The Dynamics Of A Multibody System

DIRECT ORBITAL DYNAMICS: USING INDEPENDENT ORBITAL TERMS TO TREAT BODIES AS ORBITING EACH OTHER DIRECTLY WHILE IN MOTION

Whole-body dynamic motion planning with centroidal dynamics and full kinematics

Performance Driven Facial Animation Course Notes Example: Motion Retargeting

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

F1 Fuel Tank Surging; Model Validation

Linear Threshold Units

OpenFOAM Optimization Tools

Chapter 6 Work and Energy

Introduction to Engineering System Dynamics

animation shape specification as a function of time

BX in ( u, v) basis in two ways. On the one hand, AN = u+

Computer Animation. Lecture 2. Basics of Character Animation

Finite Element Method (ENGC 6321) Syllabus. Second Semester

Math Common Core Sampler Test

EXAMPLE 8: An Electrical System (Mechanical-Electrical Analogy)

1 of 7 9/5/2009 6:12 PM

In mathematics, there are four attainment targets: using and applying mathematics; number and algebra; shape, space and measures, and handling data.

Dynamic Process Modeling. Process Dynamics and Control

Physics 235 Chapter 1. Chapter 1 Matrices, Vectors, and Vector Calculus

DELAWARE MATHEMATICS CONTENT STANDARDS GRADES PAGE(S) WHERE TAUGHT (If submission is not a book, cite appropriate location(s))

3. KINEMATICS IN TWO DIMENSIONS; VECTORS.

Advanced Topics in Animation - Seminar. Introduction. Matthias Teschner. Computer Science Department University of Freiburg

COMPETENCY GOAL 1: The learner will develop abilities necessary to do and understand scientific inquiry.

State of Stress at Point

Orbital Mechanics. Angular Momentum

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

Visualization of General Defined Space Data

Gravitational Potential Energy

1. Fluids Mechanics and Fluid Properties. 1.1 Objectives of this section. 1.2 Fluids

Two vectors are equal if they have the same length and direction. They do not

Transcription:

Simulation in Computer Graphics Geometric Constraints Matthias Teschner Computer Science Department University of Freiburg

Outline introduction penalty method Lagrange multipliers local constraints University of Freiburg Computer Science Department Computer Graphics - 2

Constraint Dynamics geometric constraints restrict the mass-point movement keep a mass point at a position keep two mass points at a distance keep a mass point on a curve, a surface or in a volume in constraint dynamics, mass points obey Newton's laws and geometric constraints constraint forces explicitly maintain a constraint or implicitly transform accelerations into consistent accelerations University of Freiburg Computer Science Department Computer Graphics - 3

Applications constraint techniques are applied in robotics graphical manipulation keyframe animation collision handling, resting contact articulated rigid bodies University of Freiburg Computer Science Department Computer Graphics - 4

Demos University of Freiburg Computer Science Department Computer Graphics - 5

Global vs. Local Approaches global methods solve for all constraints simultaneously minimization techniques handle conflicting constraints useful for rigid bodies with a small number of degrees of freedom local methods constraints are handled independently efficient restricted to non-conflicting constraints useful for mass-point systems with a large number of degrees of freedom University of Freiburg Computer Science Department Computer Graphics - 6

Classification penalty method global method introduces forces to meet a constraint Lagrange multiplier global method cancel force components that act against a constraint local constraints local method introduce forces to meet a constraint University of Freiburg Computer Science Department Computer Graphics - 7

Outline introduction penalty method Lagrange multipliers local constraints University of Freiburg Computer Science Department Computer Graphics - 8

Principle compute forces from geometric constraints (principle already known from generalized springs) define a constraint that depends on mass point positions iff the constraint is met University of Freiburg Computer Science Department Computer Graphics - 9

Penalty Forces potential energy based on constraint iff the constraint is met iff the constraint is not met force at mass point based on the potential energy University of Freiburg Computer Science Department Computer Graphics - 10

Example 2D pendulum mass point at distance to the origin penalty force corresponds to a spring force keeping at the given distance University of Freiburg Computer Science Department Computer Graphics - 11

Discussion constraints are not accurately met penalty force is induced only if the constraint is not met effect of the penalty force depends on masses, velocities, external forces, and time step which are not considered in the force computation predictor-corrector or implicit schemes improve the accuracy compute a prediction step compute penalty forces based on predicted quantities apply penalty forces to the current time step (corrector step) University of Freiburg Computer Science Department Computer Graphics - 12

Outline introduction penalty method Lagrange multipliers local constraints University of Freiburg Computer Science Department Computer Graphics - 13

Principle instead of applying a penalty force too late, illegal force components are removed force components that act against a constraint are cancelled by the constraint force University of Freiburg Computer Science Department Computer Graphics - 14

Principle if a constraint is met, then in order to meet the constraint in the future, the rate of change of a constraint should be in order to maintain the rate of change of a constraint, the second derivative should be legal position legal velocity legal acceleration compute a constraint force that ensures legal acceleration University of Freiburg Computer Science Department Computer Graphics - 15

Example the usual pendulum (energy function slightly adapted to simplify further computations) if the constraint is met and its time derivative is zero, then a legal acceleration can be ensured by applying a constraint force University of Freiburg Computer Science Department Computer Graphics - 16

Example for the constraint force, we get (one equation, two unknowns in 2D) for all solutions would cancel illegal force components for all solutions has the same direction, but with a varying magnitude additional boundary conditions are required University of Freiburg Computer Science Department Computer Graphics - 17

Example the constraint force should not change the kinetic energy from and follows with being the Lagrange multiplier now, we have three equations for three unknowns University of Freiburg Computer Science Department Computer Graphics - 18

Discussion the constraint force ensures that results in a legal acceleration intending to maintain a legal velocity and a legal position in contrast to the penalty approach, external forces, masses, and velocities are considered, which results in an improved accuracy accuracy can still be improved with implicit or predictor-corrector schemes University of Freiburg Computer Science Department Computer Graphics - 19

Discussion still, the time step of the integration scheme is not considered resulting in so-called numerical drift note, that the constraint is not explicitly preserved if the constraint is not met, the approach does not care therefore, the Lagrange multiplier approach is commonly combined with penalty forces ensures a legal acceleration the constraint is not met at, but the approach assumes that the constraint is met University of Freiburg Computer Science Department Computer Graphics - 20

General Approach and are vectors containing mass point positions and forces, is a diagonal mass matrix, is a vector representing constraints in the initial state and the acceleration is given as this acceleration is set to zero and we get the constraint force University of Freiburg Computer Science Department Computer Graphics - 21

General Approach the constraint forces should not change the kinetic energy is one of our assumptions we get additional equations and unknowns (Lagrange multiplier) we get with being a square matrix University of Freiburg Computer Science Department Computer Graphics - 22

Outline introduction penalty method Lagrange multipliers local constraints University of Freiburg Computer Science Department Computer Graphics - 23

Motivation local constraint approaches are restricted to one constraint per mass point (non-conflicting constraints) since deformable mass-point systems consist of many mass points, these approaches are still quite flexible University of Freiburg Computer Science Department Computer Graphics - 24

Motivation deformable objects larger number of degrees of freedom more than one non-conflicting constraint can be defined per object by distributing the constraints to different mass points allows for versatile constraints non-conflicting constraints can be solved locally efficient: time-consuming iterative schemes are avoided accurate: information on the underlying integration scheme can be employed to improve accuracy University of Freiburg Computer Science Department Computer Graphics - 25

Characteristics local approach for non-conflicting geometric constraints for deforming mass-point systems information on the numerical integration scheme is employed a generic scheme is presented to illustrate the incorporation of a variety of integration schemes very efficient in terms of memory and computing complexity very accurate, no numerical drift or other inaccuracies all constraints are accurately met at each simulation step University of Freiburg Computer Science Department Computer Graphics - 26

Outline local constraints representation of integration schemes constraint forces point-to-nail constraint points-to-point constraint point-to-line, triangle, tetrahedron results University of Freiburg Computer Science Department Computer Graphics - 27

Representation of Numerical Integration Schemes mass point at time with mass, position, velocity, force representation of numerical integration with system matrices state vector University of Freiburg Computer Science Department Computer Graphics - 28

Example - Verlet position and velocity update rewrite velocity update University of Freiburg Computer Science Department Computer Graphics - 29

Example - Verlet state vector system matrices University of Freiburg Computer Science Department Computer Graphics - 30

Outline local constraints representation of integration schemes constraint forces point-to-nail constraint points-to-point constraint point-to-line, triangle, tetrahedron results University of Freiburg Computer Science Department Computer Graphics - 31

Constraint Forces constraint forces are computed to meet a user-defined constraint on a position or velocity by substituting constraint forces are adapted according to the actually employed integration scheme University of Freiburg Computer Science Department Computer Graphics - 32

Outline local constraints representation of integration schemes constraint forces point-to-nail constraint points-to-point constraint point-to-line, triangle, tetrahedron results University of Freiburg Computer Science Department Computer Graphics - 33

Point-to-Nail Constraint constraint that enforces a given position constraint force University of Freiburg Computer Science Department Computer Graphics - 34

Example - Verlet constraint force new position University of Freiburg Computer Science Department Computer Graphics - 35

Outline local constraints representation of integration schemes constraint forces point-to-nail constraint points-to-point constraint point-to-line, triangle, tetrahedron results University of Freiburg Computer Science Department Computer Graphics - 36

Points-to-Point Constraint hold points at a jointed position is not fixed and not user-defined equations are considered to compute unknown constraint forces University of Freiburg Computer Science Department Computer Graphics - 37

Equations first equation: momentum of the mass-point system is preserved equations: all points have the same position in the next time step University of Freiburg Computer Science Department Computer Graphics - 38

Resulting Constraint Forces in case of Verlet constraint forces move all points towards the center of mass of the next simulation step with respect to their position at the next simulation step University of Freiburg Computer Science Department Computer Graphics - 39

Outline local constraints representation of integration schemes constraint forces point-to-nail constraint points-to-point constraint point-to-line, triangle, tetrahedron results University of Freiburg Computer Science Department Computer Graphics - 40

Point-to-Line, Face, Tetrahedron mass point and a corresponding position on a line with on a triangle with in a tetrahedron with in general, is given as with being Barycentric coordinates University of Freiburg Computer Science Department Computer Graphics - 41

Constraint Force constraint force guarantees constraint force constraint force is computed for and the negative of the constraint force is distributed to the University of Freiburg Computer Science Department Computer Graphics - 42

Outline local constraints representation of integration schemes constraint forces point-to-nail constraint points-to-point constraint point-to-line, triangle, tetrahedron results University of Freiburg Computer Science Department Computer Graphics - 43

Performance University of Freiburg Computer Science Department Computer Graphics - 44

Results University of Freiburg Computer Science Department Computer Graphics - 45

Conclusion local constraints for deformable objects numerical integration scheme is employed to efficiently and accurately solve the constraints a generic scheme can incorporate various schemes no iterative solvers, no stabilization techniques no numerical drift, no other inaccuracies restricted to non-conflicting constraints University of Freiburg Computer Science Department Computer Graphics - 46

Summary penalty method introduce forces to meet a constraint handles conflicting constraints efficient and inaccurate or unstable Lagrange multipliers cancel force components that act against a constraint handles conflicting constraints less efficient (linear system) and drift problem local constraints introduce forces to meet a constraint restricted to one constraint per degree of freedom efficient and accurate University of Freiburg Computer Science Department Computer Graphics - 47

References Andrew Witkin, Kurt Fleischer, Alan Barr, "Energy Constraints on Parameterized Models", Proc. ACM SIGGRAPH '87, pp. 225-232, 1987. David Baraff, "Linear-Time Dynamics using Lagrange Multipliers", Proc. ACM SIGGRAPH '96, pp. 137-146, 1996. Andrew Witkin, David Baraff, Michael Kass, "Physically-based modeling", ACM SIGGRAPH '01, Course Notes, 2001. Marc Gissler, Markus Becker, Matthias Teschner, "Local Constraint Methods for Deformable Objects", Eurographics / ACM SIGGRAPH SCA '06, Posters and Demos, 2006. Marc Gissler, Markus Becker, Matthias Teschner, "Local Constraint Methods for Deformable Objects", Proc. VriPhys '06, pp. 25-32, 2006. University of Freiburg Computer Science Department Computer Graphics - 48