A GPGPU-Based Collision Detection Algorithm
- 1 September 2009
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 938-942
Abstract
A GPGPU-based collision detection algorithm is proposed. Firstly, the information of OBB hierarchy tree and triangles of tested objects are mapped into some data textures designed for GPGPU-based calculation, such as triangle vertex textures, bounding box size texture, tree node relationship texture, etc., then these textures are downloaded to GPU to complete the data preparation. Secondly, the whole collision detection is executed on GPU, in which three key contents are fulfilled: reading necessary data from related textures correctly by order coordinate method and index coordinate method, detecting the intersection between triangle and OBB, triangle and triangle through a collision detection index array. Lastly, collision detection results are outputted to a texture by FBO technology and read back to CPU for post-processing. The data transmission between CPU and GPU is only twice, which reduce the time to read data. Testing results show that the detecting speed of the algorithm proposed in this paper is faster than the similar CPU-based algorithm obviously with the increasing complexity of tested objects, while keeps the same precision.Keywords
This publication has 5 references indexed in Scilit:
- A fast triangle to triangle intersection test for collision detectionComputer Animation and Virtual Worlds, 2006
- Benchmarking and implementation of probability-based simulations on programmable graphics cardsComputers & Graphics, 2005
- Real-time 3D fluid simulation on GPU with complex obstacles2004
- DiFi: Fast 3D Distance Field Computation Using Graphics HardwareComputer Graphics Forum, 2004
- Fast 3D Triangle-Box Overlap TestingJournal of Graphics Tools, 2001