Jump to content
  • Advertisement
Sign in to follow this  
JohnnyCode

Is it correct to slerp and lerp

Recommended Posts

I wonder if it is correct to slerp the quaternion representation of the matrix rotation part, and lerp translation part of the matrix in animation linear interpolation. Becouse I get disecting result on some certain bones. Could it apear under some circumstances?

Share this post


Link to post
Share on other sites
Advertisement
29 minutes ago, Dirk Gregorius said:

I wouldn't use slerp to interpolate rotation but nlerp.

I second this, it is also better when you mix multiple animations, not just between two keyframes. (nlerp is order independent)

Share this post


Link to post
Share on other sites

Does this apply also for widely differring key frames in animation?

For me it applies the way that if I use constant weight 0.0 or 1.0 on played two frames, I get exported animation exactly, but if I use weight in between, I get a messy result,

I cannot detect wheather it is the wide difference in key frames that is the couse of it or my code somewhere, so I seek confirmation

Edited by JohnnyCode
update

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!