Marlamin / WoWExportTools

Tool for exporting WoW assets to more portable formats
MIT License
45 stars 15 forks source link

Map tiles merging #12

Open alishahb opened 6 years ago

alishahb commented 6 years ago

Hi there!

Thank you for your OBJExporter tool - it is very useful! :)

Can you suggest a proper way for merging generated map tiles (.obj) into one .obj file (8 neighbor tiles + 1 center tile).

Marlamin commented 6 years ago

There really isn't a good one yet. I'm working on some UI changes for map stuff that I'll take this feedback into account on.

alishahb commented 6 years ago

I do use https://github.com/stefangordon/ObjParser and load tiles in cycle, something like this: https://hastebin.com/xasasahayi.cs

but when i viewing generated .obj it do show only one tile (first one loaded).

I assume this is because of tiles offsets not set properly, tho i do not know Wavefront structure good enough yet to understand how those should be calculated and vertexes\faces to be changed

If you can suggest maybe links where to rad about how this can be done, i would be grateful :P

Marlamin commented 6 years ago

Yeah, I probably do some stuff (or forget to do some stuff) during exporting that causes that. Theoretically they should be at the same position they are in-game so importing multiple tiles should put them in the correct spot. But still some work to be done there.

alishahb commented 6 years ago

Ok, i got how Wavefront objects structure logic works :) here is example of merging 9 tiles (center + 8 neighbors) into one: https://hastebin.com/unufeviset.cs