Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski,...

25
Efficient collision detection using bounding volume hierarchies of k- DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and Karel Zikan Presented by Paul Phipps

Transcript of Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski,...

Page 1: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Efficient collision detection using bounding volume hierarchies of k-DOPs

byJames T. Klosowski,

Martin Held, Joseph S.B. Mitchell,Henry Sowizral, and Karel Zikan

Presented by Paul Phipps

Page 2: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Overview

• Background• Collision Detection Perspective• k-DOP• Cost Function• Design Choices for BV Tree• Tumbling the k-DOPs• Experimental Results• Future Work

Page 3: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Background• Collision Detection

– Pure detection– Detect and report

• Do fewer comparisons– Between pairs of objects– Between pairs of primitives

• Approaches– Spatial Decomposition

• Octrees, k-d trees, BSP-trees, brep-indices, tetrahedral meshes, and (regular) grids

– Bounding Volumes Hierarchy• Spheres, axis-aligned bounding boxes (AABBs), oriented

bounding box (OBB) (“RAPID” uses OBBTrees)– Miscellaneous

Page 4: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Collision Detection Perspective• Assumptions

– Rigid bodies– Discrete points in time

• Typical input:– Static object (the environment)– Moving object (the flying hierarchy)

• Goals:– Accuracy– Real-time rates

• Haptics can require over 1000 collision queries per second

Page 5: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.
Page 6: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Contributions…

• “k-DOP” (Discrete Orientation Polytope)– convex polytope whose facets are determined

by halfspaces whose outward normals come from a small fixed set of k orientations

– Axis Aligned Bounding Box == 6-DOP– ((using axes +x, -x, +y, -y, +z, and -z)

• k-DOPs used in experiments:– 6-DOP, 14-DOP, 18-DOP, 26-DOP

Page 7: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

…Contributions• Compare ways to construct a Bounding

Volume Hierarchy (“BV-tree”) of k-DOPs

• Algorithms– Maintain k-DOP BV-tree for moving objects

• Translation• Rotation

– Fast collision detection• Using BV-trees of moving object and of

environment

• Results with real and simulated data

Page 8: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.
Page 9: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.
Page 10: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Cost Function

• N = number of occurrences• C = cost per occurrence

uuppvv CNCNCNT

Bounding Volume Overlap Tests

Primitive Overlap Tests

Updates of Hierarchy nodes

Page 11: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

k-DOP Advantages over other BV

• Tighter fit than AABB or Sphere– The higher the k the lower Nv, Np, and Nu

• Only k values to remember for a BV (using opposite-pointing orientations)

• Simpler overlap tests than OBB– Just do (k / 2) interval overlap tests

• The parameter k can be chosen to get a good balance between tight fit and quick overlap test

Page 12: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Design Choices for BV Tree

• Branching degree 2 (binary tree) is good– Simple to implement– Simple to traverse tree

• Splitting rule for pre-computing the tree structure– Pick either x, y, or z axis (using various tests)– Sort along that axis, then use

• Median• Mean

– Recur

Page 13: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.
Page 14: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Tumbling the k-DOPs

• “hill climbing” method– Use pre-computed convex hulls– Are extreme vertices still extreme?

• If not, “climb” to more extreme neighbors

– Advantage: tight

• “approximation method”– Rotate vertices of k-DOP

• Get new k-DOP• Don’t accumulate error: Rotate from pre-computed vertices in

Model-Space

– Advantage: fast

For Root Node

For non-Root Nodes

Page 15: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Algorithm 1

Page 16: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.
Page 17: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.
Page 18: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.
Page 19: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.
Page 20: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.
Page 21: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.
Page 22: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Future Work

• Use of temporal coherence

• Multiple flying objects

• Dynamic environments

• Deformable objects

• Numerically Controlled Verification

Page 23: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Overview

• Background• Collision Detection Perspective• k-DOP• Cost Function• Design Choices for BV Tree• Tumbling the k-DOPs• Experimental Results• Future Work

Page 24: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Questions?

Page 25: Efficient collision detection using bounding volume hierarchies of k-DOPs by James T. Klosowski, Martin Held, Joseph S.B. Mitchell, Henry Sowizral, and.

Continuous Collision Detectionof Deformable Objects using k-DOPs