A basic 64bit WowModelViewer client running on macOS

Something to discuss or share around development, here is the right place
Forum rules
Before requesting support, please make sure:
- your problem is not already discussed in this forum
- your poblem is not already listed here : https://wowmodelviewer.net:8443/issues/?filter=10901
Please enclose logs and clear workflow (+ screenshot if applicable) to help understand your issue.
Thanks !
Post Reply
Posts: 1
Joined: Tue Mar 13, 2018 11:19 am

A basic 64bit WowModelViewer client running on macOS

Post by Norod » Tue Mar 13, 2018 11:57 am

Hello all,

I was playing around with your WowModelViewer's code and managed to compile a basic version of the client to as an x86_64 target for macOS.

Here is a link to a short screen recording of it: https://youtu.be/6ERz5DL-njw

While my fork contains a lot of experiments, and quick & dirty workarounds, it does fix a few issues which are probably present in your Windows client:
  • There are several lines which look something like

    Code: Select all

    result = (*reinterpret_cast <unsigned int*>(val));
    where a Heap over-reading occur when/if the allocated bytes for val < sizeof(unsigned int)
  • modelheaders.h - Got many CPU exceptions thrown in 64bit mode with byte alignment = 1. Setting it to 8 solved it.

    Code: Select all

    #pragma pack(push,8)
Here is my Fork's commit list: https://bitbucket.org/Norod/wowmodelviewer/commits/all
Specifically commits d6fb2e0 and
8b54e53 are the ones who also contain the fixes to the issues I mentioned above

You guys are doing an amazing work!

Post Reply