Skip to content

Obj/tile generated without terrain? #9

@HeroXx

Description

@HeroXx

First off, thanks for a great starting point for generating meshes, really appreciate it.

This is more a question in the hopes of getting a pointer in where to start troubleshooting rather than a bug.

I have adapted this codebase with the latest info from wowdev.wiki & Wo and I feel like I am almost there in terms of getting a good export from the classic client (I know this project doesn't target the classic client).

I've made changes to adapt the loading of WDT as the Map.db2 entry no longer includes the wdtfiledataID. I swapped the WDT lookup to be done based on the directory given by the new struct:

if (wdt.LoadFile(CascHandler, $"world/maps/{record.Directory}/{record.Directory}.wdt"))
                    //if (wdt.LoadFile(CascHandler, (uint)record.WdtFileDataID, $"WDT for map {record.Id}"))

This does present some issues with the load of the rest of the data from the MAID chunk which doesn't appear to have any data in for any wdts. I'm in the process of troubleshooting this specific section but I adapted it to drop the attempt to load from MAID and just go direct to ADT, again based on directory.

The end result is odd, if I have a maps folder that has been generated with the above modifications, I get a blank obj file generated (using debug) but that has a considerable number of tris so is clearly not empty. If I don't have a maps folder, I get a obj that renders all of the buildings/objects but without the terrain:

image
Without maps folder

image
With maps folder

I appreciate this is outside of the scope of the project but I was just hoping that I might get some pointers to further my troublshooting.

I'll update this issue as I make progress / if I get a solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions