Ejemplo n.º 1
0
 public SRTContainer[] GetAllLocalSRTValuesForBone(int boneIndex)
 {
     SRTContainer[] localSRTValues = new SRTContainer[m_NumFrames];
     for (int i = 0; i < m_NumFrames; i++)
     {
         localSRTValues[i] = m_AnimationData[boneIndex].GetScaleRotationTranslation(i);
     }
     return localSRTValues;
 }
Ejemplo n.º 2
0
 public SRTContainer[] GetAllLocalSRTValuesForBone(int boneIndex)
 {
     SRTContainer[] localSRTValues = new SRTContainer[m_NumFrames];
     for (int i = 0; i < m_NumFrames; i++)
     {
         localSRTValues[i] = m_AnimationData[boneIndex].GetScaleRotationTranslation(i);
     }
     return(localSRTValues);
 }
Ejemplo n.º 3
0
 public SRTContainer[] GetAllLocalSRTValuesForFrame(int numChunks, int frame)
 {
     SRTContainer[] localSRTValues = new SRTContainer[numChunks];
     for (int i = 0; i < numChunks; i++)
     {
         if (i >= m_AnimationData.Length) break;
         localSRTValues[i] = m_AnimationData[i].GetScaleRotationTranslation(frame);
     }
     return localSRTValues;
 }
Ejemplo n.º 4
0
 public SRTContainer[] GetAllLocalSRTValuesForFrame(int numChunks, int frame)
 {
     SRTContainer[] localSRTValues = new SRTContainer[numChunks];
     for (int i = 0; i < numChunks; i++)
     {
         if (i >= m_AnimationData.Length)
         {
             break;
         }
         localSRTValues[i] = m_AnimationData[i].GetScaleRotationTranslation(frame);
     }
     return(localSRTValues);
 }
Ejemplo n.º 5
0
            /*
             * Returns the SRT matrix for the specified bone for the current frame having been multiplied by all parent transformations
             */
            public Matrix4 GetMatrix(BMD.ModelChunk[] chunks, int boneID, Matrix4[] otherMatrices, int frame)
            {
                SRTContainer srt = GetScaleRotationTranslation(frame);

                Matrix4 ret = srt.m_Matrix;

                if (chunks[boneID].m_ParentOffset < 0)
                {
                    Matrix4.Mult(ref ret, ref otherMatrices[boneID + chunks[boneID].m_ParentOffset], out ret);
                }

                return(ret);
            }
Ejemplo n.º 6
0
            /*
             * Returns the SRT matrix for the specified bone for the current frame NOT multiplied by all parent transformations
             */
            public Matrix4 GetLocalMatrix(int frame)
            {
                SRTContainer srt = GetScaleRotationTranslation(frame);

                return(srt.m_Matrix);
            }