ANI editor

08/10/2017 10:25 anton1312#1
Hello everyone, today I want ask for help. I'm with friend already have some progress, but as you can see by clicking this [Only registered and activated users can see links. Click Here To Register...] something goes wrong (on this GIF file should be Dervish Spin skill)
render code:
Code:
 for (int i = 0; i < m_boneCount; i++)
  {
    if (m_frames[i].frames)
    {
      frame = &m_frames[i].frames[currentFrame];
      next = &m_frames[i].frames[nextFrame];

      D3DXQuaternionSlerp(&slerp, &frame->rot, &next->rot, slp);
      D3DXVec3Lerp(&lerp, &frame->pos, &next->pos, slp);
      D3DXMatrixTranslation(&m1, lerp.x, lerp.y, lerp.z);
      D3DXMatrixRotationQuaternion(&m2, &slerp);
      
      m2 *= m1;
      
      if (m_bones[i].parentID != -1)
        m2 *= bones[m_bones[i].parentID];
    }
    else
    {
      m2 = m_frames[i].TM;
    
      if (m_bones[i].parentID != -1)
        m2 *= bones[m_bones[i].parentID];
    }

    bones[i] = m2;
  }
structure:
If someone can help with it - feel free to comment here.
03/24/2018 05:07 anton1312#2
b u m p