swycartographer not exporting .obj properly

正在查看此主题的用户

Koozer

Regular
As the title says. It worked a few days ago on a different map, but now for some reason it is only exporting vertices, but not faces or materials, so Blender just reads it as a big field of orange blobs.
 
Koozer 说:
Hi Swyter, I've put two OBJ files in the folder below:

https://dl.dropbox.com/u/12272750/map%20meshes.7z

Jugdral_mapmesh is an old one that works, Magvel_mapmesh is the one that's just vertices. Thanks for your time!

PS. swycartographer is a godsend  :grin:

Hi, mate. I managed to rebuild the faces of your mesh using Meshlab (Filters > Remeshing > Surface reconstruction: Ball pivoting).
But to see why my thingie didn't export your map I need the original
插入代码块:
map.txt
which gives you problems.

Anyway, here you have. Terrain materials are lost, but that's the easy part:
插入代码块:
https://dl.dropbox.com/u/108770784/Magvel_mapmesh_fixedb.7z
 
Hi, thanks for fixing the mesh! I've attached the original map.txt:

https://dl.dropbox.com/u/12272750/map.txt

I tried it on another computer and it still didn't work properly.  I've already tweaked it a bit with Thorgrim's, if that has anything to do with it.

EDIT: Just tried creating a fresh map in Thorgrim's from my colourmap without modifying the mash. Imported it into swycartographer, and the exported OBJ is fine.
 
Found the problem, you are using an additional material which isn't defined in the official module system, as cartographer doesn't knows its name it cannot export the material to OBJ:
插入代码块:
rt_water = 0
rt_mountain = 1
rt_steppe = 2
rt_plain = 3
rt_snow = 4
rt_desert = 5
rt_bridge = 7
rt_river  = 8
rt_mountain_forest = 9
rt_steppe_forest = 10
rt_forest = 11
rt_snow_forest = 12
rt_desert_forest = 13

Looking at the viewport is pretty obvious that is something like deep sea. I'd like to know the complete list:
uHzR3VC.png

...

Just found out this terrain list, which Othr defines in his tool:
插入代码块:
 #define rt_ocean 0
 #define rt_mountain 1
 #define rt_steppe 2
 #define rt_plain 3
 #define rt_snow 4
 #define rt_desert 5
 #define rt_ford 7
 #define rt_river 8
 #define rt_mountain_forest 9
 #define rt_steppe_forest 10
 #define rt_forest 11
 #define rt_snow_forest 12
 #define rt_desert_forest 13
 #define rt_water 15


I still don't get it why isn't defined too in the msys.
 
Aah, thanks Swyter. I guess I'll have to import my colourmap with Thorgrim's, export the OBJ file with swycartographer, edit the mesh with Blender, import it back into swycartographer, export map.txt, then do the terrain types in Thorgrim's. Simple  :grin:
 
Koozer 说:
Aah, thanks Swyter. I guess I'll have to import my colourmap with Thorgrim's, export the OBJ file with swycartographer, edit the mesh with Blender, import it back into swycartographer, export map.txt, then do the terrain types in Thorgrim's. Simple  :grin:
Heeeey, hey, stop there, cowboy.

9CqgIts.png


Okay, fixed. Both imp/exporting and visualization.
I really hope that it works in-game as well.

1IITEqV.png

(reimported OBJ from Blender, deep seas everywhere!)


Give me a second while I do a bit of housekeeping and proceed to upload it.
 
Ready for consumption, have fun:

插入代码块:
https://bitbucket.org/Swyter/cartographer/downloads/swycartographer-2013.03.09.zip

https://bitbucket.org/Swyter/cartographer/commits/cffa8aaa4327cd1c761eb405bb9ea9b175fbb77f 说:
*add support for deep water terrain type. Refactor obj material export a bit.
*replace my mistakenly included x64 c runtime dll for a x86 version.
 
后退
顶部 底部