고려대학교 그래픽스 연구실 Chapter 6 Collision Detection 6.1~6.4 고려대학교 그래픽스연구실 민성환.

Slides:



Advertisements
Similar presentations
Collisions using separating-axis tests
Advertisements

2.4. Primitive Tests - Closest point
2.5. B ASIC P RIMITIVE I NTERSECTION Details of common forms of primitive intersection test.
8.1 Prisms, Area and Volume Prism – 2 congruent polygons lie in parallel planes corresponding sides are parallel. corresponding vertices are connected.
Chapter 7 Analyzing Conic Sections
Developable Surface Fitting to Point Clouds Martin Peternell Computer Aided Geometric Design 21(2004) Reporter: Xingwang Zhang June 19, 2005.
Intersection Testing Chapter 13 Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
CSE 681 Bounding Volumes. CSE 681 Bounding Volumes Use simple volume enclose object(s) tradeoff for rays where there is extra intersection test for object.
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.
Collision Detection and Resolution Zhi Yuan Course: Introduction to Game Development 11/28/
Computer graphics & visualization Collisions. computer graphics & visualization Simulation and Animation – SS07 Jens Krüger – Computer Graphics and Visualization.
Geometry Primer Lines and rays Planes Spheres Frustums Triangles Polygon Polyhedron.
Here is where my object is Here is where my object is going to be Here is where I want my object to be.
Chapter 12: Surface Area and Volume of Solids
Computational Geometry & Collision detection
Week 14 - Monday.  What did we talk about last time?  Bounding volume/bounding volume intersections.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Writing Linear Equation in Standard Form
CS447/ Realistic Rendering -- Solids Modeling -- Introduction to 2D and 3D Computer Graphics.
1 Terrain Following & Collision Detection. 2 Both of topics are very game-type-oriented Both of topics are very game-type-oriented Terrain Terrain For.
Informationsteknologi Thursday, November 22, 2007Computer Graphics - Class 111 Today’s class Clipping Parametric and point-normal form of lines Intersecting.
Collision Detection CSE 191A: Seminar on Video Game Programming Lecture 3: Collision Detection UCSD, Spring, 2003 Instructor: Steve Rotenberg.
Chapter 4.2 Collision Detection and Resolution. 2 Collision Detection Complicated for two reasons 1. Geometry is typically very complex, potentially requiring.
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.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Continuous Collision Detection David Knott COMP 259 class presentation.
OBBTree: A Hierarchical Structure for Rapid Interference Detection Gottschalk, M. C. Lin and D. ManochaM. C. LinD. Manocha Department of Computer Science,
1cs533d-term Notes  list Even if you’re just auditing!
1 Advanced Scene Management System. 2 A tree-based or graph-based representation is good for 3D data management A tree-based or graph-based representation.
1Notes. 2 Time integration for particles  Back to the ODE problem, either  Accuracy, stability, and ease-of- implementation are main issues  Obviously.
Computer graphics & visualization Collision Detection – Narrow Phase.
Week 13 - Wednesday CS361.
12/4/2001CS 638, Fall 2001 Today Using separating planes/axes for collision testing Collision detection packages.
Solving Equations. Is a statement that two algebraic expressions are equal. EXAMPLES 3x – 5 = 7, x 2 – x – 6 = 0, and 4x = 4 To solve a equation in x.
Complex numbers.
Ellipse Conic Sections.
7.1 Scalars and vectors Scalar: a quantity specified by its magnitude, for example: temperature, time, mass, and density Chapter 7 Vector algebra Vector:
Introduction Tracking the corners Camera model and collision detection Keyframes Path Correction Controlling the entire path of a virtual camera In computer.
CSE 381 – Advanced Game Programming Quickhull and GJK.
Collision handling: detection and response
Week 13 - Friday.  What did we talk about last time?  Ray/sphere intersection  Ray/box intersection  Slabs method  Line segment/box overlap test.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Collisions & Contact.
Week 13 - Monday.  What did we talk about last time?  Exam 2!  Before that…  Polygonal techniques ▪ Tessellation and triangulation  Triangle strips,
Center for Graphics and Geometric Computing, Technion 1 Computational Geometry Chapter 8 Arrangements and Duality.
Conic Sections - Hyperbolas
Polynomial Functions Quadratic Functions and Models.
Center for Graphics and Geometric Computing, Technion 1 Computational Geometry Chapter 8 Arrangements and Duality.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
1 Dr. Scott Schaefer Intersecting Simple Surfaces.
3D Game Engine Design 1 3D Game Engine Design Ch D MAP LAB.
Chapter 11 Collision Detection 가상현실 입문 그래픽스 연구실 민성환.
Direction: _____________ Width: ______________ AOS: _________________ Set of corresponding points: _______________ Vertex: _______________ Max or Min?
Complete the table and graph x (x - 3) Vertex.
Construction of the true size of a plane figure Plane figures in the horizontal/vertical/profile projecting planes 1. Determine the true size of a triangle.
Section 9.3 The Parabola. Finally, something familiar! The parabola is oft discussed in MTH 112, as it is the graph of a quadratic function: Does look.
Week 4 Functions and Graphs. Objectives At the end of this session, you will be able to: Define and compute slope of a line. Write the point-slope equation.
CS 551/651: Advanced Computer Graphics
Linear Functions Section 1-1 Points Lines Objective: To find the intersection of two lines and to find the length and the coordinates of the midpoint of.
Minkowski Sums and Distance Computation Eric Larsen COMP
Computer Graphics Lecture 07 Ellipse and Other Curves Taqdees A. Siddiqi
Chapter 12 Math 181.
Collision Detection Spring 2004.
Chapter 4.2 Collision Detection and Resolution
Collision handling: detection and response
2.5. Basic Primitive Intersection
The Slope-Intercept Form of a Linear Equation
Computer Animation Algorithms and Techniques
Collision Detection Part II
Point To Triangle(intro)
GPAT – Chapter 7 Physics.
Presentation transcript:

고려대학교 그래픽스 연구실 Chapter 6 Collision Detection 6.1~6.4 고려대학교 그래픽스연구실 민성환

19 September 2001 Sunghwan Min The Type of Intersection  Three categories  Linear component versus object (picking)  Chapter 5 already described  Object versus plane (culling)  Chapter 4 described  Object versus object (general collision)

19 September 2001 Sunghwan Min Design Issues  Hierarchical representation of objects for collision purposes  Should the hierarchy be built top-down or bottom-up?  Top-down : decomposition of complex object  Bottom-up : construction the world from small models  Should the bounding volumes be built manually or automatically?  Automatic : not always generate a good set of volumes  Manual : can be time consuming  The best approach : mixture of the two

19 September 2001 Sunghwan Min Design Issues (cont.)  How should the intersection information be reported?  To use callbacks  How should the propagation of the test collision calls be controlled?  How much information should be retained about the current collision state to support future test collision calls?

19 September 2001 Sunghwan Min Dynamic Objects and Lines  The line  The Object  constant linear velocity  time interval  If  Moving parallel to the line (Static test)  Presented here  Determine only if the line and object will intersect on the time interval

19 September 2001 Sunghwan Min Spheres  The moving sphere has center  The distance C to the line is, where  If, then the line intersects the sphere

19 September 2001 Sunghwan Min Spheres  The problem is now one of determining the minimum of Q on the interval  Solve  T=-b/a  If : the minimum is Q(T)  If T<0 : the minimum is Q(0)  If T>t max : the minimum is Q(t max )  Then compared to

19 September 2001 Sunghwan Min Oriented Boxes  Static oriented box  R d >R b +R s : non intersection RbRb RsRs L R

19 September 2001 Sunghwan Min Oriented Boxes (cont.)  line  the only potential separating axes for i=0,1,2  For the motion case, is replaced by  If any of these tests are true  do not intersect

19 September 2001 Sunghwan Min Capsules  The moving capsule is E

19 September 2001 Sunghwan Min Lozenges  The moving lozenges is E0 E1

19 September 2001 Sunghwan Min Cylinders  An extremely complicated and some what expensive  Not recommended for use as bounding volumes

19 September 2001 Sunghwan Min Ellipsoids  Static ellipsoid  The line  The quadratic equation has a real- valued root 

19 September 2001 Sunghwan Min Ellipsoids (cont.)  For a moving ellipsoid  The center is

19 September 2001 Sunghwan Min Triangles  The plane of the triangles at time t  The line be

19 September 2001 Sunghwan Min Dynamic Objects and Planes  The Plane  The Object  constant linear velocity  time interval  Presented here  Determine only report an intersection time of t=0 when the object and plane are initially intersecting

19 September 2001 Sunghwan Min Spheres  The moving center  The distance between center and plane  If initially intersecting  Else  The first time of contact T of the sphere

19 September 2001 Sunghwan Min Oriented Boxes  The radius of the interval of the projected box  Computation of the first time of contact T is identical to that of a sphere versus a plane  If initially intersecting  Else  The first time of contact T of the sphere

19 September 2001 Sunghwan Min Capsules  Line segment  And where  Define the signed distances  If initially intersecting P0 P1 D

19 September 2001 Sunghwan Min Capsules (cont.)  The sign of  decide which of and is closer  Apply the intersection testing algorithm between a sphere and a plane

19 September 2001 Sunghwan Min Lozenges  Lozenges is  The four corners  The signed distance  Not all positive or not all negative  initially intersecting  Applied to the sphere corresponding to that corner P 00 P 10 E0 E1 P 01 P 11

19 September 2001 Sunghwan Min Triangles  Let the three vertices be  Three signed distances for 0<= i <=2  Initially intersecting  Not all positive or not all negative  The closest vertex  use signed distance

19 September 2001 Sunghwan Min Static Object-Object  In this section determine if two of the same type or stationary objects

19 September 2001 Sunghwan Min Spheres, Capsules, And Lozenges  Intersection  dist < rsum*rsum SphereCapsuleLozenge SphereDist(pnt,pnt)Dist(pnt,seg)Dist(pnt,rct) CapsuleDist(seg,pnt)Dist(seg,seg)Dist(seg,rct) LozengeDist(rct,pnt)Dist(rct,seg)Dist(rct,rct)

19 September 2001 Sunghwan Min Oriented Boxes  Let  first box have axes and extents  second box have axes and extents  The potential separating axe

19 September 2001 Sunghwan Min Oriented Boxes (cont.)  15 separating axis D R0R0 R1R1 L R a1A1a1A1 a2A2a2A2 b1B1b1B1 b2B2b2B2

19 September 2001 Sunghwan Min Oriented Boxes and Triangles  Let  Box have axes and extents  Triangles have vertices and the edges of the triangles are

19 September 2001 Sunghwan Min Oriented Boxes and Triangles (cont.)  Non-intersection test  Min(p0,p1,p2) > R, max(p0,p1,p2)<-R D L -R a1A1a1A1 a2A2a2A2 R E1E1 E0E0 p0p0 p1p1 p2p2 Min(u i ) Max(u i )

19 September 2001 Sunghwan Min Triangles  Non-intersection test  or L Min(v i ) D E0E0 E1E1 F1F1 F0F0 Max(v i ) Min(u i ) Max(u i ) p0p0 p1p1 p2p2 q0q0 q1q1 q2q2