Jump to content
  • Advertisement
Sign in to follow this  
Carnevil_

Possible to get animation length?

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

Quick question: Is it possible to get the length of a particular animation within an animation set in DX9? I'm working on a scripting system in a FPS that allows the scripters to specify the duration of an animation. So, to pull this off, I'm trying to speed up/slow down the animation appropriately depending on what the scripter specified. The problem is that I have no idea how much to speed the animation up/down because I don't know the original length of the animation! Is there a way to figure this out, or a better way to do this? Unfortunately, Microsoft's documentation is horrible in this area, and various searches haven't turned up anything :( Thank you!

Share this post


Link to post
Share on other sites
Advertisement
GetPeriod() works for me. Are you sure you're testing an animation set that does not have a period of 1 second?

Share this post


Link to post
Share on other sites
Quote:

Is it possible to get the length of a particular animation within an animation set in DX9?

you want to know the time that a frame takes, and number of frames. There is a timer that runs and can obtain a frame number on a given milisecond count when you request a frame number . Timer resets and I do not know wheather you reset it explicitly or DX pretends to do it.

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.

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!