1cs533d-term1-2005 Notes  Email list Even if you’re just auditing!

Slides:



Advertisements
Similar presentations
Chapter 5 Distributed Force. All of the forces we have used up until now have been forces applied at a single point. Most forces are not applied at a.
Advertisements

Chapter 4.2 Collision Detection and Resolution. 2 Collision Detection Complicated for two reasons 1. Geometry is typically very complex, potentially requiring.
Collision Detection CSCE /60 What is Collision Detection?  Given two geometric objects, determine if they overlap.  Typically, at least one of.
The Mathematics of Force- Directed Placement Simulating Graphs as Physical Systems To Assist in Computer Chip Layout By Jamey Lewis, St. Michael’s College.
Electric Charges and Electric Fields
1cs533d-term Notes  No lecture Thursday (apologies)
The work-energy theorem. Objectives Investigate quantities using the work-energy theorem in various situations. Calculate quantities using the work-energy.
Quantum One: Lecture 3. Implications of Schrödinger's Wave Mechanics for Conservative Systems.
Computational Geometry & Collision detection
Some Ideas Behind Finite Element Analysis
Week 14 - Monday.  What did we talk about last time?  Bounding volume/bounding volume intersections.
1D linear elasticity Taking the limit as the number of springs and masses goes to infinity (and the forces and masses go to zero): If density and Young’s.
1cs533d-winter-2005 Notes  Please read O'Brien and Hodgins, "Graphical modeling and animation of brittle fracture", SIGGRAPH '99 O'Brien, Bargteil and.
1cs533d-term Notes  Assignment 1 due today.
Notes Assignment questions… cs533d-winter-2005.
1cs533d-term Notes  Assignment 2 is up. 2cs533d-term Modern FEM  Galerkin framework (the most common)  Find vector space of functions that.
1cs533d-term Notes  Braino in this lecture’s notes about last lectures bending energy…
1Notes. 2Heightfields  Especially good for terrain - just need a 2d array of heights (maybe stored as an image)  Displacement map from a plane  Split.
1cs533d-term Notes  For using Pixie (the renderer) make sure you type “use pixie” first  Assignment 1 questions?
1Notes. 2 Building implicit surfaces  Simplest examples: a plane, a sphere  Can do unions and intersections with min and max  This works great for.
1cs533d-term Notes  Required reading: Baraff & Witkin, “Large steps in cloth animation”, SIGGRAPH’98 Grinspun et al., “Discrete shells”, SCA’03.
1cs533d-winter-2005 Notes. 2 Numerical Implementation 1  Get candidate x(t+∆t)  Check to see if x(t+∆t) is inside object (interference)  If so Get.
1Notes. 2 Triangle intersection  Many, many ways to do this  Most robust (and one of the fastest) is to do it based on determinants  For vectors a,b,c.
1Notes  Text:  Motion Blur A.3  Particle systems 4.5 (and 4.4.1, 6.6.2…)  Implicit Surfaces  Classic particle system papers  W. Reeves, “Particle.
1Notes  Reference  Witkin and Baraff, “Physically Based Modelling” course, SIGGRAPH 2001  Link on the course website.
Collision Detection CSE 191A: Seminar on Video Game Programming Lecture 3: Collision Detection UCSD, Spring, 2003 Instructor: Steve Rotenberg.
1cs533d-winter-2005 Notes  More optional reading on web for collision detection.
1 Geometry A line in 3D space is represented by  S is a point on the line, and V is the direction along which the line runs  Any point P on the line.
1cs426-winter-2008 Notes  Course project: Will be due at the end of the term You can do it in pairs Create an animation that combines an algorithm for.
Physics for Scientists and Engineers II, Summer Semester 2009 Lecture 2: May 20 th 2009 Physics for Scientists and Engineers II.
Department of Physics and Applied Physics , F2010, Lecture 18 Physics I LECTURE 18 11/15/10.
1cs533d-winter-2005 Notes  More reading on web site Baraff & Witkin’s classic cloth paper Grinspun et al. on bending Optional: Teran et al. on FVM in.
1cs533d-winter-2005 Notes  Some example values for common materials: (VERY approximate) Aluminum: E=70 GPa =0.34 Concrete:E=23 GPa =0.2 Diamond:E=950.
Haptic Cloth Rendering 6th Dutch-Belgian Haptics Meeting TUDelft, 21 st June 2006 Lode Vanacken Expertise centre for Digital Media (EDM) Hasselt University.
1cs533d-term Notes. 2 Poisson Ratio  Real materials are essentially incompressible (for large deformation - neglecting foams and other weird composites…)
1cs533d-term Notes  Typo in test.rib --- fixed on the web now (PointsPolygon --> PointsPolygons)
1Notes. 2 Time integration for particles  Back to the ODE problem, either  Accuracy, stability, and ease-of- implementation are main issues  Obviously.
Monte Carlo Methods in Partial Differential Equations.
Week 13 - Wednesday CS361.
Forces in Two Dimension
Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
CS 450: Computer Graphics REVIEW: OVERVIEW OF POLYGONS
Skills for October Rounds
Haptics and Virtual Reality
3D Graphics for Game Programming Chapter XII Physics-based Simulation.
Physics for Bioscience (Part II) Electricity Magnetism Waves Sound Optics by Dr. Chittakorn polyon Department of Physics, Faculty of Science,
Week 13 - Monday.  What did we talk about last time?  Exam 2!  Before that…  Polygonal techniques ▪ Tessellation and triangulation  Triangle strips,
Energy Transformations and Conservation of Mechanical Energy 8
CO1301: Games Concepts Dr Nick Mitchell (Room CM 226) Material originally prepared by Gareth Bellaby.
12/4/2001CS 638, Fall 2001 Today Managing large numbers of objects Some special cases.
General Physics II, Lec 3, By/ T.A. Eleyan 1 Lecture 3 The Electric Field.
Chapter 24 Gauss’s Law. Let’s return to the field lines and consider the flux through a surface. The number of lines per unit area is proportional to.
Chapter 12 Static Equilibrium and Elasticity. Static Equilibrium Equilibrium implies that the object moves with both constant velocity and constant angular.
Chapter 12 Static Equilibrium and Elasticity. Introduction Equilibrium- a condition where an object is at rest OR its center of mass moves with a constant.
1 KIPA Game Engine Seminars Jonathan Blow Ajou University December 6, 2002 Day 10.
From Last Time: Electric field of a single charge Electric field from multiple charges Superposition Ex: calculate electric field of dipole Oct. 1, 2009Physics.
Equilibrium A particle (mass, but a size that can be neglected) is in equilibrium provided it is at rest if originally at rest or has constant velocity.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Physics for Games Spring 2012.
Static Equilibrium and Elasticity
Representing Motion. Motion We are looking to ____________and ____________an object in motion. Three “rules” we will follow: –The motion is in a __________________.
Wednesday, Sep. 14, PHYS Dr. Andrew Brandt PHYS 1444 – Section 04 Lecture #5 Chapter 21: E-field examples Chapter 22: Gauss’ Law Examples.
Monday, Nov. 18, 2002PHYS , Fall 2002 Dr. Jaehoon Yu 1 PHYS 1443 – Section 003 Lecture #18 Monday, Nov. 18, 2002 Dr. Jaehoon Yu 1.Elastic Properties.
CS274 Spring 01 Lecture 7 Copyright © Mark Meyer Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Work, Energy and Power Ms Houts AP Physics C Chapters 7 & 8.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Computer Graphics Imaging Ying Zhu Georgia State University Lecture 29 Soft Bodies and Rigid Bodies.
Electrostatic field in dielectric media When a material has no free charge carriers or very few charge carriers, it is known as dielectric. For example.
Physics 218 Lecture 8: Dynamics Alexei Safonov.
Computer Animation Algorithms and Techniques
GPAT – Chapter 7 Physics.
Presentation transcript:

1cs533d-term Notes  list Even if you’re just auditing!

2cs533d-term Other Standard Approach  Find where line intersects plane of triangle  Check if it’s on the segment  Find if that point is inside the triangle Use barycentric coordinates  Slightly slower, but worse: less robust round-off error in intermediate result: the intersection point What happens for a triangle mesh?  Note the predicate approach, even with floating- point, can handle meshes well Consistent evaluation of predicates for neighbouring triangles

3cs533d-term Distance to Triangle  If surface is open, define interference in terms of distance to mesh  Typical approach: find closest point on triangle, then distance to that point Direction to closest point also parallel to natural normal  First step: barycentric coordinates Normalized signed volume determinants equivalent to solving least squares problem of closest point in plane  If coordinates all in [0,1] we’re done  Otherwise negative coords identify possible closest edges  Find closest points on edges

4cs533d-term Testing Against Meshes  Can check every triangle if only a few, but too slow usually  Use an acceleration structure: Spatial decomposition: background grid, hash grid, octree, kd-tree, BSP-tree, … Bounding volume hierarchy: axis-aligned boxes, spheres, oriented boxes, …

5cs533d-term Moving Triangles  Collision detection: find a time at which particle lies inside triangle  Need a model for what triangle looks like at intermediate times Simplest: vertices move with constant velocity, triangle always just connects them up  Solve for intermediate time when four points are coplanar (determinant is zero) Gives a cubic equation to solve  Then check barycentric coordinates at that time See e.g. X. Provot, “Collision and self-collision handling in cloth model dedicated to design garment", Graphics Interface’97

6cs533d-term For Later…  We now can do all the basic particle vs. object tests for repulsions and collisions  Once we get into simulating solid objects, we’ll need to do object vs. object instead of just particle vs. object  Core ideas remain the same

7cs533d-term Elasticity

8 Elastic objects  Simplest model: masses and springs  Split up object into regions  Integrate density in each region to get mass (if things are uniform enough, perhaps equal mass)  Connect up neighbouring regions with springs Careful: need chordal graph  Now it’s just a particle system When you move a node, neighbours pulled along with it, etc.

9cs533d-term Masses and springs  But: how strong should the springs be? Is this good in general? [anisotropic examples]  General rule: we don’t want to see the mesh in the output Avoid “grid artifacts” We of course will have numerical error, but let’s avoid obvious patterns in the error

10cs533d-term D masses and springs  Look at a homogeneous elastic rod, length 1, linear density   Parameterize by p (x(p)=p in rest state)  Split up into intervals/springs 0 = p 0 < p 1 < … < p n = 1 Mass m i =  (p i+1 -p i-1 )/2 (+ special cases for ends) Spring i+1/2 has rest length and force

11cs533d-term Figuring out spring constants  So net force on i is  We want mesh-independent response (roughly), e.g. for static equilibrium Rod stretched the same everywhere: x i =  p i Then net force on each node should be zero (add in constraint force at ends…)

12cs533d-term Young’s modulus  So each spring should have the same k Note we divided by the rest length Some people don’t, so they have to make their constant scale with rest length  The constant k is a material property (doesn’t depend on our discretization) called the Young’s modulus Often written as E  The one-dimensional Young’s modulus is simply force per percentage deformation

13cs533d-term The continuum limit  Imagine ∆p (or ∆x) going to zero Eventually can represent any kind of deformation [note force and mass go to zero too] If density and Young’s modulus constant,

14cs533d-term Sound waves  Try solution x(p,t)=x 0 (p-ct)  And x(p,t)=x 0 (p+ct)  So speed of “sound” in rod is  Courant-Friedrichs-Levy (CFL) condition: Numerical methods only will work if information transmitted numerically at least as fast as in reality (here: the speed of sound) Usually the same as stability limit for good explicit methods [what are the eigenvalues here] Implicit methods transmit information infinitely fast

15cs533d-term Why?  Are sound waves important? Visually? Usually not  However, since speed of sound is a material property, it can help us get to higher dimensions  Speed of sound in terms of one spring is  So in higher dimensions, just pick k so that c is constant m is mass around spring [triangles, tets] Optional reading: van Gelder