骑马与砍杀中文站论坛

标题: 将obj模型文件转换成大地图文件的工具 [打印本页]

作者: foxyman    时间: 2010-9-1 17:43
标题: 将obj模型文件转换成大地图文件的工具
其实是很早就有的东西了,竟然一直没发现,似乎也没人介绍过来。原帖地址:http://forums.taleworlds.com/index.php/topic,57117.0.html
以下是原文,翻译工作稍后进行。
Thorgrim's map editor is extremely buggy, even exporting colour map doesn't work for me making using this tool as a main map editor impossible. So that's why I decided to make this very simply converter. It is a totally different way of creating strategy map for M&B. Personally I found it more effective and powerful then using Thorgrim's map editor but it's also more complicated and require vast knowledge of 3d modelling. It allow us to model a map in any 3d modelling program or sculptor, cover it with materials and then to export it into M&B. Thorgrim's editor also can import an obj file but it doesn't import materials so it's not very useful.
I made this converter for myself but maybe some other guys will find it useful (probably not) so here we go.

I tested it only with Wings 3d. Here is a correct workflow:
-a bottom side of the model must have a 'hole' material,
-cover a model with materials provided in 'map.obj' (only their names are important),
-export a map as 'map.obj'. The model must be quadriangulated (not triangulated but it can be triangulated). Converter will triangulate it for you. I made this because triangulation in Wings is around 2000 times slower then mine  With huge models like a map it can be really annoying. I don't have to remind that modelling with quads is much more effective then with triangles.
-put the file and converter in the same folder, run converter,
-put the output 'map.txt' file in your module folder,
-the program require .NET Framework 2.0

The package includes a sample.

Download link:
http://www.mbrepository.com/file.php?id=1793

This tool works with Warband.

The package includes a referential Wings file and obj file. They are fit to warband so there shouldn't be any positioning problems in warband.

For Wings 3d users: remember to import and export the file with swapped x and y axes.  Scale factor should be set to 1.0.

Below are the names that materials must have:
(click to show/hide)
ocean
mountain
steppe
plain
snow
desert
desert_forest
river
steppe_mountain
steppe_forest
forest
snow_forest
deep_ocean

2009.02.15
I uploaded a new version which fixes one bug. I also checked the compatibility with 3dsMax 9 and it works if you export the file with normal vectors. You can also use Zbrush but in this case you have to convert file in 3dsmax or wings first.

2009.02.16
Another version which fixes another bug. Now program is checking if the model is quadriangulated.

2010.04.15
Added one new material for better Warband compatibility.

作者: 昵称还要三百!    时间: 2010-9-5 17:27
有了这个工具,做大地图就方便多了
作者: alixyang    时间: 2010-9-6 14:23
貌似我介绍过.....   翻翻旧贴去......

没找到, 如果这个工具能把 World Machine 2 的地图转过来就太好了

-------------
原帖最后,othr做了另一个转换工具,貌似兼容性更好些:
http://www.mbrepository.com/file.php?id=2220
作者: tianzhao    时间: 2010-9-16 19:51
弄完装备准备试试导入一个basara的地图的,以前是不知道到还要专门的转化工具了。
作者: 卖酱油的JY    时间: 2010-9-19 18:10
那啥不好意思
翻译工作呢...
作者: alixyang    时间: 2010-12-12 19:56
今天跟活着群里的初号聊起大地图,才想起来这个  顺便更新一下吧。
  World Machine2 Pro 专业地图制作工具   http://www.verycd.com/topics/2822430/
  World machine 2汉化第二版        http://www.g-cores.com/read.php?tid=3634
  转换工具确实有两个,3楼的没更新, 顶楼的更新了   http://www.mbrepository.com/file.php?id=1839






作者: csnow    时间: 2010-12-14 16:46
琢磨了半天 楞是没弄明白
作者: alixyang    时间: 2010-12-15 14:40
好吧 world machine 确实有点复杂, 其实你可以用任意的3D工具(3Dmax Maya Wing3D Zbrush 3Dcoat .....)生成类似3维地貌的OBJ模型, 然后用这个工具转化就行。

如果还嫌麻烦,其实可以直接找平面地图,部分地方画上等高线,然后用不同颜色填充,在那个默认地图工具里也能做成3维地图.......  (这个是喜儿跟我说过的)
作者: csnow    时间: 2010-12-15 16:14
好吧 world machine 确实有点复杂, 其实你可以用任意的3D工具(3Dmax Maya Wing3D Zbrush 3Dcoat .....)生成类似3维地貌的OBJ模型, 然后用这个工具转化就行。

如果还嫌麻烦,其实可以直接找平面地图,部分地方画 ...
alixyang 发表于 2010-12-15 14:40

骑砍里的地图大小是否有限制?比如长...宽...
3D我会 只是没做过obj的
我只需要做的地形地貌,贴图什么的用map editer应该就能搞定了吧
作者: alixyang    时间: 2010-12-15 18:03
不晓得有限制没   貌似有人做过很大的,让人一看就腿软的那种.....
作者: csnow    时间: 2010-12-16 15:39
我滴孩类,搞太大加城镇都要加累死。
作者: 异人迷    时间: 2011-1-21 00:17
这个贴还很有价值的。
问一下,这个软件是用于场景的吗??
将obj模型文件转换成大地图文件的工具??
怪,怎么这个软件那么像3D建模的软件??

作者: alixyang    时间: 2011-1-21 09:31
12# 异人迷

是用于单机战略大地图的,不是联机模式场景地图。

顶楼是转换工具,6# 的工具就是建模的。。。。。。。
作者: tianzhao    时间: 2011-1-21 18:09
原来是做大地图,不是野战的地图啊。。。。
比较想改个野战的地图。
作者: wuyoutianxia    时间: 2011-1-24 22:12
太好了,收藏
有这个就可以做出战团的中国地图了




欢迎光临 骑马与砍杀中文站论坛 (https://bbs.mountblade.com.cn/) Powered by Discuz! X3.4