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

在游戏中利用邻域特性扩展的kd-tree及其查找算法
引用本文:徐建民,李欢,刘博宁.在游戏中利用邻域特性扩展的kd-tree及其查找算法[J].计算机科学,2011,38(3):257-262.
作者姓名:徐建民  李欢  刘博宁
作者单位:1. 河北大学数学与计算机科学学院,保定,071002
2. 河北大学工商学院,保定,071002
基金项目:本文受中国博上后科学基金(20070420700)资助。
摘    要:处理场景中数量庞大的各种对象间的交互是游戏的一类主要计算工作。将kd-tree用于组织场景,提高了这类计算的效率。传统算法采用树的层次遍历方式进行查找,处理跨节点情况时性能下降明显。提出了邻域特性概念以扩展传统kd-tree结构,增添了树节点间的平面部接关系,且考虑了游戏对kd-tree的一些限定,设计了从起始节点向四周扩展的查找算法。经分析与实验证明,新算法比传统算法有约40%的性能提升且更稳定。

关 键 词:邻域特性,kd-tree,查找,场景分割,游戏

Neighbor Feature Extended kd-tree and Searching Algorithm for Game
XU Jian-min,LI Huan,LIU Bo-ning.Neighbor Feature Extended kd-tree and Searching Algorithm for Game[J].Computer Science,2011,38(3):257-262.
Authors:XU Jian-min  LI Huan  LIU Bo-ning
Affiliation:(College of Mathematics and Computer Science, Hebei University, Banding 071002,China);(College of Industrial and Commercial,Hebei University,Baoding 071002,China)
Abstract:Processing the interactions among large numbers of objects is the main computation task in game system. Using kd-tree to organize the game scene improves such computation. There's a obvious performance degradation in situalion of node-crossings as traditional algorithm uses hierarchically recursive way to search. The concept of neighbor fealure was proposed to extend traditional kd-tree structure, so the planar adjacent relationship of hierarchical nodes was added. A new algorithm searching the tree in a 4-sides expanding way from the standing node as the center was devised.The analysis and simulation showed that the new algorithm improves the performance by about 40% and is more stable than the traditional one.
Keywords:Neighbor feature  kd-tree  Searching  Scene partitioning  Game
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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