ZZH:魔兽世界之001:如何枚举得到WOW的各个地图和如何生成WOW Minimmap
2010-03-29 09:15
239 查看
如何枚举得到WOW的各个地图
通过对WoWmapview中的Menu::Menu代码分析,得到如下内容:
DBFilesClient//Map.dbc :This client database describes the various top level maps (also called continents) the game uses. All dungeon instances have their own map as well.
通过对DBFilesClient//Map.dbc的枚举得到每个top level map的 WorldID
World name (used for loading World/Maps/%s/%s.wdt)
World description
如何生成WOW Minimmap
通过对WoWmapview中的World类的成员函数World::initMinimap的分析,得到如下内容
解析wdl,其中的wdl包括了MAOF chunk 和 MapAreaLow array,通过解析这些数据得到1map = 64x64maptile,1maptile = 17x17+16x16 heightmap点(16bit)
使用512x512 minimap texture来覆盖64x64maptiles,那么1个tile 就对应 了8x8 pixels
根据heightmap生成minimap texture,不同的height对应不同的颜色,height < 0的对应blue表示水平面下
我:ZZH1234567@163.com
msn: http://fotoone.spaces.live.com/
sina:http://blog.sina.com.cn/wincapture
csdn: http://blog.csdn.net/zzh1234567
通过对WoWmapview中的Menu::Menu代码分析,得到如下内容:
DBFilesClient//Map.dbc :This client database describes the various top level maps (also called continents) the game uses. All dungeon instances have their own map as well.
通过对DBFilesClient//Map.dbc的枚举得到每个top level map的 WorldID
World name (used for loading World/Maps/%s/%s.wdt)
World description
如何生成WOW Minimmap
通过对WoWmapview中的World类的成员函数World::initMinimap的分析,得到如下内容
解析wdl,其中的wdl包括了MAOF chunk 和 MapAreaLow array,通过解析这些数据得到1map = 64x64maptile,1maptile = 17x17+16x16 heightmap点(16bit)
使用512x512 minimap texture来覆盖64x64maptiles,那么1个tile 就对应 了8x8 pixels
根据heightmap生成minimap texture,不同的height对应不同的颜色,height < 0的对应blue表示水平面下
我:ZZH1234567@163.com
msn: http://fotoone.spaces.live.com/
sina:http://blog.sina.com.cn/wincapture
csdn: http://blog.csdn.net/zzh1234567
相关文章推荐
- JDBC 如何得到数据库的生成identity值
- 如何生成报告来枚举出整个sharepoint环境中的每个页面所使用的所有webpart
- 有一动态生成的TABLE,当点击该TABLE中的按钮时,如何得到该按钮所在行的某一列的值啊?
- 织梦dedecms如何生成谷歌sitemap.xml网站地图
- 如何得到mapinfo地图中某点的经纬度?
- DedeCMS如何将网站地图生成在根目录
- 001【2D Rougelike】随机地图的生成
- 如何向Google、Yahoo!、MSN、Ask和百度提交在线生成的网站地图Sitemap
- Entity Framework 小技巧五 —— 如何得到EF查询生成的SQL?
- Python 练习册,每天一个小程序----------001使用 Python 如何生成多位随机数
- JDBC 如何得到数据库的生成identity值
- Arcgis ArcMap 10 如何生成msd地图文档定义【 arcgis mxd怎么转换成msd】
- 只写104行代码!在nopCommerce中如何实现自动生成网站地图
- 如何shell中用一个变量来生成另外一个变量的名称,然后得到另外一个变量的值
- .net 中如何得到图片的高度(height)和宽度(width) ,生成图片的缩略图
- Entity Framework 小技巧五 —— 如何得到EF查询生成的SQL?
- dedecms如何定时生成站点地图的
- 如何根据搜索页面内容得到的结果生成该元素的xpath路径
- java web中如何得到list中每条记录的各个值
- 织梦CMS如何修改网站地图的生成路径