by openfuture · 6y ago · 0 comments
Implementing computer graphics should be done with geometric algebra.
I don't know anything about this field but I know the difference between a clean, consistent API and a random hodgepodge of hacks.
Since I don't know anything I'm not sure if GA allows you to avoid errors such as the one in the article but in typical HN fashion I'll be derailing with some left- field claim and a link to some other project.
However, some of the issues raised in that article will still be a problem, and the solutions in either vector algebra or geometric algebra would similarly benefit from this approach.
One related trick I've seen recently is to purposefully degrade floating point performance (e.g.: using fp16 or just zooming in a lot) so that rounding errors and numerical instability can be "visually inspected". This is an under-utilised method that reveals that many common graphics algorithms are designed for infinite precision reals and aren't optimal for IEEE 754 reals.
Making a game is a hard problem.
See Lisp on Playstation 2: https://en.wikipedia.org/wiki/Game_Oriented_Assembly_Lisp
Check out the demo https://observablehq.com/@enkimute/animated-orbits
Watch the SIGGRAPH talk https://youtu.be/tX4H_ctggYo
Join the discord https://discord.gg/vGY6pPk