Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

Should I pass the frame elapsedTime or localtime to anim sys

This topic is 901 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 am wondering, let's say I had an animation controller or ik subsystem,
and Should I interpolate the keyframes etc using the local time
(accumulated time) or the elapsed time (time differential between frames)
for each step?
If the former,

D3DXVec3Lerp(&finalPos, &start, &target, s);

the s very quickly overflows and maximum of one quickly fills.
if later
the animation oscillates

 

Update:

Got it, It's got to be a frameNo calculated by yourself
Thanks
Jack

Edited by lucky6969b

Share this post


Link to post
Share on other sites
Advertisement

My $0.02 is localTime and an animation should remember it's start-time to determine its elapsed time.  

If you pass-in elapsed time then error accumulates every frame.

Depending on what you are doing that might or might-not matter.

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!