Quaterniond slerp seems broken
See original GitHub issueThe Quaterniond#slerp()
method seems broken. Here is a chart showing the value of alpha
blending from 0 to 1 linearly (top), the resulting rotation angle (middle), and the resulting three axis values (bottom). As alpha
surpasses about 0.25, both the angle and the axes go to zero.
The code for slerp()
is very different from the code given on Wikipedia’s page – maybe you should try their version instead:
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Quaternion.Slerp not working as I think it should... - Unity Forum
What I get is it seems to want to avoid certain directions and turns away from them... I simply want the projectile to...
Read more >slerp breaks flag for quaternion normalization #51 - GitHub
slerp returns the first quaternion if the cosine is larger than 1. This seems buggy for me. https://github.com/JuliaGeometry/Quaternions.jl/blob ...
Read more >Strange behaviour using Slerp - Stack Overflow
Quaternion.Slerp uses interpolation and shortest path. It does not work well with large angles. And is literally undefined at exactly 180 ...
Read more >Understanding Slerp, Then Not Using It
The inputs to slerp are two quaternions, q0 and q1, as well as a scalar ... Unfortunately, it seems impossible to get all...
Read more >Quaternion.slerp - General Help - jMonkeyEngine Hub
before the slerp. If it still is broken, we know it's slerp. irrisor December 1, 2005, 5:09pm #5. Good idea - does not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, yes, I thought it was odd that the destination parameter was in the first position for this method (it wasn’t – I didn’t see there was another method with the destination parameter as the last method, as with other method calls).
Thanks for the rapid responses, and sorry for the misunderstandings!
Nothing explicitly dedicated to JOML. You can use StackOverflow or if you feel like it you can join the LWJGL Slack via http://slack.lwjgl.org/ and post into the “joml” channel.