[xoreos-git] [xoreos/xoreos] 472a13: GRAPHICS: Fix Xbox KotOR/KotOR2 model animations

GitHub noreply at github.com
Sun Jul 15 18:41:19 CEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/xoreos/xoreos
  Commit: 472a13f0d8436efc9f7bc6cca890ac520d5c8099
      https://github.com/xoreos/xoreos/commit/472a13f0d8436efc9f7bc6cca890ac520d5c8099
  Author: Sven Hesse <drmccoy at drmccoy.de>
  Date:   2018-07-15 (Sun, 15 Jul 2018)

  Changed paths:
    M src/engines/kotor/kotor.cpp
    M src/engines/kotor/modelloader.cpp
    M src/engines/kotor/modelloader.h
    M src/engines/kotor2/kotor2.cpp
    M src/engines/kotor2/modelloader.cpp
    M src/engines/kotor2/modelloader.h
    M src/graphics/aurora/model_kotor.cpp
    M src/graphics/aurora/model_kotor.h

  Log Message:
  -----------
  GRAPHICS: Fix Xbox KotOR/KotOR2 model animations

The Xbox versions of the KotOR/KotOR2 models store animations a bit
differently than the Windows/Mac/Linux versions:
1) 8 vs 12 reserved bytes before the mapping
2) Bone indices are stores as int16 instead of float

This commit makes our model loader read them correctly. To correctly
identify whether it's an Xbox model or not, a parameter Xbox is added
to the constructor (similar to how we differentiate between KotOR1 and
KotOR2), set by the engine.



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the xoreos-git mailing list