Author Topic: Endian Safeness in Chapter 13 Loading BG3D Models  (Read 2265 times)

PolyEx

  • Guest
Endian Safeness in Chapter 13 Loading BG3D Models
« on: August 09, 2011, 09:52:23 AM »
Ran into some trouble compiling this for Intel (Altivitec stuff). Got past those problems, but getting crashing when the Chapter 13 example is run. It looks like the BG3D file format is big endian (at least the version of the files that come with the example code). Is this correct? I have started to try and change the code to make it "endian safe" but would hate to do this work if someone already has.

Brian Greenstone, CEO Pangea

  • Administrator
  • Hero Member
  • *****
  • Posts: 2118
  • Karma: +282/-138
    • View Profile
Re: Endian Safeness in Chapter 13 Loading BG3D Models
« Reply #1 on: August 09, 2011, 10:03:44 AM »
Yes, that old stuff was all pre-Intel, so it's all PowerPC big-endian.  You'll need to convert everything to little-endian.

-Brian