DOOM in a Calculator
What started as a test for 3D using an experimental new feature in the Desmos calculator turned into a project that I worked on in my free time to get DOOM up in a graphing calculator. The underlying mechanic that makes this version so much more performant is the fact that the rendering is handled by the 3D version of Desmos, since they added a feature that allowed triangles outside of the bounding box. Since that handled all the raytracing, all I had to do was implement the math behind movement, triangle placement, getting images to be rendered through compiling images into triangle code for the graph, and most difficult of all: textures. There is a way to run shaders on surfaces in the calculator, but they take in an (x, y, z) value, and theres no way for it to store images, since multidimensional lists are unallowed. The way around this was I ran each RGB channel of each image texture through a fourier transform to 'vectorize' an image by mapping (u,v) coordinates with math functions. The coefficients generated could be imported into Desmos, and all that had to be done was mapping and tiling based on the orientation of the map. The final version ran at around 10fps which is much better than any other attempt. I found this project fulfilling because I couldn't just use AI or look up solutions, but rather I had to invent new solutions on my own.