3 ms·
I've been screwing around with a hand-crafted software rendering engine, and using a good old fashioned 4x4 matrix seems to give me everything I am looking for
by bob1029 5y ago
I've been screwing around with a hand-crafted software rendering engine, and using a good old fashioned 4x4 matrix seems to give me everything I am looking for in this project.
I do find the math and applications of quaternions to be elegant in theory, but there is a bit of a blackbox/theoretic veil that is harder to penetrate compared to a matrix representation (at least for me). The matrix also gives me all 3 things at once - rotation/scale/transform. Somewhere in my programmer brain this abstraction feels really nice to work with.
Edit: This old & controversial article is what convinced me to stick with matrices for now:
https://www.gamedev.net/tutorials/_/technical/math-and-physics/do-we-really-need-quaternions-r1199/ https://www.gamedev.net/tutorials/_/technical/math-and-physi...