Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Getting the frames from Skinned Mesh

This topic is 5611 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

I have a little problem, i''m doing a game with a walking character but i wonder how i can control the movement of him, the skinned mesh example from the dx9 sdk uses fElapsed time to make the animation move but how can access exactly what frame to play when because i want the character to finish his walk cycle when the user releases the "walk" button. So the animation should proceed until frame==0 but i can''t figure out where i the variable of the current frame is... anyone?

Share this post

Link to post
Share on other sites

the (time) variable is exactly the one that you should change
if you have your x file 30 FPS then every frame is 0.0333 long

so if you want the 5th frame then time=0.03333*5

and if you want the 30th frame then time=0.03333*30 = 1(second)

Share this post

Link to post
Share on other sites

  • 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!