Jump to content
  • Advertisement
Sign in to follow this  

Adjusting mocap data with IK

Recommended Posts

I simply cannot make the animation look good. if I just add on the translation part, the character becomes an enlarged monkey, if I just add on the rotation part, also it messes up, if I add on the transformation, the character is flattened (the character becomes very thin)

I think the correct way is to add the transformations together. If I just apply one of the mocap or ik transformation alone, the animation is okay. Any ideas?




	D3DXVECTOR3 oldpos, oldscale;
D3DXMatrixDecompose(&oldscale, &oldquat, &oldpos, &frame->TransformationMatrix);
	//D3DXMATRIX oldTransform, oldSca, oldRot, oldTrans;
//D3DXMatrixScaling(&oldSca, oldscale.x, oldscale.y, oldscale.z);
//D3DXMatrixTranslation(&oldTrans, oldpos.x, oldpos.y, oldpos.z);
//D3DXMatrixRotationQuaternion(&oldRot, &oldquat);
//oldTransform = oldSca * oldRot * oldTrans;
//newPosition += oldpos;    
//newOrientation *= oldquat;
 D3DXMATRIX matScale, matTrans, matRot;
 D3DXMatrixTranslation(&matTrans, newPosition.x, newPosition.y, newPosition.z);        
 D3DXMatrixRotationQuaternion(&matRot, &newOrientation);    
  D3DXMATRIX matFinal;
	   matFinal = matRot * matTrans;
   frame->TransformationMatrix = matFinal;


Share this post

Link to post
Share on other sites

Oh... I get it....for this kind of animations, you can't make use of a heavy-duty library like opentissue, because they are good for explicit postures, for light-duty tasks, like arm-adjustment, you will just need some simple ik systems.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!