News for hackers. Stuff that matters.
Re:Let's remove Quaternions from every 3D Engine by BenFrantzDale on Friday November 02, 2018 @06:12PM (#18367169)
The same is true (with lower performance, I suspect) with the 3x3 matrix representation.
Re:Let's remove Quaternions from every 3D Engine by jacobolus on Friday November 02, 2018 @07:53PM (#18367693)
Matrices for rotation have the problem that you are using a 9-dimensional representation for a 3-dimensional quantity, so it is easy to make matrices that are not rotations (indeed the vast majority of the possible space of matrices consists of transformations that are not anywhere close to a pure rotation). Composing matrices leads to rounding errors. It is more complicated to invert matrices. As you say the matrix logarithm is more complicated. Etc.

If you use a scalar + bivector “rotor” representation, that is only a 4-dimensional representation, which is easy to normalize to unit magnitude.

Re:Let's remove Quaternions from every 3D Engine by jcagalawan on Friday November 02, 2018 @08:57PM (#18367999)
Isn’t the inversion a trivial transpose for rotations since they’re orthogonal?
Re:Let's remove Quaternions from every 3D Engine by gugagore on Friday November 02, 2018 @08:24PM (#18367851)
It's beautiful to see that the logarithm of a rotation matrix is a skew-symmetric matrix. The skew-symmetric matrices correspond to angular velocity, which behave like vectors. You can add and interpolate as you expect. Rotation matrices multiply. Skew-symmetric matrices add. The logarithmic and exponential map moves between the two spaces.

Just letting you know that I think it's valuable to bring up matrices into this discussion, even if they do have problems in practice with rounding errors and efficiency.

Re:Let's remove Quaternions from every 3D Engine by senderista on Friday November 02, 2018 @08:38PM (#18367920)
That’s because skew-symmetric matrices are the Lie algebra of the Lie group of rotation matrices (and the exponential map takes a Lie algebra to a Lie group). In physics we call them the “infinitesimal generators” of the rotation group.
Re:Let's remove Quaternions from every 3D Engine by gugagore on Saturday November 03, 2018 @12:15PM (#18370930)
I love knowing about Lie algebras and groups, but I think I disagree about the "because". The matrix exponential and logarithm just are. You can define and compute them without invoking anything about Lie groups.

I didn't know the term "infinitesimal generator". Thanks!

Re:Let's remove Quaternions from every 3D Engine by BenFrantzDale on Saturday November 03, 2018 @10:35PM (#18373768)
Indeed. And certainly since rotation matrices and quaternions are both representations of rotation, they should have a log that is isomorphic.

Wilder still is the log of a 4x4 transformation matrix has the same tangent-vector properties, giving a coordinate-system-invariant rotation and translation.

Re:Let's remove Quaternions from every 3D Engine by marctenbosch on Friday November 02, 2018 @08:29PM (#18367880)
Skew symmetric matrices are isomorphic to bivectors :)