骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买CDKEY 衣谷三国
查看: 11842|回复: 14

[转贴] 将obj模型文件转换成大地图文件的工具

[复制链接]

41

主题

1851

回帖

1853

积分

贵族[MOD作者]

Rank: 7Rank: 7Rank: 7

UID
31436
第纳尔
6805
精华
3
互助
67
荣誉
65
贡献
313
魅力
157
注册时间
2007-7-23

原版正版勋章战团正版勋章杰出版主勋章骑士荣誉之战团汉化勋章

鲜花(5) 鸡蛋(0)
发表于 2010-9-1 17:43:04 | 显示全部楼层 |阅读模式
其实是很早就有的东西了,竟然一直没发现,似乎也没人介绍过来。原帖地址: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.
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2025-9-27 05:18 , Processed in 0.096790 second(s), 19 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表