Jelajahi Sumber

OgreImporter: fix relative to absolute transform and Jack's walk animation

1vanK 9 tahun lalu
induk
melakukan
49a25f787c
3 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Source/Tools/OgreImporter/OgreImporter.cpp
  2. TEMPAT SAMPAH
      bin/Data/Models/Jack.mdl
  3. TEMPAT SAMPAH
      bin/Data/Models/Jack_Walk.ani

+ 1 - 1
Source/Tools/OgreImporter/OgreImporter.cpp

@@ -999,7 +999,7 @@ void WriteOutput(const String& outputFileName, bool exportAnimations, bool rotat
                         Quaternion rot(angle, axisVec);
                         Quaternion rot(angle, axisVec);
 
 
                         // Transform from bind-pose relative into absolute
                         // Transform from bind-pose relative into absolute
-                        pos = bone->bindPosition_ + bone->bindRotation_ * pos;
+                        pos = bone->bindPosition_ + pos;
                         rot = bone->bindRotation_ * rot;
                         rot = bone->bindRotation_ * rot;
 
 
                         newKeyFrame.time_ = keyFrame.GetFloat("time");
                         newKeyFrame.time_ = keyFrame.GetFloat("time");

TEMPAT SAMPAH
bin/Data/Models/Jack.mdl


TEMPAT SAMPAH
bin/Data/Models/Jack_Walk.ani