- [84+CE] Assembly 3D Rendering Test
- 31 Jan 2016 05:23:09 pm
- Last edited by Hactar on 27 Dec 2018 12:54:45 am; edited 1 time in total
Over the last week or so, I've thrown together a 3D renderer in assembly. Right now the points must be hard-coded, and it doesn't draw lines between them yet (cough Mateo cough) but it is certainly usable. Right now, the arrow keys move the player, [Del] and [Stat] move the player up and down respectively, and the number pad is used for rotation ([4] = left, [6] = right, [8] = up, [2] = down, [7] = roll left, and [9] = roll right). I went for a first-person-style control scheme, so if you look directly down and press forward you will move in the direction that forward would be if you were not looking directly down. (I hope that makes sense?)
Enough text, here's an image!
As you can see, this renderer is pretty smooth. (The GIF looks a little choppy, but the real version isn't.)
Download (source included; updated 2018-12-27)
Huge thanks to Kerm, Mateo, Jacobly, Runer, and a bunch of others who helped me with some of the routines and debugging. I have no major plans for this in the future, but I'm hoping someone will pick this up, optimize it, and possibly turn it into a C library! Pretty simple 3D games have been made for the monochrome calculators, (ex. TI-Doom) and I'm sure the CE has lots of potential. A 3D graphics library could be extremely empowering to C and assembly coders alike.
What do you think?
P.S. It also has an icon when launched from Cesium.
Enough text, here's an image!
As you can see, this renderer is pretty smooth. (The GIF looks a little choppy, but the real version isn't.)
Download (source included; updated 2018-12-27)
Huge thanks to Kerm, Mateo, Jacobly, Runer, and a bunch of others who helped me with some of the routines and debugging. I have no major plans for this in the future, but I'm hoping someone will pick this up, optimize it, and possibly turn it into a C library! Pretty simple 3D games have been made for the monochrome calculators, (ex. TI-Doom) and I'm sure the CE has lots of potential. A 3D graphics library could be extremely empowering to C and assembly coders alike.
What do you think?
P.S. It also has an icon when launched from Cesium.