Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Skeletal Animation w/DirectX

Author
Message
Avery
12
Years of Service
User Offline
Joined: 10th Feb 2012
Location:
Posted: 11th Feb 2012 00:57
I'm trying to write a program for skeletal animation in DirectX 9, I have used LoadMeshFromHierarchy function to load an animated mesh...now I would like to bypass the animController so that I can dictate the animation by reading keyframes from the animated mesh file(ex. tiny.x) and looping through those keys at will.

Here is what I have so far...at this point I have already parsed the .x file successfully and stored each animation, and animationkey for the sole animation set within a class (Anim). When I run this update function the animated mesh is disfigured, i can't figure out why...I assume it is the process by which I update the transformation matrix for each frame...here is my code:




Is my method correct? The first thing I do for each frame is reset the transformation matrix to identity, then I calculate an interpolated value for each key(translation, scale, rotation, & matrix) and apply it to the transformation matrix...then I update the frame matrices, and then the skinned mesh.

Any ideas?
Travis Gatlin
14
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 11th Feb 2012 01:46
This is probably the wrong place to ask. Try Programming Chat.

http://awolthehunted.blogspot.com/
For the latest news on my FPS in development, check out my blog!

Login to post a reply

Server time is: 2024-03-28 22:04:52
Your offset time is: 2024-03-28 22:04:52