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

Similar documents
Collision and Proximity Queries

Collision Detection. 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

COMPUTATIONAL GEOMETRY

Collision Detection with Bounding Volume Hierarchies

Introduction to Collision Detection

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

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

Dynamic Collision Detection

Real-time Continuous Collision Detection and Penetration Depth Computation

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

Critique for CS 448B: Topics in Modeling The Voronoi-clip Collision Detection Algorithm

Distance and Collision Detection

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

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

Geometric Computations for Simulation

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

Lesson 05. Mid Phase. Collision Detection

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

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

An Efficient Visual Hull Computation Algorithm

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

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

Interactive and Exact Collision Detection for. Multi-Body Environments. Naval Postgraduate School.

High-performance Penetration Depth Computation for Haptic Rendering

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

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

Software Structures for Virtual Environments

Geometric Computation: Introduction

08: CONTACT MODELLING 15/02/2016

Computational Geometry

Geometric Rounding. Snap rounding arrangements of segments. Dan Halperin. Tel Aviv University. AGC-CGAL05 Rounding 1

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

I-COLLIDE: An Interactive and Exact Collision Detection System for Large-Scale Environments

Collision Detection for Interactive Environments. and Simulations. Madhav K. Ponamgi. University of North Carolina

Motion Planning. O Rourke, Chapter 8

Computational Geometry

Continuous Collision Detection and Physics

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

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

A Different Approach for Continuous Physics. Vincent ROBERT Physics Programmer at Ubisoft

DiFi: Distance Fields - Fast Computation Using Graphics Hardware

CSE 167: Introduction to Computer Graphics Lecture #18: More Effects. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

Accurate and Fast Proximity Queries Between Polyhedra Using Convex Surface Decomposition

Robust Continuous Collision Detection Between Arbitrary Polyhedra Using Trajectory Parameterization of Polyhedral Features

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

CS 532: 3D Computer Vision 14 th Set of Notes

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

Zonotopes as Bounding Volumes

Page 1. Area-Subdivision Algorithms z-buffer Algorithm List Priority Algorithms BSP (Binary Space Partitioning Tree) Scan-line Algorithms

Linear programming and duality theory

Collision Detection of Cylindrical Rigid Bodies for Motion Planning

CS 372: Computational Geometry Lecture 3 Line Segment Intersection

be a polytope. has such a representation iff it contains the origin in its interior. For a generic, sort the inequalities so that

6.854J / J Advanced Algorithms Fall 2008

Data Structures for Approximate Proximity and Range Searching

Collision processing

Abstract. 1 Introduction. 2 Translational Penetration Depth

Autonomous and Mobile Robotics Prof. Giuseppe Oriolo. Motion Planning 1 Retraction and Cell Decomposition

Sung-Eui Yoon ( 윤성의 )

Math 414 Lecture 2 Everyone have a laptop?

A Survey on Techniques for Computing Penetration Depth.

Fast Penetration Depth Computation Using Rasterization Hardware and Hierarchical Refinement

1 Introduction. 1.1 Main Contributions

Reconstructing Orthogonal Polyhedra from Putative Vertex Sets

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

Generalized Penetration Depth Computation

Rigid Body Simulation. Jeremy Ulrich Advised by David Mount Fall 2013

CS 763 F16. Moving objects in space with obstacles/constraints.

Volumetric Particle Separating Planes for Collision Detection

Lecture 11: Ray tracing (cont.)

LASER ADDITIVE MANUFACTURING PROCESS PLANNING AND AUTOMATION

APPLIED aspects of COMPUTATIONAL GEOMETRY. Dan Halperin School of Computer Science Tel Aviv University

Collision Detection based on Spatial Partitioning

Hierarchical Techniques in Collision Detection for Cloth Animation

Fast Penetration Depth Computation for Physically-based Animation

ASIA MAHDI NASER ALZUBAIDI Computer Science Department, College of Science Karbala University Karbala, Iraq MAIS SAAD AL-SAOUD

Computational Geometry. Algorithm Design (10) Computational Geometry. Convex Hull. Areas in Computational Geometry

Collision Detection Algorithms for Motion Planning

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

Generating Tool Paths for Free-Form Pocket Machining Using z-buffer-based Voronoi Diagrams

A Fast Method for Local Penetration Depth Computation. Stephane Redon and Ming C. Lin

Figure 2.1: An example of a convex set and a nonconvex one.

COMP331/557. Chapter 2: The Geometry of Linear Programming. (Bertsimas & Tsitsiklis, Chapter 2)

Spatial Data Structures

Planning in Mobile Robotics

f-v v-f f-e e-f f-f e-e-cross e-v v-e degenerate PCs e-e-touch v-v

Accelerated Haptic Rendering of Polygonal Models through Local Descent

Approximate Nearest Neighbor Problem: Improving Query Time CS468, 10/9/2006

GI-COLLIDE Collision Detection with Geometry Images

Self-Collision Detection and Prevention for Humanoid Robots. Talk Overview

Voronoi diagram and Delaunay triangulation

Sublinear Geometric Algorithms

Simulation in Computer Graphics Space Subdivision. Matthias Teschner

Chapter 4. Chapter 4. Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 1

ECE276B: Planning & Learning in Robotics Lecture 5: Configuration Space

Simple Silhouettes for Complex Surfaces

Convex Geometry arising in Optimization

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

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

Transcription:

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 3D Graphics, 1995. (More details in Chapter 3 of M. Lin's Thesis) A Fast Procedure for Computing the Distance between Objects in Three-Dimensional Space, by E. G. Gilbert, D. W. Johnson, and S. S. Keerthi, In IEEE Transaction of Robotics and Automation, Vol. RA-4:193--203, 1988.

Geometric Proximity Queries Given two object, 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

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 = 1000+

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) CSG vs. B-Rep Static vs. Dynamic And so on This may include other geometric representation schemata, etc.

Some Possible Approaches Geometric methods Algebraic Techniques Hierarchical Bounding Volumes Spatial Partitioning Others (e.g. optimization)

Voronoi Diagrams Given a set S of n points in R 2, for each point p i in S, there is the set of points (x, y) in the plane that are closer to p i than any other point in S, called Voronoi polygons. The collection of n Voronoi polygons given the n points in the set S is the "Voronoi diagram", Vor(S), of the point set S. Intuition: To partition the plane into regions, each of these is the set of points that are closer to a point p i in S than any other. The partition is based on the set of closest points, e.g. bisectors that have 2 or 3 closest points.

Generalized Voronoi Diagrams The extension of the Voronoi diagram to higher dimensional features (such as edges and facets, instead of points); i.e. the set of points closest to a feature, e.g. that of a polyhedron. FACTS: In general, the generalized Voronoi diagram has quadratic surface boundaries in it. If the polyhedron is convex, then its generalized Voronoi diagram has planar boundaries.

Voronoi Regions A Voronoi region associated with a feature is a set of points that are closer to that feature than any other. FACTS: The Voronoi regions form a partition of space outside of the polyhedron according to the closest feature. The collection of Voronoi regions of each polyhedron is the generalized Voronoi diagram of the polyhedron. The generalized Voronoi diagram of a convex polyhedron has linear size and consists of polyhedral regions. And, all Voronoi regions are convex.

Voronoi Marching Basic Ideas: Coherence: local geometry does not change much, when computations repetitively performed over successive small time intervals Locality: 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

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.

Basic Idea for Voronoi Marching

Linear Programming In general, a d-dimensional linear programming (or linear optimization) problem may be posed as follows: Given a finite set A in R d For each a in A, a constant K a in R, c in R d Find x in R d which minimize <x, c> Subject to <a, x> K a, for all a in A. where <*, *> is standard inner product in R d.

LP for Collision Detection 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).

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.

Some Minkowski Differences A B A B

Minkowski Difference & Translation Minkowski-Diff(Trans(A, t 1 ), Trans(B, t 2 )) = Trans(Minkowski-Diff(A,B), t 1 - t 2 ) Trans(A, t 1 ) and Trans(B, t 2 ) intersect iff Minkowski-Diff(A,B) contains point (t 2 - t 1 ).

Properties Distance distance(a,b) = min a A, b B a - b 2 distance(a,b) = min c Minkowski-Diff(A,B) c 2 if A and B disjoint, c is a point on boundary of Minkowski difference Penetration Depth pd(a,b) = min{ t 2 A Translated(B,t) = } pd(a,b) = min t Minkowski-Diff(A,B) t 2 if A and B intersect, t is a point on boundary of Minkowski difference

Practicality 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 for Computing Distance between Convex Polyhedra GJK-DistanceToOrigin ( P ) // dimension is m 1. Initialize P 0 with m+1 or fewer points. 2. k = 0 3. while (TRUE) { 4. if origin is within CH( P k ), return 0 5. else { 6. find x CH(P k ) closest to origin, and S k P k s.t. x CH(S k ) 7. see if any point p -x in P more extremal in direction -x 8. if no such point is found, return x 9. else { 10. P k+1 = S k {p -x } 11. k = k + 1 12. } 13. } 14. }

An Example of GJK

Running Time of GJK Each iteration of the while loop requires O(n) time. O(n) iterations possible. The authors claimed between 3 to 6 iterations on average for any problem size, making this expected linear. Trivial O(n) algorithms exist if we are given the boundary representation of a convex object, but GJK will work on point sets - computes CH lazily.

More on GJK Given A = CH(A ) A = { a 1, a 2,..., a n } and B = CH(B ) B = { b 1, b 2,..., b m } Minkowski-Diff(A,B) = CH(P), P = {a - b a A, b B } Can compute points of P on demand: p -x = a -x - b x where a -x is the point of A extremal in direction -x, and b x is the point of B extremal in direction x. The loop body would take O(n + m) time, producing the expected linear performance overall.

Large, Dynamic Environments For dynamic simulation where the velocity and acceleration of all objects are known at each step, use the scheduling scheme (implemented as heap) to prioritize critical events to be processed. Each object pair is tagged with the estimated time to next collision. Then, each pair of objects is processed accordingly. The heap is updated when a collision occurs.

Scheduling Scheme a max : an upper bound on relative acceleration between any two points on any pair of objects. a lin : relative absolute linear α: relative rotational accelerations ω: relative rotational velocities r: vector difference btw CoM of two bodies d: initial separation for two given objects a max = a lin + α x r + ω x ω x r v i = v lin + ω x r Estimated Time to collision: t c = { (v i 2 + 2 a max d) 1/2 - v i } / a max

Collide System Architecture Transform Sweep & Prune Overlap Simulation Exact Collision Detection Parameters Analysis & Response Collision

Sweep and Prune Compute the axis-aligned bounding box (fixed vs. dynamic) for each object Dimension Reduction by projecting boxes onto each x, y, z- axis Sort the endpoints and find overlapping intervals Possible collision -- only if projected intervals overlap in all 3 dimensions

Sweep & Prune T = 1 e 3 e 2 b 3 e 1 b 2 b 1 b 2 e 1 e 2 b 3 e 3 b 1 T = 2 e 2 e 1 b 2 e 3 b 1 b 1 b 2 e 1 e 2 b 3 e 3 b 3

Updating Bounding Boxes Coherence (greedy algorithm) Convexity properties (geometric properties of convex polytopes) Nearly constant time, if the motion is relatively small

Use of Sorting Methods Initial sort -- quick sort runs in O(m log m) just as in any ordinary situation Updating -- insertion sort runs in O(m) due to coherence. We sort an almost sorted list from last stimulation step. In fact, we look for swap of positions in all 3 dimension.

Implementation Issues Collision matrix -- basically adjacency matrix Enlarge bounding volumes with some tolerance threshold Quick start polyhedral collision test -- using bucket sort & look-up table