I'm attempting to write a program that reads in WMO files and the map tiles (from World\Minimaps) from raids and dungeons, and then overlays them with other position data.
My program opens the WMO root files, reads the MOGI chunk to get the boundary boxes for each group, and then loads the corresponding .blp file for each group.
The wmo root files I'm using are from World\wmo\Dungeon\, e.g. World\wmo\Dungeon\OrgrimmarRaid\Orgrimmar_raid.wmo.
Then map tiles are loaded from World\Minimaps, e.g. World\Minimaps\OrgrimmarRaid\mapXX_YY.blp
Here are some screenshots: WoW Experiment - Imgur
It works fine, except for the different coord system being used. The major issue is the scale is completely off. I've searched everywhere trying to find how to properly scale and position these wmo files but with no success. They are all much bigger than they should be compared to the map tiles, and I know the map tiles are scaled correctly.
I've searched the dbc files, and can't find anything. I've looked at the WDT (MWMO chunk always empty i.e. size = 0), WDL (MWMO also empty). Nothing!!
I did manage to find references to the files in the ADT file MWMO chunk:
I don't quite understand why multiple adt files are referencing the same wmo. I'm still working on parsing more chunks of the adt file as I post this, but I thought I'd post anyway.OrgrimmarRaid_31_30_obj1.adt - 0: WORLD\WMO\DUNGEON\ORGRIMMARRAID\MG_RAIDBUILDING_ENTRANCE.WMO
OrgrimmarRaid_38_27_obj0.adt - 0: WORLD\WMO\DUNGEON\ORGRIMMARRAID\ORGRIMMAR_RAID.WMO
OrgrimmarRaid_38_27_obj1.adt - 0: WORLD\WMO\DUNGEON\ORGRIMMARRAID\ORGRIMMAR_RAID.WMO
OrgrimmarRaid_38_28_obj0.adt - 0: WORLD\WMO\DUNGEON\ORGRIMMARRAID\ORGRIMMAR_RAID.WMO
OrgrimmarRaid_38_28_obj1.adt - 0: WORLD\WMO\DUNGEON\ORGRIMMARRAID\ORGRIMMAR_RAID.WMO
OrgrimmarRaid_38_29_obj0.adt - 0: WORLD\WMO\DUNGEON\ORGRIMMARRAID\ORGRIMMAR_RAID.WMO
OrgrimmarRaid_38_29_obj1.adt - 0: WORLD\WMO\DUNGEON\ORGRIMMARRAID\ORGRIMMAR_RAID.WMO
OrgrimmarRaid_38_30_obj0.adt - 0: WORLD\WMO\DUNGEON\ORGRIMMARRAID\ORGRIMMAR_RAID.WMO
TLDR: How can I properly scale and position these WMO files?