Jump to content
Sign in to follow this  
  • entries
  • comments
  • views

Fun with experimentation

Sign in to follow this  


Well I pretty much finished my experiments in storing Quaternions as (R, u, theta) instead of (w, x, y, z). Basically it makes some operations a lot easier, such as exponentation, and some operations, like quaternion multiplication, pissing annoying to the point I would translate it back into (w, x, y, z) to perform the operation. The downer is that these would often come back to back like a inverse followed by a multiplication followed by a exponentiation followed by a multiplication.

On the other hand, in some cases the (R, u, theta) represetation makes the code much cleaner, and that makes me happy. Also, some of the operations seem to have less numerical instability than the (w, x, y, z) versions.

On the gripping hand, the lack of a unique identity quaternion makes the (R, u, theta) sprout more special cases in various places, which is annoying.

But somehow, magically, when I wired it all in to implement arcball rotation it worked perfectly the first time, so something has to be going right in terms of coding clarity.

I'm so conflicted.
Sign in to follow this  


Recommended Comments

There are no comments to display.

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
  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!