首页 | 本学科首页   官方微博 | 高级检索  
     

一种快速的可变形物体的碰撞检测算法
引用本文:谭睿璞,赵 伟.一种快速的可变形物体的碰撞检测算法[J].计算机工程与应用,2014(9):170-175.
作者姓名:谭睿璞  赵 伟
作者单位:[1]福建江夏学院电子信息科学学院,福州350108 [2]吉林农业大学信息技术系,长春130118
基金项目:国家自然科学基金(No.61106068);福建省教育厅A类科技项目(No.JA11268)。
摘    要:为实现虚拟环境中可变形物体与刚体间实时的碰撞检测,提出了一种快速的基于混合包围盒层次结构的并行碰撞检测算法。算法充分利用包围盒在检测速度和精度上的不同侧重,对可变形物体建立Sphere和AABB混合包围盒层次树,对刚体建立Sphere和OBB混合包围盒层次树;每个物体的混合包围盒层次树又分成上层、中层和下层,每层使用不同的包围盒;在碰撞检测遍历时,上层使用Sphere和Sphere相交检测快速排除不相交物体,在中层使用Sphere和OBB的相交检测进一步排除物体相交的可能性,在下层使用AABB和OBB的相交检测较精确地确定物体是否相交;采用多线程技术,在多核设备上实现并行碰撞检测算法。实验结果表明,与经典的AABB算法相比较,该算法在效率方面具有明显优势,能够满足可变形物体与刚体的碰撞检测要求。

关 键 词:碰撞检测  可变形物体  刚体  混合包围盒层次  多线程

Fast collision detection algorithm for deformable objects
TAN Ruipu,ZHAO Wei.Fast collision detection algorithm for deformable objects[J].Computer Engineering and Applications,2014(9):170-175.
Authors:TAN Ruipu  ZHAO Wei
Affiliation:1 .School of Electronic Information Science, Fujian Jiangxia University, Fuzhou 350108, China; 2.Department of Information Technology, Jilin Agricultural University, Changchun 130118, China)
Abstract:In order to achieve a real-time collision detection between deformable objects and rigid body in the virtual envi-ronment, a fast parallel collision detection algorithm based on hybrid bounding box hierarchy is proposed. Taking into account the different characteristics of the bounding box in the detection speed and accuracy, this algorithm builds a sphere-AABB hybrid bounding box hierarchy tree for deformable object, and establishes a sphere-OBB hybrid bounding box hierarchy tree for rigid body;in addition, every hybrid bounding box hierarchy tree is divided into upper layer, middle layer and lower layer, and each layer uses a different bounding box;when traversing the trees, this algorithm uses sphere-sphere test in the upper layer, sphere-OBB test in the middle layer and AABB-OBB test in the lower layer to detect collision. This paper uses multi-threading technology to achieve parallel collision detection algorithm on multi-core devices. Experi-mental results show that this algorithm has obvious advantages compared with the classic AABB algorithm in the aspect of efficiency, and can meet the requirement of collision detection between deformable objects and rigid body.
Keywords:collision detection  deformable objects  rigid body  hybrid bounding volume hierarchy  multiple thread
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号