Post #4051058
2026-05-05 19:27 UTC
@aras@mastodon.gamedev.place The beauty of 3D is that the equivalent problem to w/h swapping is “getting coordinate system wrong”, for which there are 24 possibilities and any number of errors could cancel each other!
Replies (1)
-
@Maraneshi@mastodon.gamedev.place 2026-05-05 20:43
@zeux@mastodon.gamedev.place @aras@mastodon.gamedev.place I load my row major column vector matrices into another math library that uses row major row vector matrices by reinterpreting the bytes directly, do some operations, then store them into a buffer that goes into HLSL, which again reinterprets those bytes as column major row vector matrices and then I use the mul(vector, matrix) ordering that according to documentation treats the vector as a row vector. I didn't write this code, but It works and I leave it alone for job security (/j).