首页 | 官方网站   微博 | 高级检索  
     

一种高效的多边形寻路元数据融合方式——边界爬行算法
引用本文:王滨,李健,高伦.一种高效的多边形寻路元数据融合方式——边界爬行算法[J].电脑与信息技术,2012,20(3):14-16,65.
作者姓名:王滨  李健  高伦
作者单位:北京工业大学计算机学院,北京,100124
摘    要:游戏寻路中采用网格寻路可以极大的提高寻路效率,但是在斜45度2D游戏地图中使用网格寻路,采用传统的网格生成算法需要消耗非常长的时间。原因是使用Weiler-Athenton算法进行多边形融合时,会进行很多层递归与循环,消耗大量的时间。由于Weiler-Athenton算法是一种泛用性很强的多边形融合算法,而斜45度2D游戏地图的障碍物又具有很强的特殊性,由此我们针对45度2d游戏地图数据的特点,设计了一种名为边界爬行的多边形融合算法,把原来需要5-10小时才可以完成的融合操作缩短到了10-20秒。极大地提高了多边形融合的效率。为编辑器的地图寻路实时预览提供了有力的支持。

关 键 词:寻路  多边形融合  网格寻路  多边形寻路

An Efficient Polygonlntegration Algorithm In Grid Pathfinding - border Crawling Algorithm
WANG Bin,LI Jian,GAO Lun.An Efficient Polygonlntegration Algorithm In Grid Pathfinding - border Crawling Algorithm[J].Computer and Information Technology,2012,20(3):14-16,65.
Authors:WANG Bin  LI Jian  GAO Lun
Affiliation:(College of Computer Sciences ,Beijing University of Technology,Beijing 100124 ,China)
Abstract:In game pathfinding ,the grid pathfinding can improve the efficient greatly, butin the 45 degrees 2D games, using the traditional grid generation algorithm needs to consume a very long time. The reason is that when using the Weiler-Athenton algorithm polygon integration there are too much iterations, the iterations consume a lot of time. Weiler-Athenton algorithm is a algorithm that can deal with many situations, but the 45 degrees 2D game map obstacles has very strong particularity. Thus we focused on the characteristics of the 45 degree 2d game map data, design a called boundary crawlingpolygon fusion algorithm. Using the new algorithm, integration time can be reduced from 5-10 hours to 10-20 seconds. Using this algorithm can greatly improve the efficiency of integration of the polygons and provide a strongsupport for real-time preview of the map editor pathfinding.
Keywords:pathfinding  polygon integration  grid pathfinding  polygon pathfinding
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号