Collision Detection. These slides are mainly from Ming Lin s course notes at UNC Chapel Hill

Size: px
Start display at page:

Download "Collision Detection. These slides are mainly from Ming Lin s course notes at UNC Chapel Hill"

Transcription

1 Collision Detection These slides are mainly from Ming Lin s course notes at UNC Chapel Hill

2 Computer Animation ILE5030 Computer Animation and Special Effects 2

3 Haptic Interaction From J.C. Latombe s notes ILE5030 Computer Animation and Special Effects 3

4 Motion/Path Planning From J.C. Latombe From James Kuffner ILE5030 Computer Animation and Special Effects 4

5 Crowd Simulation From J.C. Latombe s notes ILE5030 Computer Animation and Special Effects 5

6 Geometric Proximity Queries Given two objects, how would you check: If they intersect with each other while moving? If they do not interpenetrate each other, how far are they apart? If they overlap, how much is the amount of penetration ILE5030 Computer Animation and Special Effects 6

7 Collision Detection Update configurations w/ TXF matrices Check for edge-edge intersection in 2D (Check for edge-face intersection in 3D) Check every point of A inside of B & every point of B inside of A Check for pair-wise edge-edge intersections Imagine larger input size: N = ILE5030 Computer Animation and Special Effects 7

8 Classes of Objects & Problems 2D vs. 3D Convex vs. Non-Convex Polygonal vs. Non-Polygonal Open surfaces vs. Closed volumes Geometric vs. Volumetric Rigid vs. Non-rigid (deformable/flexible) Pairwise vs. Multiple (N-Body) Discrete vs. Continuous ILE5030 Computer Animation and Special Effects 8

9 Some Possible Approaches Geometric methods Algebraic techniques Hierarchical Bounding Volumes Spatial Partitioning Others (e.g. optimization) ILE5030 Computer Animation and Special Effects 9

10 Methods for Convex Polytopes Voronoi Marching Linear programming Minkowski sums ILE5030 Computer Animation and Special Effects 10

11 Voronoi Diagram Describes the areas that are nearest to a set of given points Voronoi Site Voronoi Region ILE5030 Computer Animation and Special Effects 11

12 Generalized Voronoi Diagram Given a collection of geometric primitives, it is a subdivision of space into cells such that all points in a cell are closer to one primitive than to any other Voronoi Site Voronoi Region ILE5030 Computer Animation and Special Effects 12

13 Point sites Ordinary Nearest Euclidean distance Generalized Higher-order site geometry Varying distance metrics Higher-order Sites Weighted Distances ILE5030 Computer Animation and Special Effects 13

14 Voronoi Marching: the LC algorithm (Lin & Canny, 1991) Exploits Motion coherence Geometry locality Procedures Precompute external Voronoi region for each polytope Checks if a pair of features the cloest one If not, search locally on the boundary of each polytope until find the closest features Track the closest feature ILE5030 Computer Animation and Special Effects 14

15 Simple 2D Example P2 B P1 A Objects A & B and their Voronoi regions: P1 and P2 are the pair of closest points between A and B. Note P1 and P2 lie within the Voronoi regions of each other. ILE5030 Computer Animation and Special Effects 15

16 Voronoi Marching Locality: local geometry does not change much, when computations repetitively performed over successive small time intervals Coherence: to "track" the pair of closest features between 2 moving convex polygons(polyhedra) w/ Voronoi regions Performance: expected constant running time, independent of the geometric complexity ILE5030 Computer Animation and Special Effects 16

17 Linear Programming Given two finite sets A, B in R d For each a in A and b in B, Find x in R d which minimize whatever Subject to <a, x> > 0, for all a in A And <b, x> < 0, for all b in B where d = 2 (or 3). ILE5030 Computer Animation and Special Effects 17

18 Minkowski Sums/Differences Minkowski Sum (A, B) = { a + b a A, b B } Minkowski Diff (A, B) = { a - b a A, b B } A and B collide iff Minkowski Difference(A,B) contains the point 0 A B A B ILE5030 Computer Animation and Special Effects 18

19 Computational Issues Expensive to compute boundary of Minkowski difference: For convex polyhedra, Minkowski difference may take O(n 2 ) For general polyhedra, no known algorithm of complexity less than O(n 6 ) is known GJK algorithm (Gilbert, Johnson & Keerthi, 1988) Fast algorithm for separation-distance computation O(n) ILE5030 Computer Animation and Special Effects 19

20 Methods for General Models Decompose into convex pieces, and take minimum over all pairs of pieces Optimal (minimal) model decomposition is NPhard. Approximation algorithms exist for closed solids, but what about a list of triangles? Collection of triangles/polygons: n*m pairs of triangles - brute force expensive Hierarchical representations used to accelerate minimum finding ILE5030 Computer Animation and Special Effects 20

21 Hierarchical Representations Two Common Types: Bounding volume hierarchies (BVH) trees of spheres, ellipses, cubes, axis-aligned bounding boxes (AABBs), oriented bounding boxes (OBBs), K-dop, SSV, etc. Spatial decomposition - BSP, K-d trees, octrees, MSP tree, R-trees, grids/cells, space-time bounds, etc. Do very well in rejection tests, when objects are far apart Performance may slow down, when the two objects are in close proximity and can have multiple contacts (Recall from Ming Lin s Notes) ILE5030 Computer Animation and Special Effects 21

22 BVH vs. Spatial Partitioning BVH: SP: - Object centric - Space centric - Spatial redundancy - Object redundancy (Recall from Ming Lin s Notes) ILE5030 Computer Animation and Special Effects 22

23 BVH vs. Spatial Partitioning BVH: SP: - Object centric - Space centric - Spatial redundancy - Object redundancy (Recall from Ming Lin s Notes) ILE5030 Computer Animation and Special Effects 23

24 BVH vs. Spatial Partitioning BVH: SP: - Object centric - Space centric - Spatial redundancy - Object redundancy (Recall from Ming Lin s Notes) ILE5030 Computer Animation and Special Effects 24

25 BVH vs. Spatial Partitioning BVH: SP: - Object centric - Space centric - Spatial redundancy - Object redundancy (Recall from Ming Lin s Notes) ILE5030 Computer Animation and Special Effects 25

26 Spatial Data Structures & Subdivision Uniform Spatial Sub Quadtree/Octree kd-tree BSP-tree ILE5030 Computer Animation and Special Effects 26

27 Uniform Spatial Subdivision Decompose the objects (the entire simulated environment) into identical cells arranged in a fixed, regular grids (equal size boxes or voxels) To represent an object, only need to decide which cells are occupied. To perform collision detection, check if any cell is occupied by two object Storage: to represent an object at resolution of n voxels per dimension requires upto n 3 cells Accuracy: solids can only be approximated ILE5030 Computer Animation and Special Effects 27

28 Octrees Quadtree is derived by subdividing a 2D-plane in both dimensions to form quadrants Octrees are a 3D-extension of quadtree Use divide-and-conquer Reduce storage requirements (in comparison to grids/voxels) ILE5030 Computer Animation and Special Effects 28

29 Bounding Volume Hierarchies Model Hierarchy each node has a simple volume that bounds a set of triangles children contain volumes that each bound a different portion of the parent s triangles The leaves of the hierarchy usually contain individual triangles A binary bounding volume hierarchy ILE5030 Computer Animation and Special Effects 29

30 BVH-Based Collision Detection ILE5030 Computer Animation and Special Effects 30

31 Bounding Volume Hierarchy Method Enclose objects into bounding volumes (spheres or boxes) Check the bounding volumes first From J.C. Latombe s notes ILE5030 Computer Animation and Special Effects 31

32 Bounding Volume Hierarchy Method Enclose objects into bounding volumes (spheres or boxes) Check the bounding volumes first Decompose an object into two From J.C. Latombe s notes ILE5030 Computer Animation and Special Effects 32

33 Bounding Volume Hierarchy Method Enclose objects into bounding volumes (spheres or boxes) Check the bounding volumes first Decompose an object into two Proceed hierarchically From J.C. Latombe s notes ILE5030 Computer Animation and Special Effects 33

34 Bounding Volume Hierarchy Method Enclose objects into bounding volumes (spheres or boxes) Check the bounding volumes first Decompose an object into two Proceed hierarchically From J.C. Latombe s notes ILE5030 Computer Animation and Special Effects 34

35 Collision Detection using BVH 1. Check for collision between two parent nodes (starting from the roots of two given trees) 2. If there is no interference between two parents, 3. Then stop and report no collision 4. Else All children of one parent node are checked against all children of the other node 5. If there is a collision between the children 6. Then If at leave nodes 7. Then report collision 8. Else go to Step 4 9. Else stop and report no collision ILE5030 Computer Animation and Special Effects 35

36 Type of Bounding Volumes Spheres Ellipsoids Axis-Aligned Bounding Boxes (AABB) Oriented Bounding Boxes (OBBs) Convex Hulls k-discrete Orientation Polytopes (k-dop) Spherical Shells Swept-Sphere Volumes (SSVs) ILE5030 Computer Animation and Special Effects 36

37 Trade-off in Choosing BV s Sphere AABB OBB 6-dop Convex Hull increasing complexity & tightness of fit decreasing cost of (overlap tests + BV update) ILE5030 Computer Animation and Special Effects 37

38 Evaluating Bounding Volume Hierarchies Cost Function: F = N u x C u + N bv x C bv + N p x C p F: total cost function for interference detection N u : no. of bounding volumes updated C u : cost of updating a bounding volume, N bv : no. of bounding volume pair overlap tests C bv : cost of overlap test between 2 BVs N p : no. of primitive pairs tested for interference C p : cost of testing 2 primitives for interference ILE5030 Computer Animation and Special Effects 38

39 Designing Bounding Volume Hierarchies The choice governed by these constraints: It should fit the original model as tightly as possible (to lower N bv and N p ) Testing two such volumes for overlap should be as fast as possible (to lower C bv ) It should require the BV updates as infrequently as possible (to lower N u ) ILE5030 Computer Animation and Special Effects 39

40 Observations Simple primitives (spheres, AABBs, etc.) do very well with respect to the second constraint. But they cannot fit some long skinny primitives tightly. More complex primitives (minimal ellipsoids, OBBs, etc.) provide tight fits, but checking for overlap between them is relatively expensive. Cost of BV updates needs to be considered. ILE5030 Computer Animation and Special Effects 40

41 Videos Yoda from Star Wars III ILE5030 Computer Animation and Special Effects 41

42 Videos ILE5030 Computer Animation and Special Effects 42

Collision and Proximity Queries

Collision and Proximity Queries Collision and Proximity Queries Dinesh Manocha (based on slides from Ming Lin) COMP790-058 Fall 2013 Geometric Proximity Queries l Given two object, how would you check: If they intersect with each other

More information

Collision Detection II. These slides are mainly from Ming Lin s course notes at UNC Chapel Hill

Collision Detection II. These slides are mainly from Ming Lin s course notes at UNC Chapel Hill Collision Detection II These slides are mainly from Ming Lin s course notes at UNC Chapel Hill http://www.cs.unc.edu/~lin/comp259-s06/ Some Possible Approaches Geometric methods Algebraic techniques Hierarchical

More information

References. Additional lecture notes for 2/18/02.

References. Additional lecture notes for 2/18/02. References Additional lecture notes for 2/18/02. I-COLLIDE: Interactive and Exact Collision Detection for Large-Scale Environments, by Cohen, Lin, Manocha & Ponamgi, Proc. of ACM Symposium on Interactive

More information

CPSC / Sonny Chan - University of Calgary. Collision Detection II

CPSC / Sonny Chan - University of Calgary. Collision Detection II CPSC 599.86 / 601.86 Sonny Chan - University of Calgary Collision Detection II Outline Broad phase collision detection: - Problem definition and motivation - Bounding volume hierarchies - Spatial partitioning

More information

Collision Detection. Jane Li Assistant Professor Mechanical Engineering & Robotics Engineering

Collision Detection. Jane Li Assistant Professor Mechanical Engineering & Robotics Engineering RBE 550 MOTION PLANNING BASED ON DR. DMITRY BERENSON S RBE 550 Collision Detection Jane Li Assistant Professor Mechanical Engineering & Robotics Engineering http://users.wpi.edu/~zli11 Euler Angle RBE

More information

Collision Detection with Bounding Volume Hierarchies

Collision Detection with Bounding Volume Hierarchies Simulation in Computer Graphics Collision Detection with Bounding Volume Hierarchies Matthias Teschner Computer Science Department University of Freiburg Outline introduction bounding volumes BV hierarchies

More information

Collision Detection. Motivation - Dynamic Simulation ETH Zurich. Motivation - Path Planning ETH Zurich. Motivation - Biomedical Simulation ETH Zurich

Collision Detection. Motivation - Dynamic Simulation ETH Zurich. Motivation - Path Planning ETH Zurich. Motivation - Biomedical Simulation ETH Zurich Collision Detection Motivation - Dynamic Simulation Collision detection is an essential part of physically realistic dynamic simulations. For each time step: compute dynamics detect collisions resolve

More information

Collision Detection based on Spatial Partitioning

Collision Detection based on Spatial Partitioning Simulation in Computer Graphics Collision Detection based on Spatial Partitioning Matthias Teschner Computer Science Department University of Freiburg Outline introduction uniform grid Octree and k-d tree

More information

Spatial Data Structures

Spatial Data Structures CSCI 480 Computer Graphics Lecture 7 Spatial Data Structures Hierarchical Bounding Volumes Regular Grids BSP Trees [Ch. 0.] March 8, 0 Jernej Barbic University of Southern California http://www-bcf.usc.edu/~jbarbic/cs480-s/

More information

Spatial Data Structures

Spatial Data Structures CSCI 420 Computer Graphics Lecture 17 Spatial Data Structures Jernej Barbic University of Southern California Hierarchical Bounding Volumes Regular Grids Octrees BSP Trees [Angel Ch. 8] 1 Ray Tracing Acceleration

More information

Lesson 05. Mid Phase. Collision Detection

Lesson 05. Mid Phase. Collision Detection Lesson 05 Mid Phase Collision Detection Lecture 05 Outline Problem definition and motivations Generic Bounding Volume Hierarchy (BVH) BVH construction, fitting, overlapping Metrics and Tandem traversal

More information

Using Bounding Volume Hierarchies Efficient Collision Detection for Several Hundreds of Objects

Using Bounding Volume Hierarchies Efficient Collision Detection for Several Hundreds of Objects Part 7: Collision Detection Virtuelle Realität Wintersemester 2007/08 Prof. Bernhard Jung Overview Bounding Volumes Separating Axis Theorem Using Bounding Volume Hierarchies Efficient Collision Detection

More information

Homework 1: Implicit Surfaces, Collision Detection, & Volumetric Data Structures. Loop Subdivision. Loop Subdivision. Questions/Comments?

Homework 1: Implicit Surfaces, Collision Detection, & Volumetric Data Structures. Loop Subdivision. Loop Subdivision. Questions/Comments? Homework 1: Questions/Comments? Implicit Surfaces,, & Volumetric Data Structures Loop Subdivision Shirley, Fundamentals of Computer Graphics Loop Subdivision SIGGRAPH 2000 course notes Subdivision for

More information

Simulation in Computer Graphics Space Subdivision. Matthias Teschner

Simulation in Computer Graphics Space Subdivision. Matthias Teschner Simulation in Computer Graphics Space Subdivision Matthias Teschner Outline Introduction Uniform grid Octree and k-d tree BSP tree University of Freiburg Computer Science Department 2 Model Partitioning

More information

Overview. Collision Detection. A Simple Collision Detection Algorithm. Collision Detection in a Dynamic Environment. Query Types.

Overview. Collision Detection. A Simple Collision Detection Algorithm. Collision Detection in a Dynamic Environment. Query Types. Overview Collision Detection Alan Liu aliu@usuhs.mil The Surgical Simulation Laboratory National Capital Area Medical Simulation Center Uniformed Services University http://simcen.usuhs.mil/miccai2003

More information

Intersection Acceleration

Intersection Acceleration Advanced Computer Graphics Intersection Acceleration Matthias Teschner Computer Science Department University of Freiburg Outline introduction bounding volume hierarchies uniform grids kd-trees octrees

More information

Overview. Collision detection. Collision detection. Brute force collision detection. Brute force collision detection. Motivation

Overview. Collision detection. Collision detection. Brute force collision detection. Brute force collision detection. Motivation Overview Collision detection Alan Liu aliu@simcen.usuhs.mil Surgical Simulation Laboratory National Capital Area Medical Simulation Center Uniformed Services University of the Health Sciences http://simcen.usuhs.mil/mmvr2002

More information

Bounding Volume Hierarchies

Bounding Volume Hierarchies Tutorial: Real-Time Collision Detection for Dynamic Virtual Environments Bounding Volume Hierarchies Stefan Kimmerle WSI/GRIS University of Tübingen Outline Introduction Bounding Volume Types Hierarchy

More information

Acceleration Data Structures

Acceleration Data Structures CT4510: Computer Graphics Acceleration Data Structures BOCHANG MOON Ray Tracing Procedure for Ray Tracing: For each pixel Generate a primary ray (with depth 0) While (depth < d) { Find the closest intersection

More information

Spatial Data Structures

Spatial Data Structures Spatial Data Structures Hierarchical Bounding Volumes Regular Grids Octrees BSP Trees Constructive Solid Geometry (CSG) [Angel 9.10] Outline Ray tracing review what rays matter? Ray tracing speedup faster

More information

Spatial Data Structures

Spatial Data Structures 15-462 Computer Graphics I Lecture 17 Spatial Data Structures Hierarchical Bounding Volumes Regular Grids Octrees BSP Trees Constructive Solid Geometry (CSG) March 28, 2002 [Angel 8.9] Frank Pfenning Carnegie

More information

Spatial Data Structures

Spatial Data Structures 15-462 Computer Graphics I Lecture 17 Spatial Data Structures Hierarchical Bounding Volumes Regular Grids Octrees BSP Trees Constructive Solid Geometry (CSG) April 1, 2003 [Angel 9.10] Frank Pfenning Carnegie

More information

CS535 Fall Department of Computer Science Purdue University

CS535 Fall Department of Computer Science Purdue University Spatial Data Structures and Hierarchies CS535 Fall 2010 Daniel G Aliaga Daniel G. Aliaga Department of Computer Science Purdue University Spatial Data Structures Store geometric information Organize geometric

More information

Announcements. Written Assignment2 is out, due March 8 Graded Programming Assignment2 next Tuesday

Announcements. Written Assignment2 is out, due March 8 Graded Programming Assignment2 next Tuesday Announcements Written Assignment2 is out, due March 8 Graded Programming Assignment2 next Tuesday 1 Spatial Data Structures Hierarchical Bounding Volumes Grids Octrees BSP Trees 11/7/02 Speeding Up Computations

More information

Ray Tracing Acceleration Data Structures

Ray Tracing Acceleration Data Structures Ray Tracing Acceleration Data Structures Sumair Ahmed October 29, 2009 Ray Tracing is very time-consuming because of the ray-object intersection calculations. With the brute force method, each ray has

More information

Scene Management. Video Game Technologies 11498: MSc in Computer Science and Engineering 11156: MSc in Game Design and Development

Scene Management. Video Game Technologies 11498: MSc in Computer Science and Engineering 11156: MSc in Game Design and Development Video Game Technologies 11498: MSc in Computer Science and Engineering 11156: MSc in Game Design and Development Chap. 5 Scene Management Overview Scene Management vs Rendering This chapter is about rendering

More information

improving raytracing speed

improving raytracing speed ray tracing II computer graphics ray tracing II 2006 fabio pellacini 1 improving raytracing speed computer graphics ray tracing II 2006 fabio pellacini 2 raytracing computational complexity ray-scene intersection

More information

Dynamic Collision Detection

Dynamic Collision Detection Distance Computation Between Non-Convex Polyhedra June 17, 2002 Applications Dynamic Collision Detection Applications Dynamic Collision Detection Evaluating Safety Tolerances Applications Dynamic Collision

More information

Collision Detection. Pu Jiantao.

Collision Detection. Pu Jiantao. Collision Detection Pu Jiantao. 12-09 Content Introduction CD with rays Dynamic CD using BSP Trees Hierarchical Method OBBTree Method Some Other Topics 12-1717 2 Introduction Collision Collision is a fundamental

More information

CS 563 Advanced Topics in Computer Graphics Culling and Acceleration Techniques Part 1 by Mark Vessella

CS 563 Advanced Topics in Computer Graphics Culling and Acceleration Techniques Part 1 by Mark Vessella CS 563 Advanced Topics in Computer Graphics Culling and Acceleration Techniques Part 1 by Mark Vessella Introduction Acceleration Techniques Spatial Data Structures Culling Outline for the Night Bounding

More information

CAB: Fast Update of OBB Trees for Collision Detection between Articulated Bodies

CAB: Fast Update of OBB Trees for Collision Detection between Articulated Bodies CAB: Fast Update of OBB Trees for Collision Detection between Articulated Bodies Harald Schmidl Nolan Walker Ming C. Lin {schmidl walkern lin}@cs.unc.edu Department of Computer Science Sitterson Hall,

More information

CSG obj. oper3. obj1 obj2 obj3. obj5. obj4

CSG obj. oper3. obj1 obj2 obj3. obj5. obj4 Solid Modeling Solid: Boundary + Interior Volume occupied by geometry Solid representation schemes Constructive Solid Geometry (CSG) Boundary representations (B-reps) Space-partition representations Operations

More information

Collision Detection CS434. Daniel G. Aliaga Department of Computer Science Purdue University

Collision Detection CS434. Daniel G. Aliaga Department of Computer Science Purdue University Collision Detection CS434 Daniel G. Aliaga Department of Computer Science Purdue University Some Applications Animations/games Robotic planning Haptics Some collision detection approaches Minkowski Sum

More information

Ray Tracing III. Wen-Chieh (Steve) Lin National Chiao-Tung University

Ray Tracing III. Wen-Chieh (Steve) Lin National Chiao-Tung University Ray Tracing III Wen-Chieh (Steve) Lin National Chiao-Tung University Shirley, Fundamentals of Computer Graphics, Chap 10 Doug James CG slides, I-Chen Lin s CG slides Ray-tracing Review For each pixel,

More information

An iterative, octree-based algorithm for distance computation between polyhedra with complex surfaces 1

An iterative, octree-based algorithm for distance computation between polyhedra with complex surfaces 1 An iterative, octree-based algorithm for distance computation between polyhedra with complex surfaces 1 André Borrmann, Stefanie Schraufstetter, Christoph van Treeck, Ernst Rank {borrmann, schraufstetter,

More information

Real-time Continuous Collision Detection and Penetration Depth Computation

Real-time Continuous Collision Detection and Penetration Depth Computation Real-time Continuous Collision Detection and Penetration Depth Computation Young J. Kim http://graphics.ewha.ac.kr Ewha Womans University Non-penetration Constraint No overlap between geometric objects

More information

Mobile Robot Path Planning: an Efficient Distance Computation between Obstacles using Discrete Boundary Model (DBM)

Mobile Robot Path Planning: an Efficient Distance Computation between Obstacles using Discrete Boundary Model (DBM) Mobile Robot Path Planning: an Efficient Distance Computation between Obstacles using Discrete Boundary Model (DBM) Md. Nasir Uddin Laskar, TaeChoong Chung Artificial Intelligence Lab, Dept. of Computer

More information

CS 4649/7649 Robot Intelligence: Planning

CS 4649/7649 Robot Intelligence: Planning CS 4649/7649 Robot Intelligence: Planning Probabilistic Roadmaps Sungmoon Joo School of Interactive Computing College of Computing Georgia Institute of Technology S. Joo (sungmoon.joo@cc.gatech.edu) 1

More information

Collision handling: detection and response

Collision handling: detection and response Collision handling: detection and response Collision handling overview Detection Discrete collision detection Convex polygon intersection test General polygon intersection test Continuous collision detection

More information

MSBVH: An Efficient Acceleration Data Structure for Ray Traced Motion Blur

MSBVH: An Efficient Acceleration Data Structure for Ray Traced Motion Blur MSBVH: An Efficient Acceleration Data Structure for Ray Traced Motion Blur Leonhard Grünschloß Martin Stich Sehera Nawaz Alexander Keller August 6, 2011 Principles of Accelerated Ray Tracing Hierarchical

More information

Recall: Inside Triangle Test

Recall: Inside Triangle Test 1/45 Recall: Inside Triangle Test 2D Bounding Boxes rasterize( vert v[3] ) { bbox b; bound3(v, b); line l0, l1, l2; makeline(v[0],v[1],l2); makeline(v[1],v[2],l0); makeline(v[2],v[0],l1); for( y=b.ymin;

More information

Accelerated Raytracing

Accelerated Raytracing Accelerated Raytracing Why is Acceleration Important? Vanilla ray tracing is really slow! mxm pixels, kxk supersampling, n primitives, average ray path length of d, l lights, 2 recursive ray casts per

More information

Distance and Collision Detection

Distance and Collision Detection Distance and Collision Detection Efi Fogel efif@post.tau.ac.il School of computer science, Tel Aviv University Fall 2003/4 Motion Planning seminar 1/33 The Papers A Fast Procedure for Computing the Distance

More information

Lecture 25 of 41. Spatial Sorting: Binary Space Partitioning Quadtrees & Octrees

Lecture 25 of 41. Spatial Sorting: Binary Space Partitioning Quadtrees & Octrees Spatial Sorting: Binary Space Partitioning Quadtrees & Octrees William H. Hsu Department of Computing and Information Sciences, KSU KSOL course pages: http://bit.ly/hgvxlh / http://bit.ly/evizre Public

More information

Spatial Data Structures and Speed-Up Techniques. Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology

Spatial Data Structures and Speed-Up Techniques. Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology Spatial Data Structures and Speed-Up Techniques Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology Spatial data structures What is it? Data structure that organizes

More information

1 Introduction. 1.1 Main Contributions

1 Introduction. 1.1 Main Contributions Appeared in Proc. of IEEE Conf. on Robotics and Automation, 2000 Fast Distance Queries with Rectangular Swept Sphere Volumes Λ Eric Larsen Stefan Gottschalk Ming C. Lin Dinesh Manocha Department of Computer

More information

Objects DO overlap. Objects DO NOT overlap. No calculations needed.

Objects DO overlap. Objects DO NOT overlap. No calculations needed. Physically Based Modeling for Interactive Simulation and Games Scribe Notes for the lecture on February 23rd Collision Detection Spring 2011 Recep Doga Siyli Collision detection involves "computational

More information

Ray Tracing. Cornell CS4620/5620 Fall 2012 Lecture Kavita Bala 1 (with previous instructors James/Marschner)

Ray Tracing. Cornell CS4620/5620 Fall 2012 Lecture Kavita Bala 1 (with previous instructors James/Marschner) CS4620/5620: Lecture 37 Ray Tracing 1 Announcements Review session Tuesday 7-9, Phillips 101 Posted notes on slerp and perspective-correct texturing Prelim on Thu in B17 at 7:30pm 2 Basic ray tracing Basic

More information

l Without collision detection (CD), it is practically impossible to construct e.g., games, movie production tools (e.g., Avatar)

l Without collision detection (CD), it is practically impossible to construct e.g., games, movie production tools (e.g., Avatar) Collision Detection Originally created by Tomas Akenine-Möller Updated by Ulf Assarsson Department of Computer Engineering Chalmers University of Technology Introduction l Without collision detection (CD),

More information

Accurate and Fast Proximity Queries Between Polyhedra Using Convex Surface Decomposition

Accurate and Fast Proximity Queries Between Polyhedra Using Convex Surface Decomposition EUROGRAPHICS 2001 / A. Chalmers and T.-M. Rhyne (Guest Editors) Volume 20 (2001), Number 3 Accurate and Fast Proximity Queries Between Polyhedra Using Convex Surface Decomposition Stephen A. Ehmann and

More information

Speeding Up Ray Tracing. Optimisations. Ray Tracing Acceleration

Speeding Up Ray Tracing. Optimisations. Ray Tracing Acceleration Speeding Up Ray Tracing nthony Steed 1999, eline Loscos 2005, Jan Kautz 2007-2009 Optimisations Limit the number of rays Make the ray test faster for shadow rays the main drain on resources if there are

More information

Geometric Computations for Simulation

Geometric Computations for Simulation 1 Geometric Computations for Simulation David E. Johnson I. INTRODUCTION A static virtual world would be boring and unlikely to draw in a user enough to create a sense of immersion. Simulation allows things

More information

A specialised collision detector for grape vines

A specialised collision detector for grape vines A specialised collision detector for grape vines Scott Paulin, Tom Botterill, XiaoQi Chen, Richard Green University of Canterbury, New Zealand scott.paulin@pg.canterbury.ac.nz Abstract Efficient motion

More information

Efficient Interference Calculation by Tight Bounding Volumes

Efficient Interference Calculation by Tight Bounding Volumes Efficient Interference Calculation by Tight Bounding Volumes Masatake Higashi, Yasuyuki Suzuki, Takeshi Nogawa, Yoichi Sano, and Masakazu Kobayashi Mechanical Systems Engineering Division, Toyota Technological

More information

Real-Time Collision Detection for Dynamic Virtual Environments

Real-Time Collision Detection for Dynamic Virtual Environments Real-Time Collision Detection for Dynamic Virtual Environments Gabriel Zachmann, Matthias Teschner, Stefan Kimmerle, Bruno Heidelberger, Laks Raghupathi, Arnulph Fuhrmann To cite this version: Gabriel

More information

08: CONTACT MODELLING 15/02/2016

08: CONTACT MODELLING 15/02/2016 08: CONTACT MODELLING 15/02/2016 2 THE NARROW PHASE The purpose of Narrow Phase: Exact collision detection AND also where precisely have objects touched, where to apply forces, torques? Image 2004 Pauly,

More information

Chapter 11 Global Illumination. Part 1 Ray Tracing. Reading: Angel s Interactive Computer Graphics (6 th ed.) Sections 11.1, 11.2, 11.

Chapter 11 Global Illumination. Part 1 Ray Tracing. Reading: Angel s Interactive Computer Graphics (6 th ed.) Sections 11.1, 11.2, 11. Chapter 11 Global Illumination Part 1 Ray Tracing Reading: Angel s Interactive Computer Graphics (6 th ed.) Sections 11.1, 11.2, 11.3 CG(U), Chap.11 Part 1:Ray Tracing 1 Can pipeline graphics renders images

More information

Accelerated Proximity Queries Between Convex Polyhedra By Multi-Level Voronoi Marching

Accelerated Proximity Queries Between Convex Polyhedra By Multi-Level Voronoi Marching Accelerated Proximity Queries Between Convex Polyhedra By Multi-Level Voronoi Marching Stephen A. Ehmann Ming C. Lin Department of Computer Science University of North Carolina Chapel Hill, NC 27599-3175

More information

Advanced Ray Tracing

Advanced Ray Tracing Advanced Ray Tracing Thanks to Fredo Durand and Barb Cutler The Ray Tree Ni surface normal Ri reflected ray Li shadow ray Ti transmitted (refracted) ray 51 MIT EECS 6.837, Cutler and Durand 1 Ray Tree

More information

Geometry proxies (in 2D): a Convex Polygon

Geometry proxies (in 2D): a Convex Polygon Geometry proxies (in 2D): a Convex Polygon Intersection of half-planes each delimited by a line Stored as: Test: a collection of (oriented) lines a point is inside iff it is in each half-plane A very good

More information

CMSC 425: Lecture 10 Geometric Data Structures for Games: Index Structures Tuesday, Feb 26, 2013

CMSC 425: Lecture 10 Geometric Data Structures for Games: Index Structures Tuesday, Feb 26, 2013 CMSC 2: Lecture 10 Geometric Data Structures for Games: Index Structures Tuesday, Feb 2, 201 Reading: Some of today s materials can be found in Foundations of Multidimensional and Metric Data Structures,

More information

Deformable Proximity Queries and their Application in Mobile Manipulation Planning

Deformable Proximity Queries and their Application in Mobile Manipulation Planning Deformable Proximity Queries and their Application in Mobile Manipulation Planning M. Gissler and C. Dornhege and B. Nebel and M. Teschner Computer Science Department, University of Freiburg, Germany Abstract.

More information

Ray Tracing with Spatial Hierarchies. Jeff Mahovsky & Brian Wyvill CSC 305

Ray Tracing with Spatial Hierarchies. Jeff Mahovsky & Brian Wyvill CSC 305 Ray Tracing with Spatial Hierarchies Jeff Mahovsky & Brian Wyvill CSC 305 Ray Tracing Flexible, accurate, high-quality rendering Slow Simplest ray tracer: Test every ray against every object in the scene

More information

Jane Li. Assistant Professor Mechanical Engineering Department, Robotic Engineering Program Worcester Polytechnic Institute

Jane Li. Assistant Professor Mechanical Engineering Department, Robotic Engineering Program Worcester Polytechnic Institute Jane Li Assistant Professor Mechanical Engineering Department, Robotic Engineering Program Worcester Polytechnic Institute (3 pts) How to generate Delaunay Triangulation? (3 pts) Explain the difference

More information

Computer Graphics Ray Casting. Matthias Teschner

Computer Graphics Ray Casting. Matthias Teschner Computer Graphics Ray Casting Matthias Teschner Outline Context Implicit surfaces Parametric surfaces Combined objects Triangles Axis-aligned boxes Iso-surfaces in grids Summary University of Freiburg

More information

A Survey on Collision Detection Techniques for Virtual Environments

A Survey on Collision Detection Techniques for Virtual Environments A Survey on Collision Detection Techniques for Virtual Environments Mauro Figueiredo 1,2, Luis Marcelino 1, Terrence Fernando 1 1 Centre for Virtual Environments, University of Salford University Road,

More information

Accelerating Geometric Queries. Computer Graphics CMU /15-662, Fall 2016

Accelerating Geometric Queries. Computer Graphics CMU /15-662, Fall 2016 Accelerating Geometric Queries Computer Graphics CMU 15-462/15-662, Fall 2016 Geometric modeling and geometric queries p What point on the mesh is closest to p? What point on the mesh is closest to p?

More information

Collision Detection between Dynamic Rigid Objects and Static Displacement Mapped Surfaces in Computer Games

Collision Detection between Dynamic Rigid Objects and Static Displacement Mapped Surfaces in Computer Games between Dynamic Rigid Objects and Static Displacement Mapped Surfaces in Computer Games Author:, KTH Mentor: Joacim Jonsson, Avalanche Studios Supervisor: Prof. Christopher Peters, KTH 26 June, 2015 Overview

More information

Exact distance computation for deformable objects

Exact distance computation for deformable objects Exact distance computation for deformable objects Marc Gissler University of Freiburg, Germany Matthias Teschner University of Freiburg, Germany Udo Frese University of Bremen, Germany Abstract We present

More information

The Construction of Balanced Bounding-Volume Hierarchies using Spatial Object Median Splitting Method for Collision Detection

The Construction of Balanced Bounding-Volume Hierarchies using Spatial Object Median Splitting Method for Collision Detection The Construction of Balanced Bounding-Volume Hierarchies using Spatial Object Median Splitting Method for Collision Detection Hamzah Asyrani Sulaiman 1, and Abdullah Bade 2 1 Universiti Teknikal Malaysia

More information

Virtual Reality in Assembly Simulation

Virtual Reality in Assembly Simulation Virtual Reality in Assembly Simulation Collision Detection, Simulation Algorithms, and Interaction Techniques Contents 1. Motivation 2. Simulation and description of virtual environments 3. Interaction

More information

DiFi: Distance Fields - Fast Computation Using Graphics Hardware

DiFi: Distance Fields - Fast Computation Using Graphics Hardware DiFi: Distance Fields - Fast Computation Using Graphics Hardware Avneesh Sud Dinesh Manocha UNC-Chapel Hill http://gamma.cs.unc.edu/difi Distance Fields Distance Function For a site a scalar function f:r

More information

Topics. Ray Tracing II. Intersecting transformed objects. Transforming objects

Topics. Ray Tracing II. Intersecting transformed objects. Transforming objects Topics Ray Tracing II CS 4620 Lecture 16 Transformations in ray tracing Transforming objects Transformation hierarchies Ray tracing acceleration structures Bounding volumes Bounding volume hierarchies

More information

Lecture 11: Ray tracing (cont.)

Lecture 11: Ray tracing (cont.) Interactive Computer Graphics Ray tracing - Summary Lecture 11: Ray tracing (cont.) Graphics Lecture 10: Slide 1 Some slides adopted from H. Pfister, Harvard Graphics Lecture 10: Slide 2 Ray tracing -

More information

Software Structures for Virtual Environments

Software Structures for Virtual Environments Software Structures for Virtual Environments Michael Zyda Naval Postgraduate School { Zyda }@cs.nps.navy.mil What does VR software look like? One Thread, Multiple Threads Important Subsystems Real-Time

More information

Computer Graphics (CS 543) Lecture 13b Ray Tracing (Part 1) Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

Computer Graphics (CS 543) Lecture 13b Ray Tracing (Part 1) Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI) Computer Graphics (CS 543) Lecture 13b Ray Tracing (Part 1) Prof Emmanuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI) Raytracing Global illumination-based rendering method Simulates

More information

Ray-tracing Acceleration. Acceleration Data Structures for Ray Tracing. Shadows. Shadows & Light Sources. Antialiasing Supersampling.

Ray-tracing Acceleration. Acceleration Data Structures for Ray Tracing. Shadows. Shadows & Light Sources. Antialiasing Supersampling. Ray-tracing Acceleration Acceleration Data Structures for Ray Tracing Thanks to Fredo Durand and Barb Cutler Soft shadows Antialiasing (getting rid of jaggies) Glossy reflection Motion blur Depth of field

More information

Lecture 2 - Acceleration Structures

Lecture 2 - Acceleration Structures INFOMAGR Advanced Graphics Jacco Bikker - November 2017 - February 2018 Lecture 2 - Acceleration Structures Welcome! I x, x = g(x, x ) ε x, x + න S ρ x, x, x I x, x dx Today s Agenda: Problem Analysis

More information

Spatial Data Structures. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

Spatial Data Structures. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017 Spatial Data Structures Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017 Ray Intersections We can roughly estimate the time to render an image as being proportional to the number of ray-triangle

More information

Solid Modelling. Graphics Systems / Computer Graphics and Interfaces COLLEGE OF ENGINEERING UNIVERSITY OF PORTO

Solid Modelling. Graphics Systems / Computer Graphics and Interfaces COLLEGE OF ENGINEERING UNIVERSITY OF PORTO Solid Modelling Graphics Systems / Computer Graphics and Interfaces 1 Solid Modelling In 2D, one set 2D line segments or curves does not necessarily form a closed area. In 3D, a collection of surfaces

More information

COMPUTATIONAL GEOMETRY

COMPUTATIONAL GEOMETRY Thursday, September 20, 2007 (Ming C. Lin) Review on Computational Geometry & Collision Detection for Convex Polytopes COMPUTATIONAL GEOMETRY (Refer to O'Rourke's and Dutch textbook ) 1. Extreme Points

More information

Computer Graphics. - Spatial Index Structures - Philipp Slusallek

Computer Graphics. - Spatial Index Structures - Philipp Slusallek Computer Graphics - Spatial Index Structures - Philipp Slusallek Overview Last lecture Overview of ray tracing Ray-primitive intersections Today Acceleration structures Bounding Volume Hierarchies (BVH)

More information

Fast Proximity Computation among Deformable Models Using Discrete Voronoi Diagrams

Fast Proximity Computation among Deformable Models Using Discrete Voronoi Diagrams Fast Proximity Computation among Deformable Models Using Discrete Voronoi Diagrams Avneesh Sud Naga Govindaraju Russell Gayle Ilknur Kabul Dinesh Manocha Dept of Computer Science, University of North Carolina

More information

Topics. Ray Tracing II. Transforming objects. Intersecting transformed objects

Topics. Ray Tracing II. Transforming objects. Intersecting transformed objects Topics Ray Tracing II CS 4620 ations in ray tracing ing objects ation hierarchies Ray tracing acceleration structures Bounding volumes Bounding volume hierarchies Uniform spatial subdivision Adaptive spatial

More information

Spatial Data Structures and Acceleration Algorithms

Spatial Data Structures and Acceleration Algorithms Spatial Data Structures and Acceleration Algorithms Real-time Renderg Performance Goals Spatial Structures Boundg Volume Hierarchies (BVH) Bary Space Partiong(BSP) Trees, Octrees Scene Graphs Cullg Techniques

More information

PolyDepth: Real-Time Penetration Depth Computation Using Iterative Contact-Space Projection

PolyDepth: Real-Time Penetration Depth Computation Using Iterative Contact-Space Projection ACM Transactions on Graphics (ToG), Vol. 31, No. 1, Article 5, 2012 PolyDepth: Real-Time Penetration Depth Computation Using Iterative Contact-Space Projection Changsoo Je Ewha Womans University and Sogang

More information

INFOGR Computer Graphics. J. Bikker - April-July Lecture 11: Acceleration. Welcome!

INFOGR Computer Graphics. J. Bikker - April-July Lecture 11: Acceleration. Welcome! INFOGR Computer Graphics J. Bikker - April-July 2015 - Lecture 11: Acceleration Welcome! Today s Agenda: High-speed Ray Tracing Acceleration Structures The Bounding Volume Hierarchy BVH Construction BVH

More information

Fast continuous collision detection among deformable Models using graphics processors CS-525 Presentation Presented by Harish

Fast continuous collision detection among deformable Models using graphics processors CS-525 Presentation Presented by Harish Fast continuous collision detection among deformable Models using graphics processors CS-525 Presentation Presented by Harish Abstract: We present an interactive algorithm to perform continuous collision

More information

Tracking Minimum Distances between Curved Objects with Parametric Surfaces in Real Time

Tracking Minimum Distances between Curved Objects with Parametric Surfaces in Real Time Tracking Minimum Distances between Curved Objects with Parametric Surfaces in Real Time Zhihua Zou, Jing Xiao Department of Computer Science University of North Carolina Charlotte zzou28@yahoo.com, xiao@uncc.edu

More information

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo Computer Graphics Bing-Yu Chen National Taiwan University The University of Tokyo Hidden-Surface Removal Back-Face Culling The Depth-Sort Algorithm Binary Space-Partitioning Trees The z-buffer Algorithm

More information

Fast Penetration Depth Computation Using Rasterization Hardware and Hierarchical Refinement

Fast Penetration Depth Computation Using Rasterization Hardware and Hierarchical Refinement Fast Penetration Depth Computation Using Rasterization Hardware and Hierarchical Refinement Young J. Kim Miguel A. Otaduy Ming C. Lin and Dinesh Manocha Department of Computer Science University of North

More information

Continuous Collision Detection and Physics

Continuous Collision Detection and Physics Continuous Collision Detection and Physics Erwin Coumans, Sony Computer Entertainment August 2005, Draft revision 5 0 Overview A novel approach to Angular and Linear Continuous Collision Detection is presented.

More information

Virtual Reality & Physically-Based Simulation

Virtual Reality & Physically-Based Simulation Virtual Reality & Physically-Based Simulation Collision Detection G. Zachmann University of Bremen, Germany cgvr.cs.uni-bremen.de Examples of Applications Virtual Prototyping Physically-based simulation

More information

Abstract. 1 Introduction. 2 Translational Penetration Depth

Abstract. 1 Introduction. 2 Translational Penetration Depth Fast Penetration Depth Computation and its Applications (http://gamma.cs.unc.edu/deep PD PDG) Young J. Kim Dept. of Computer Sci. and Eng. Ewha Womans Univ., Seoul, Korea kimy@ewha.ac.kr Liangjun Zhang

More information

Closest Point Query Among The Union Of Convex Polytopes Using Rasterization Hardware

Closest Point Query Among The Union Of Convex Polytopes Using Rasterization Hardware Closest Point Query Among The Union Of Convex Polytopes Using Rasterization Hardware Young J. Kim Kenneth Hoff Ming C. Lin and Dinesh Manocha Department of Computer Science University of North Carolina

More information

Geometric Algorithms. Geometric search: overview. 1D Range Search. 1D Range Search Implementations

Geometric Algorithms. Geometric search: overview. 1D Range Search. 1D Range Search Implementations Geometric search: overview Geometric Algorithms Types of data:, lines, planes, polygons, circles,... This lecture: sets of N objects. Range searching Quadtrees, 2D trees, kd trees Intersections of geometric

More information

Introduction to 2D and 3D Computer Graphics. Realistic Rendering. -- Solids Modeling --

Introduction to 2D and 3D Computer Graphics. Realistic Rendering. -- Solids Modeling -- Introduction to 2D and 3D Computer Graphics Realistic Rendering -- Solids Modeling -- CS447/547 10-1 CS447/547 10-2 Solid objects can be defined......by sweeping an object along a trajectory through space...this

More information

VIII. Visibility algorithms (II)

VIII. Visibility algorithms (II) VIII. Visibility algorithms (II) Hybrid algorithsms: priority list algorithms Find the object visibility Combine the operations in object space (examples: comparisons and object partitioning) with operations

More information

Six-Degree-of-Freedom Haptic Rendering Using Incremental and Localized Computations

Six-Degree-of-Freedom Haptic Rendering Using Incremental and Localized Computations Six-Degree-of-Freedom Haptic Rendering Using Incremental and Localized Computations Young J. Kim Miguel A. Otaduy Ming C. Lin Dinesh Manocha Department of Computer Science University of North Carolina

More information

Adaptive Medial-Axis Approximation for Sphere-Tree Construction

Adaptive Medial-Axis Approximation for Sphere-Tree Construction Adaptive Medial-Axis Approximation for Sphere-Tree Construction GARETH BRADSHAW and CAROL O SULLIVAN Image Synthesis Group, Trinity College, Dublin Hierarchical object representations play an important

More information