Jump to content
  • Advertisement
Sign in to follow this  
eldano

[SlimDX] sw Skinning problem

This topic is 3529 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, I'm trying to do skinning with SlimDX but I don't can't make it work. The function UpdateSkinnedMesh takes a bone transformation matrix as its first parameter but I don't understand why is like that since in DirectX it takes an array with all the bones transformation matrices. What I did was: - Get a bone from the hierarchy - Rotate it - Update combined bone Matrices - calculate transformation matrices multiplying each offset matrix by the corresponding combined bone matrix. - calculate the inverse transpose matrix for the UpdateSkinnedMesh function and now I tried calling UpdateSkinnedMesh twice (I have 2 bones), once for each transformation matrix, but this gives me strange results. It rotates the wrong bone. Any ideas? Thank you in advance.

Share this post


Link to post
Share on other sites
Advertisement
Yes, I got confused by the docs, which made it seem like UpdateSkinnedMesh took single matrices as parameters. I made the fix, so now it takes arrays of matrices. The update is in the repository.

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!