Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411429 Posts in 69363 Topics- by 58416 Members - Latest Member: JamesAGreen

April 19, 2024, 03:14:51 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Swing-Twist Interpolation (Sterp), An Alternative to Slerp & Nlerp
Pages: [1]
Print
Author Topic: Swing-Twist Interpolation (Sterp), An Alternative to Slerp & Nlerp  (Read 889 times)
Allen Chou
Level 0
**



View Profile WWW
« on: May 16, 2018, 09:14:08 PM »

Hi, all:

I wrote a post about swing-twist decomposition & interpolation of quaternions.

It is an alternative to spherical linear interpolation (slerp) and normalized linear interpolation (nlerp).

Representing two orientations using quaternions, slerp & lerp interpolate between the quaternions along the "shortest arc" on a 4D hypersphere. Although that feels mathematically ideal, sometimes it produces noticeable unwanted orientational sways in 3D.

Swing-twist interpolation (sterp) is an alternative to slerp & lerp, and can be used to mitigate orientational sways when interpolating quaternions.

For more details including derivation with properly formatted formulas, proof, and animated examples, please see:
http://allenchou.net/2018/05/game-math-swing-twist-interpolation-sterp/

Logged

ThemsAllTook
Administrator
Level 10
******



View Profile WWW
« Reply #1 on: May 24, 2018, 07:42:39 AM »

Neat! Bookmarked in case I run into a situation where slerp isn't satisfying enough. Thanks for sharing.
Logged

Crimsontide
Level 5
*****


View Profile
« Reply #2 on: May 24, 2018, 08:07:18 AM »

Neat! Bookmarked in case I run into a situation where slerp isn't satisfying enough. Thanks for sharing.

Agreed.  At this moment I'm not playing with my Quaternion code, but its something I'll look at down the line when I get time...
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic