Collision Detection • Collision Detection Is an Essential Part of Physically Realistic Dynamic Simulations

Total Page:16

File Type:pdf, Size:1020Kb

Collision Detection • Collision Detection Is an Essential Part of Physically Realistic Dynamic Simulations Motivation - Dynamic Simulation ETH Zurich ETH Zurich Collision Detection • Collision detection is an essential part of physically realistic dynamic simulations. • For each time step: •compute dynamics • detect collisions • resolve collisions Stefan Gottschalk, UNC Jim Cremer, Univ of Iowa Matthias Teschner M Teschner – Collision Detection GDV 2 – Sommersemester 20021 M Teschner – Collision Detection 2 Motivation - Biomedical Simulation Motivation - Path Planning ETH Zurich ETH Zurich • Dysfunction of the hip joint due to reoriented femoral head • Restricted range of motion in hip joint Stefan Gottschalk, UNC • Simulation of the range of motion to decide whether a reorienting Jean-Claude Latombe, Stanford Univ osteotomy of the proximal femur can improve the range of motion Planning a path for the torus • Triangulated surface representation of the bone structure involves collision detection tests. -> collision detection problem M Teschner – Collision Detection 3 M Teschner – Collision Detection 4 1 Motivation Motivation - Robotics ETH Zurich Molecular Motion, Protein Folding ETH Zurich Sanchez, Latombe, Stanford Univ Singh, Latombe, Brutlag, Stanford Univ • Collision detection is required to coordinate all tasks for all robots • Computation of low-energy states for designed drug molecules •Can be time-critical in case of a break-down M Teschner – Collision Detection 5 M Teschner – Collision Detection 6 Outline Bounding Volumes ETH Zurich ETH Zurich Bounding Volumes Simplified conservative surface representation for fast approximative collision detection test Hierarchies of Bounding Volumes • Spheres • Axis-aligned bounding boxes (ABB) Spatial Partitioning • Object-oriented bounding boxes (OBB) • Discrete orientation polytopes (k-DOPs) Distance Fields Collision Detection • Avoid checking all object primitives. for Deformable Objects • Check bounding volumes to get the information whether objects could interfere. M Teschner – Collision Detection 7 M Teschner – Collision Detection 8 2 Spheres and Overlapping Test Sphere as Bounding Volume ETH Zurich ETH Zurich Sphere is represented by center c and radius r. c2 c2 r1 r2 good choice. bad choice. − − > + 2 Two spheres do not overlap if (c1 c2 )(c1 c2 ) (r1 r2 ) M Teschner – Collision Detection 9 M Teschner – Collision Detection 10 Axis-Aligned Bounding Box - ABB ABB as Bounding Volume ETH Zurich ETH Zurich y ABB is represented by c1 center c and radii rx, ry. rx2 c2 ry2 x 1 − > + good choice. bad choice. Two ABBs do not overlap in 2D if (c1 c2 ) rx1 rx2 0 0 − > + or (c1 c2 ) ry1 ry2 1 M Teschner – Collision Detection 11 M Teschner – Collision Detection 12 3 Discrete Orientation Polytope - k-DOP k-DOPs as Bounding Volumes ETH Zurich ETH Zurich A k-DOP is “a convex polytope whose facets are determined by halfspaces Example: 8-DOP whose outward normals come from a small fixed set of k orientations.” [Klosowski] Larger k’s are more flexible than smaller. ABB is a 4-DOP. Is a 4-DOP an ABB? y k-DOP is represented by k/2 directions and k/2 pairs of min, max values. min1 max1 x min2 Two k-DOPs do not overlap, max2 good choice. quite good choice. Examples: if at least the intervals in 6-, 14-, 18-, 26-DOPs one direction do not overlap. M Teschner – Collision Detection 13 M Teschner – Collision Detection 14 Object-Oriented Bounding Box OBB OBB Overlapping Test in 2D ETH Zurich ETH Zurich An OBB is represented by the b1B1 Β principal axes of a set of vertices. Α Β A1, A2 , B1, B2 •axes of , These axes are not fixed. They move Α b B • unit vectors according to object transformations. T 2 2 a1,a2 ,b1,b2 • 'radii' of Α,Β a1A1 3 L • unit vector Vertices: vv∈ℜ a2 A2 n = + 1 pA a1 A1L a2 A2 L µ = pA Mean: vi pB n i =1 = + T ⋅ L L pB b1B1L b2 B2 L Covariance matrix: Eigenvectors of the n Α,Β do not overlap: covariance matrix = 1 Cjk vij vik n i=1 ∃ ⋅ > + ∃ ∈ ⋅ > + L : T L pA pB or L {}A1, A2 , B1, B2 : T L pA pB = − µ vi vi 1≤ j, k ≤ 3 M Teschner – Collision Detection 15 M Teschner – Collision Detection 16 4 OBB Examples Bounding Volumes - Summary ETH Zurich ETH Zurich • Principal axes of an object are not always a good choice for the main axes of an OBB! • Spheres • Inhomogeneous vertex distribution • Axis-aligned bounding boxes (ABB) can cause bad OBBs. • Object-oriented bounding boxes (OBB) • Discrete orientation polytopes (k-DOP’s) • Ellipsoids PSS •Convex Hulls • Swept-Sphere Volumes (SSV’s) • Point Swept Spheres (PSS) • Line Swept Spheres (LSS) • Rectangle Swept Spheres (RSS) • Triangle Swept Spheres (TSS) Lin, UNC LSS RSS M Teschner – Collision Detection 17 M Teschner – Collision Detection 18 The Optimal Bounding Volume ? Outline ETH Zurich ETH Zurich Bounding Volumes Hierarchies of Bounding Volumes Spatial Partitioning Sphere ABB OBB 6-DOP Convex Hull Distance Fields Quality: Better approximation Collision Detection for Deformable Objects Decreasing complexity and computational expenses for overlap test M Teschner – Collision Detection 19 M Teschner – Collision Detection 20 5 Hierarchy of Bounding Volumes Hierarchy of Bounding Volumes ETH Zurich ETH Zurich • Not only one bounding volume, but a hierarchical structure of BV for the bounding volumes entire object • Subdivsion of bounding volumes to generate a hierarchy BV • Bounding volume tree BV for parts Layer 1 Layer 2 Layer 3 (BV tree) of the object •Nodes contain BV BV bounding volume information • Leaves additionally BV BV contain information BV for a few/one primitives on object primitives object primitive(s) primitives primitives M Teschner – Collision Detection 21 M Teschner – Collision Detection 22 Hierarchy of Bounding Volumes - OBB Tree Example ETH Zurich ETH Zurich Object-oriented bounding box level 1 Object Object-oriented bounding boxes level n • Sean Quinlan, Stanford Univ • Philip Hubbard, Brown Univ M Teschner – Collision Detection 23 M Teschner – Collision Detection 24 6 ABB vs. OBB Tree Overlapping Test for BV Trees ETH Zurich ETH Zurich • BV-trees speed-up the collision detection test Representation • If bounding volumes in a hierarchy level overlap, their children are of a torus checked for overlapping. If leaves are reached, primitives are checked against each other. Lin, UNC Chapel Hill M Teschner – Collision Detection 25 M Teschner – Collision Detection 26 Construction of a BV Tree Construction of a BV Tree ETH Zurich ETH Zurich Bottom-Up Parameters • Start with object-representing primitives • Bounding volume • Fit a bounding volume to each primitive • Top-down vs. bottom-up • Group primitives or bounding volumes recursively • What to subdivide / group: object primitives or bounding volumes • Fit bounding volumes to these groups • How to subdivide / group object primitives or bounding volumes • Stop in case of a single bounding volume at a hierarchy level • How many primitives in each leaf of the BV tree • Re-sampling of the object ? Top-Down •Start with object Goals • Fit a bounding volume to the object • Split object or bounding volume recursively • Balanced tree • Fit bounding volumes • Tight-fitting bounding volumes • Stop, if all bounding volumes in a level contain less than n primitives • Minimal redundancy (primitives in more than one BV per level) M Teschner – Collision Detection 27 M Teschner – Collision Detection 28 7 Construction of a BV Tree - Spheres Collision Detection Libraries ETH Zurich ETH Zurich Hubbard: SOLID RAPID QuickCD • Approximate triangles with spheres and build the tree bottom-up by grouping spheres Axis-aligned Object-oriented k discrete • Cover vertices with spheres and group them bounding box bounding box orientation • Resample vertices prior to building the tree polytope (homogeneous vertex distribution reduces redundancy) • Build the tree top-down by using an octree • Compute the medial axis and place spheres on it medial axis van den Gottschalk Klosowski based Bergen et al. et al. Eindhoven University of University of University North Carolina New York octree based 1997 1995 1998 M Teschner – Collision Detection 29 M Teschner – Collision Detection 30 Comparison of CD Libraries Object Transformations ETH Zurich ETH Zurich • Time to compute a collision for two spheres with radius 1 cm • Translation represents the distance of both centers Some object transformations can be simply applied • QuickCD [Klosowski], RAPID [Gottschalk], SOLID [Bergen] to all elements of the bounding-volume tree: • Differences mostly due to programming aspects Spheres • Translation, rotation Axis-Aligned Bounding Boxes • Translation, no rotation Discrete Orientation Polytopes 10,000 triangles • Translation, no rotation per sphere (principal orientations are fixed for all objects) 8-DOP OBB Object-Oriented Bounding Boxes ABB • Translation, rotation (box orientations are not fixed) M Teschner – Collision Detection 31 M Teschner – Collision Detection 32 8 Rotations Parallel Close Proximity ETH Zurich ETH Zurich Axis-Aligned Bounding Boxes Discrete Orientation Polytopes • Quality of lower-level • Rotation of the bounding volume is not BV approximation possible due to the respective box overlap test. influences collision (The tests require fixed surface normals.) detection performance in case of close proximity. Problem Spheres 1. Recomputation of the BV hierarchy • Quality of higher-level 2. Preservation of the tree structure, update of all nodes BV approximations is 3. Additional storage of the convex hull which is rotated with the object not very critical. - check if extremal vertices are still extremal after rotation • In case of overlapping BV - compare with adjacent vertices of the convex hull expensive
Recommended publications
  • Tree Code for Collision Detection of Large Numbers of Particles
    Tree Code for Collision Detection of Large Numbers of Particles Application for the Breit-Wheeler Process [preprint] O. Jansen, E. d’Humi`eres, X. Ribeyre, S. Jequier, V.T. Tikhonchuk Univ. Bordeaux/CNRS/CEA, Centre Lasers Intenses et Applications [email protected] August 4, 2016 Abstract Collision detection of a large number N of particles can be challenging. Directly testing N particles for 2 collision among each other leads to N queries. Especially in scenarios, where fast, densely packed particles interact, challenges arise for classical methods like Particle-in-Cell or Monte-Carlo. Modern collision detec- tion methods utilising bounding volume hierarchies are suitable to overcome these challenges and allow a detailed analysis of the interaction of large number of particles. This approach is applied to the analysis of the collision of two photon beams leading to the creation of electron-positron pairs. Keywords tree code; collision detection; QED; Breit-Wheeler process; pair creation; astronomy 1 Introduction Modelling a large number of particles often is a challenge in physics. Many-body problems are well known in astronomy, plasma physics, solid state physics and other disciplines. In astronomy a common way to overcome the challenge of simulating a many-body problem, like the movement of stars of one galaxy under each others gravitational force, is to use the Barnes-Hut (BH) method [1]. In a BH simulation space is partitioned in an hierarchic octree structure. The tree branches grow towards successive smaller volumes of space in such way as to include at maximum one particle (star) in each leaf node, while still covering the entirety of the simulation domain.
    [Show full text]
  • Efficient Algorithms for Two-Phase Collision Detection
    MERL { A MITSUBISHI ELECTRIC RESEARCH LABORATORY http://www.merl.com Ecient Algorithms for Two-Phase Collision Detection Brian Mirtich TR-97-23 Decemb er 1997 Abstract This article describ es practical collision detection algorithms for rob ot motion planning. Attention is restricted to algorithms that handle rigid, p olyhedral ge- ometries. Both broad phase and narrow phase detection strategies are discussed. For the broad phase, an algorithm using axes-aligned b ounding b oxes and a hi- erarchical spatial hash table is describ ed. For the narrow-phase, the Lin-Canny algorithm is presented. Alternatives to these algorithms are also discussed. Fi- nally, the article describ es a scheduling paradigm for managing collision checks that can further reduce computation time. Pointers to downloadable software are included. To appear in Practical Motion Planning in Rob otics: Current Approaches and Future Directions, K. Gupta and A.P. del Pobil, editors. This work may not b e copied or repro duced in whole or in part for any commercial purp ose. Permission to copy in whole or in part without payment of fee is granted for nonpro t educational and research purp oses provided that all such whole or partial copies include the following: a notice that such copying is by p er- mission of Mitsubishi Electric Information Technology Center America; an acknowledgment of the authors and individual contributions to the work; and all applicable p ortions of the copyright notice. Copying, repro duction, or republishing for any other purp ose shall require a license with payment of fee to Mitsubishi Electric Information Technology Center America.
    [Show full text]
  • Fast Oriented Bounding Box Optimization on the Rotation Group SO(3, R)
    Fast oriented bounding box optimization on the rotation group SO(3; R) CHIA-TCHE CHANG1, BASTIEN GORISSEN2;3 and SAMUEL MELCHIOR1;2 1Universite´ catholique de Louvain, Department of Mathematical Engineering (INMA) 2Universite´ catholique de Louvain, Applied Mechanics Division (MEMA) 3Cenaero An exact algorithm to compute an optimal 3D oriented bounding box was published in 1985 by Joseph O’Rourke, but it is slow and extremely hard C b to implement. In this article we propose a new approach, where the com- Xb putation of the minimal-volume OBB is formulated as an unconstrained b b optimization problem on the rotation group SO(3; R). It is solved using a hybrid method combining the genetic and Nelder-Mead algorithms. This b b method is analyzed and then compared to the current state-of-the-art tech- b b X b niques. It is shown to be either faster or more reliable for any accuracy. Categories and Subject Descriptors: I.3.5 [Computer Graphics]: Compu- b b b tational Geometry and Object Modeling—Geometric algorithms; Object b b representations; G.1.6 [Numerical Analysis]: Optimization—Global op- eξ b timization; Unconstrained optimization b b b b General Terms: Algorithms, Performance, Experimentation b Additional Key Words and Phrases: Computational geometry, optimization, b ex b manifolds, bounding box b b ∆ξ ∆η 1. INTRODUCTION This article deals with the problem of finding the minimum-volume oriented bounding box (OBB) of a given finite set of N points, 3 denoted by R . The problem consists in finding the cuboid, Fig. 1. Illustration of some of the notation used throughout the article.
    [Show full text]
  • An Optimal Solution for Implementing a Specific 3D Web Application
    IT 16 060 Examensarbete 30 hp Augusti 2016 An optimal solution for implementing a specific 3D web application Mathias Nordin Institutionen för informationsteknologi Department of Information Technology Abstract An optimal solution for implementing a specific 3D web application Mathias Nordin Teknisk- naturvetenskaplig fakultet UTH-enheten WebGL equips web browsers with the ability to access graphic cards for extra processing Besöksadress: power. WebGL uses GLSL ES to communicate with graphics cards, which uses Ångströmlaboratoriet Lägerhyddsvägen 1 different Hus 4, Plan 0 instructions compared with common web development languages. In order to simplify the development process there are JavaScript libraries handles the Postadress: Box 536 751 21 Uppsala communication with WebGL. On the Khronos website there is a listing of 35 different Telefon: JavaScript libraries that access WebGL. 018 – 471 30 03 It is time consuming for developers to compare the benefits and disadvantages of all Telefax: these 018 – 471 30 00 libraries to find the best WebGL library for their need. This thesis sets up requirements of a Hemsida: specific WebGL application and investigates which libraries that are best for http://www.teknat.uu.se/student implmeneting its requirements. The procedure is done in different steps. Firstly is the requirements for the 3D web application defined. Then are all the libraries analyzed and mapped against these requirements. The two libraries that best fulfilled the requirments is Three.js with Physi.js and Babylon.js. The libraries is used in two seperate implementations of the intitial game. Three.js with Physi.js is the best libraries for implementig the requirements of the game.
    [Show full text]
  • Mathematical Approaches for Collision Detection in Fundamental Game Objects
    Mathematical Approaches for Collision Detection in Fundamental Game Objects Weihu Hong1 , Junfeng Qu2, Mingshen Wu3 1 Department of Mathematics, Clayton State University, Morrow, GA, 30260 2 Department of Information Technology, Clayton State University, Morrow, GA, 30260 3Department of Mathematics, Statistics, and Computer Science, University of Wisconsin-Stout, Menomonie, WI 54751 Otherwise, a lot of false alarm will be introduced in collision Abstract – This paper presents mathematical solutions for detection as show in Figure 1, where two objects, one circle computing whether or not fundamental objects in game and one pentagon, are not collided at all even the represented development collide with each other. In game development, sprites collide each other. detection of collision of two or more objects is often brought up. By categorizing most fundamental boundaries in game object, this paper will provide some mathematical fundamental methods for detection of collisions between objects identified. The approached methods provide more precise and efficient solutions to detect collisions between most game objects with mathematical formula proposed. Keywords: Collision detection, algorithm, sprite, game object, game development. 1 Introduction Figure 1. Collision detection based on Boundary The goal of collision detection is to automatically report a geometric contact when it is about to occur or has actually occurred. It is very common in game development that objects in the game science controlled by game player might collide each other. Collision detection is an essential component in video game implementation because it delivers events in the game world and drives game moving though game paths designed. In most game developing environment, game developers relies on written APIs to detect collisions in the game, for example, XNA Game Studio from Microsoft, Cocoa from (a) (b) Apple, and some other software packages developed by other parties.
    [Show full text]
  • Opencl Accelerated Rigid Body and Collision Detection
    OpenCL accelerated rigid body and collision detection Erwin Coumans Advanced Micro Devices Robotics: Science and Systems Conference 2011 Overview • Intro • GPU broadphase acceleration structures • GPU convex contact generation and reduction • GPU BVH acceleration for concave shapes • GPU constraint solver Robotics: Science and Systems Conference 2011 Industry view PS3, Xbox 360, x86, PowerPC, PC, iPhone, Android Havok, PhysX Cell, ARM Bullet, ODE, Newton, PhysBAM, Box2D OpenCL, CUDA Hardware Platform C++ APIs and Implementations Custom in-house Rockstar, Epic physics engines EA, Disney Games Industry Content Creation Maya, 3ds Max, Houdini, LW, Game and Film Tools Cinema 4D Sony Imageworks physics Simulation Movie Industry Blender Data PDI Dreamworks representation Academia, Universities Conferences, binary .hkx, ILM, Disney Presentations .bullet format Stanford, UNC FBX, COLLADA GDC, SIGGRAPH etc. Robotics: Science and Systems Conference 2011 Our open source work • Bullet Physics SDK, http://bulletphysics.org • Sony Computer Entertainment Physics Effects • OpenCL/DirectX11 GPU physics research Robotics: Science and Systems Conference 2011 OpenCL™ • Open development platform for multi-vendor heterogeneous architectures • The power of AMD Fusion: Leverages CPUs and GPUs for balanced system approach • Broad industry support: Created by architects from AMD, Apple, IBM, Intel, NVIDIA, Sony, etc. AMD is the first company to provide a complete OpenCL solution • Kernels written in subset of C99 Robotics: Science and Systems Conference 2011 Particle
    [Show full text]
  • Parallel Construction of Bounding Volumes
    SIGRAD 2010 Parallel Construction of Bounding Volumes Mattias Karlsson, Olov Winberg and Thomas Larsson Mälardalen University, Sweden Abstract This paper presents techniques for speeding up commonly used algorithms for bounding volume construction using Intel’s SIMD SSE instructions. A case study is presented, which shows that speed-ups between 7–9 can be reached in the computation of k-DOPs. For the computation of tight fitting spheres, a speed-up factor of approximately 4 is obtained. In addition, it is shown how multi-core CPUs can be used to speed up the algorithms further. Categories and Subject Descriptors (according to ACM CCS): I.3.6 [Computer Graphics]: Methodology and techniques—Graphics data structures and data types 1. Introduction pute [MKE03, LAM06]. As Sections 2–4 show, the SIMD vectorization of the algorithms leads to generous speed-ups, A bounding volume (BV) is a shape that encloses a set of ge- despite that the SSE registers are only four floats wide. In ometric primitives. Usually, simple convex shapes are used addition, the algorithms can be parallelized further by ex- as BVs, such as spheres and boxes. Ideally, the computa- ploiting multi-core processors, as shown in Section 5. tion of the BV dimensions results in a minimum volume (or area) shape. The purpose of the BV is to provide a simple approximation of a more complicated shape, which can be 2. Fast SIMD computation of k-DOPs used to speed up geometric queries. In computer graphics, A k-DOP is a convex polytope enclosing another object such ∗ BVs are used extensively to accelerate, e.g., view frustum as a complex polygon mesh [KHM 98].
    [Show full text]
  • Bounding Volume Hierarchies
    Simulation in Computer Graphics Bounding Volume Hierarchies Matthias Teschner Outline Introduction Bounding volumes BV Hierarchies of bounding volumes BVH Generation and update of BVs Design issues of BVHs Performance University of Freiburg – Computer Science Department – 2 Motivation Detection of interpenetrating objects Object representations in simulation environments do not consider impenetrability Aspects Polygonal, non-polygonal surface Convex, non-convex Rigid, deformable Collision information University of Freiburg – Computer Science Department – 3 Example Collision detection is an essential part of physically realistic dynamic simulations In each time step Detect collisions Resolve collisions [UNC, Univ of Iowa] Compute dynamics University of Freiburg – Computer Science Department – 4 Outline Introduction Bounding volumes BV Hierarchies of bounding volumes BVH Generation and update of BVs Design issues of BVHs Performance University of Freiburg – Computer Science Department – 5 Motivation Collision detection for polygonal models is in Simple bounding volumes – encapsulating geometrically complex objects – can accelerate the detection of collisions No overlapping bounding volumes Overlapping bounding volumes → No collision → Objects could interfere University of Freiburg – Computer Science Department – 6 Examples and Characteristics Discrete- Axis-aligned Oriented Sphere orientation bounding box bounding box polytope Desired characteristics Efficient intersection test, memory efficient Efficient generation
    [Show full text]
  • Graphics Pipeline and Rasterization
    Graphics Pipeline & Rasterization Image removed due to copyright restrictions. MIT EECS 6.837 – Matusik 1 How Do We Render Interactively? • Use graphics hardware, via OpenGL or DirectX – OpenGL is multi-platform, DirectX is MS only OpenGL rendering Our ray tracer © Khronos Group. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. 2 How Do We Render Interactively? • Use graphics hardware, via OpenGL or DirectX – OpenGL is multi-platform, DirectX is MS only OpenGL rendering Our ray tracer © Khronos Group. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. • Most global effects available in ray tracing will be sacrificed for speed, but some can be approximated 3 Ray Casting vs. GPUs for Triangles Ray Casting For each pixel (ray) For each triangle Does ray hit triangle? Keep closest hit Scene primitives Pixel raster 4 Ray Casting vs. GPUs for Triangles Ray Casting GPU For each pixel (ray) For each triangle For each triangle For each pixel Does ray hit triangle? Does triangle cover pixel? Keep closest hit Keep closest hit Scene primitives Pixel raster Scene primitives Pixel raster 5 Ray Casting vs. GPUs for Triangles Ray Casting GPU For each pixel (ray) For each triangle For each triangle For each pixel Does ray hit triangle? Does triangle cover pixel? Keep closest hit Keep closest hit Scene primitives It’s just a different orderPixel raster of the loops!
    [Show full text]
  • Efficient Collision Detection Using Bounding Volume Hierarchies of K
    Efficient Collision Detection Using Bounding Volume £ Hierarchies of k -DOPs Þ Ü ß James T. Klosowski Ý Martin Held Joseph S.B. Mitchell Henry Sowizral Karel Zikan k Abstract – Collision detection is of paramount importance for many applications in computer graphics and visual- ization. Typically, the input to a collision detection algorithm is a large number of geometric objects comprising an environment, together with a set of objects moving within the environment. In addition to determining accurately the contacts that occur between pairs of objects, one needs also to do so at real-time rates. Applications such as haptic force-feedback can require over 1000 collision queries per second. In this paper, we develop and analyze a method, based on bounding-volume hierarchies, for efficient collision detection for objects moving within highly complex environments. Our choice of bounding volume is to use a “discrete orientation polytope” (“k -dop”), a convex polytope whose facets are determined by halfspaces whose outward normals come from a small fixed set of k orientations. We compare a variety of methods for constructing hierarchies (“BV- k trees”) of bounding k -dops. Further, we propose algorithms for maintaining an effective BV-tree of -dops for moving objects, as they rotate, and for performing fast collision detection using BV-trees of the moving objects and of the environment. Our algorithms have been implemented and tested. We provide experimental evidence showing that our approach yields substantially faster collision detection than previous methods. Index Terms – Collision detection, intersection searching, bounding volume hierarchies, discrete orientation poly- topes, bounding boxes, virtual reality, virtual environments.
    [Show full text]
  • A New Fast and Robust Collision Detection and Force Computation Algorithm Applied to the Physics Engine Bullet: Method, Integration, and Evaluation
    Conference and Exhibition of the European Association of Virtual and Augmented Reality (2014) G. Zachmann, J. Perret, and A. Amditis (Editors) A New Fast and Robust Collision Detection and Force Computation Algorithm Applied to the Physics Engine Bullet: Method, Integration, and Evaluation Mikel Sagardia †, Theodoros Stouraitis‡, and João Lopes e Silva§ German Aerospace Center (DLR), Institute of Robotics and Mechatronics, Germany Abstract We present a collision detection and force computation algorithm based on the Voxelmap-Pointshell Algorithm which was integrated and evaluated in the physics engine Bullet. Our algorithm uses signed distance fields and point-sphere trees and it is able to compute collision forces between arbitrary complex shapes at simulation frequencies smaller than 1 msec. Utilizing sphere hierarchies, we are able to rapidly detect likely colliding areas, while the point trees can be used for processing colliding regions in a level-of-detail manner. The integration into the physics engine Bullet was performed inheriting interface classes provided in that framework. We compared our algorithm with Bullet’s native GJK, GJK with convex decomposition, and GImpact, varying the resolution and the scenarios. Our experiments show that our integrated algorithm performs with similar computation times as the standard collision detection algorithms in Bullet if low resolutions are chosen. With high resolutions, our algorithm outperforms Bullet’s native implementations and objects behave realistically. Categories and Subject Descriptors (according to ACM CCS): Computing Methodologies [I.3.5]: Computational Geometry and Object Modeling—Geometric algorithms, Object hierarchies; Computing Methodologies [I.3.7]: Three-Dimensional Graphics and Realism—Animation, Virtual reality. 1. Introduction The physics library Bullet [Cou14] provides with several collision detection implementations able to handle simple Methods that perform collision detection and force compu- geometries and a powerful rigid body dynamics framework.
    [Show full text]
  • Parallel Reinsertion for Bounding Volume Hierarchy Optimization
    EUROGRAPHICS 2018 / D. Gutierrez and A. Sheffer Volume 37 (2018), Number 2 (Guest Editors) Parallel Reinsertion for Bounding Volume Hierarchy Optimization D. Meister and J. Bittner Czech Technical University in Prague, Faculty of Electrical Engineering Figure 1: An illustration of our parallel insertion-based BVH optimization. For each node (the input node), we search for the best position leading to the highest reduction of the SAH cost for reinsertion (the output node) in parallel. The input and output nodes together with the corresponding path are highlighted with the same color. Notice that some nodes might be shared by multiple paths. We move the nodes to the new positions in parallel while taking care of potential conflicts of these operations. Abstract We present a novel highly parallel method for optimizing bounding volume hierarchies (BVH) targeting contemporary GPU architectures. The core of our method is based on the insertion-based BVH optimization that is known to achieve excellent results in terms of the SAH cost. The original algorithm is, however, inherently sequential: no efficient parallel version of the method exists, which limits its practical utility. We reformulate the algorithm while exploiting the observation that there is no need to remove the nodes from the BVH prior to finding their optimized positions in the tree. We can search for the optimized positions for all nodes in parallel while simultaneously tracking the corresponding SAH cost reduction. We update in parallel all nodes for which better position was found while efficiently handling potential conflicts during these updates. We implemented our algorithm in CUDA and evaluated the resulting BVH in the context of the GPU ray tracing.
    [Show full text]