• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (6): 127-130.

• 论文 • 上一篇    下一篇

基于层次包围盒的混合碰撞检测算法

胡咏梅   

  1. (辽宁工程技术大学基础教学部,辽宁 葫芦岛 125105)
  • 收稿日期:2011-01-18 修回日期:2011-04-17 出版日期:2012-06-25 发布日期:2012-06-25
  • 基金资助:

    2010年中国煤炭工业协会科学技术研究指导性计划资助项目(MTKJ2010327)

A Hybrid Collision Detection Algorithm Based on Bounding Volume Hierarchy

HU Yongmei   

  1. (Basic Teaching Department,Liaoning Technical University,Huludao 125105,China)
  • Received:2011-01-18 Revised:2011-04-17 Online:2012-06-25 Published:2012-06-25

摘要:

针对碰撞检测算法实时性较差的缺点,本文提出基于AABB包围盒与OBB包围盒相结合的混合碰撞检测算法,首先由对象投影来判断是否相交,检测出不可能相交对象;然后对可能相交的对象投影反向构建AABB包围盒,快速地测试对象;再用OBB包围盒进行精确地检测,以实现虚拟环境对象间高效的碰撞检测。本文还针对传统的基元相交测试效率不高的缺点进行了一定的改进。实验结果表明,与另外两种算法对比,该方法在相同环境前提下能够有效的提高碰撞检测的效率。

关键词: 虚拟现实, AABB包围盒, OBB包围盒, 混合碰撞检测, 基元相交测试

Abstract:

In this paper, a hybrid collision detection algorithm based on the combination of AxisAligned Bounding Boxes and Oriented Bounding Box is proposed to achieve the purpose of improving the realtimeness of collision detection. Firstly, we determine whether the objects are intersection with the object projection, and detect the objects which can not be intersection. Secondly, we project on the objects which may intersect and reversally construct AxisAligned Bounding Boxes with a quick test. Finally, we do the accurate detection with Oriented Bounding Box to achieve efficient collision detection of objects in virtual environments. This algorithm is also improved about the lowlevel efficiency of the traditional overlapping test between the primitiVes. The experimental results show that compared with other two algorithms, the method can effectively improve the efficiency of collision detection in the same environment.

Key words: virtual reality;axisaligned bounding boxe;oriented bounding box;hybrid collision detection;overlapping test between the primitives