Advertisement Jump to content
Sign in to follow this  

SLERP and liniar interpolation - help needed!

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

Hi all! Im learning skeletal animation and I have it all figured out - except the interpolation part of it. I have been told that I should interpolate the Quaternion with SLERP, and that I should interpolate translation liniar. Im developing the engine in java - does anyone know if a predefined java class exsist that does SLERP? If not does anyone have some advice on making one? Liniar interpolation of translation vectors - what formula do I use for this?

Share this post

Link to post
Share on other sites
I have been looking around and found something interesting.
The Quat4f-class in the javax.vecmath package has an interpolate method but I dont know if it uses SLERP - it says in the description that it creates cirkular interpolation:

quat4f.interpolate(Quat4f q, alpha);

This method exsist for the Vector3f-class aswell for traslation interpolation.

I guess I have what I need!
Always great when you can answer your own questions...=)

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!