Jump to content
  • Advertisement
Sign in to follow this  
ramy

Skinning Animation problem

This topic is 4721 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello guys, i have a skinning animation problem. well i followed the directx samples for C++ Skinning Animation. i loaded the model and GenerateSkinnin() and all of those processing stuff. but when it comes to display, i display the model in a different way. i render it the following way. http://img144.echo.cx/my.php?image=wrong0qr.gif the DirectX sample renders it the following way. http://img144.echo.cx/my.php?image=right2fd.gif off course directX renders it the right way, but where is my mistake? did anybody pass by this problem? and both of us r doing the fixed function non-indexed skinning. i am using the April 2005 sdk, and for my work, i wrote my own device, where DirectX sample they have their own device thing ready made. so can this be the problem? but i doubt. anybody has any ideas? thx in advanced ramy

Share this post


Link to post
Share on other sites
Advertisement
It seems ur bone transformations are not being performed correctly, according to the bone hierarchy. Do u use any kind of "combinedMatrix" in your bones? Maybe they're just being transformed with their local offset, and not their parent's one as well. Does it play any kind of animation?

Share this post


Link to post
Share on other sites
it does play animation but it flies all over the place and it moves while the animation is played. :S

thats very weird, cause i didnt tell it to move, nor transform it.

i use a combined matrix which is available in the FrameDerived struct as follows:

struct D3DXFRAME_DERIVED: public D3DXFRAME
{
D3DXMATRIXA16 CombinedTransformationMatrix;
};

PS: can somebody tell me how to do the code tags to write code tags in the topic?

Share this post


Link to post
Share on other sites
i fixed the problem, it turned out that when i move the frame, i needed to pass the world matrix that had his center negated from it.

thx for the help

Share this post


Link to post
Share on other sites
Quote:
Original post by ramy
PS: can somebody tell me how to do the code tags to write code tags in the topic?


use [ source ] and [ / source ] tags :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!