question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quaterniond slerp seems broken

See original GitHub issue

The 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.

image

The code for slerp() is very different from the code given on Wikipedia’s page – maybe you should try their version instead:

https://en.wikipedia.org/wiki/Slerp#Source_code

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
lukehutchcommented, Nov 10, 2019

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!

1reaction
httpdigestcommented, Nov 10, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found