OwenTheProgrammer

@owentheprogrammer.bsky.social

Game dev / Graphics dev. All I know is math now.

Spent the pass few days trying to make a PS1 gpu emulator as faithfully as possible. Still trying to figure out how theyd do the rasterization in hardware with fixed point math (the GTE is documented far more than the GPU is) and of course im curious if this will work with VR projection matrices :3

yet another one of those "damn I really hope I didnt screw anything up XD" types of problems.. Reducing the Perspective-N-Point design matrix through partitioned low-rank approximation (EYM). The original 2N x 12 SVD reduced to 2N x 4, the rest is back substitution under x = (A A+)x + (I - A A+)x

Bild

fun fact, if you go through the work to derive the quadratic equation, the point where you convert the sqrt(b^2 - 4ac / (4a^2)) is often factored out as sqrt(b^2 - 4ac) / 2a, but if you want the +sqrt to be the larger root, and the -sqrt to be the smaller root, you need this instead.

Bild

just found out GPUs dont like running 100% utilization, vram at 7GHz, 2^80 operations total, but im still amazed at the fact it only left to cry at.. ahem. operation 7,409,760,794,050,560. and I accidentally asked it to allocate 17.7GB of vram and compute 2 billion things.. which it did in 9 seconds

Redid my error function approximation for really no reason lol but I got the deviation terms down even more! it also doesnt die past like 14.. so thats a bonus.. For anyone curious why the erf(x) function is useful, erf(x) = 2/sqrt(pi) * int_0^x{e^{-t^2} dt}

BildBild

Weeelp imma start going through all my discord dms over the past 7ish years, collecting everything I care about, and same with servers. If I have to drop discord round march, I at least want to have the imprint of every chat I’ve started ever. I don’t really have plans if I have to leave, we’ll see