News for hackers. Stuff that matters.
Re:One Formula That Demystifies 3D Graphics by smokel on Sunday January 04, 2026 @01:30PM (#46490748)
> The rotation formula eludes me.

Interestingly, in a way, rotation is less mystical than the perspective projection. The rotation is linear: x' = Rx, but the perspective projection is non-linear.

This is where things become fun. Next up are homogeneous coordinates or quaternions. Takes a few years of your life to actually enjoy this though :)

Re:One Formula That Demystifies 3D Graphics by chuckadams on Sunday January 04, 2026 @02:40PM (#46491427)
I get how quaternions beat Euler angles, but I still can't visualize the damn things 8-/
Re:One Formula That Demystifies 3D Graphics by aleph_minus_one on Sunday January 04, 2026 @03:12PM (#46491706)
> I get how quaternions beat Euler angles, but I still can't visualize the damn things 8-/

And spin groups beat quaternions since they work in every (finite) dimension. :-)

Re:One Formula That Demystifies 3D Graphics by corysama on Sunday January 04, 2026 @01:37PM (#46490819)
I recently appreciated this vid explaining that 3D translation using the traditional 4x4 transform matrix is performing a shear operation in 4D.

https://youtu.be/x1F4eFN_cos