コード例 #1
0
ファイル: M2AnimationBone.cs プロジェクト: jimleigh/WoWEditor
        public M2AnimationBone(M2File file, ref M2Bone bone, BinaryReader reader)
        {
            Bone         = bone;
            bone.pivot.Y = -bone.pivot.Y;
            mPivot       = Matrix.Translation(bone.pivot);
            mInvPivot    = Matrix.Translation(-bone.pivot);

            mTranslation = new M2Vector3AnimationBlock(file, bone.translation, reader);
            mRotation    = new M2Quaternion16AnimationBlock(file, bone.rotation, reader, Quaternion.Identity);
            mScaling     = new M2Vector3AnimationBlock(file, bone.scaling, reader, Vector3.One);
        }
コード例 #2
0
        public M2AnimationBone(M2File file, ref M2Bone bone, BinaryReader reader)
        {
            mBone         = bone;
            IsBillboarded = (bone.flags & 0x08) != 0;  // Some billboards have 0x40 for cylindrical?
            IsTransformed = (bone.flags & 0x200) != 0;

            bone.pivot.Y = -bone.pivot.Y;
            mPivot       = Matrix.Translation(bone.pivot);
            mInvPivot    = Matrix.Translation(-bone.pivot);

            mTranslation = new M2Vector3AnimationBlock(file, bone.translation, reader);
            mRotation    = new M2Quaternion16AnimationBlock(file, bone.rotation, reader, Quaternion.Identity);
            mScaling     = new M2Vector3AnimationBlock(file, bone.scaling, reader, Vector3.One);
        }
コード例 #3
0
ファイル: M2UVAnimation.cs プロジェクト: veserine/Neo
 public M2UVAnimation(M2File file, ref M2TexAnim texAnim, BinaryReader reader)
 {
     mTranslation = new M2Vector3AnimationBlock(file, texAnim.translation, reader);
     mRotation    = new M2InvQuaternion16AnimationBlock(file, texAnim.rotation, reader);
     mScaling     = new M2Vector3AnimationBlock(file, texAnim.scaling, reader, Vector3.One);
 }
コード例 #4
0
ファイル: M2TexColorAninmation.cs プロジェクト: veserine/Neo
 public M2TexColorAnimation(M2File file, ref M2ColorAnim colorAnim, BinaryReader reader)
 {
     mColor = new M2Vector3AnimationBlock(file, colorAnim.color, reader, Vector3.One);
     mAlpha = new M2NoInterpolateAlpha16AnimationBlock(file, colorAnim.alpha, reader, 1.0f);
 }