Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Map tiles merging #12

Open
alishahb opened this issue Nov 3, 2017 · 4 comments
Open

Map tiles merging #12

alishahb opened this issue Nov 3, 2017 · 4 comments
Assignees

Comments

@alishahb
Copy link

alishahb commented Nov 3, 2017

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
Copy link
Owner

Marlamin commented Nov 3, 2017

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.

@Marlamin Marlamin self-assigned this Nov 3, 2017
@alishahb
Copy link
Author

alishahb commented Nov 3, 2017

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
Copy link
Owner

Marlamin commented Nov 3, 2017

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
Copy link
Author

alishahb commented Nov 3, 2017

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

@Marlamin Marlamin transferred this issue from Marlamin/WoWFormatTest Mar 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants