First 3d renderer (space disco donut)

Published 2023-06-12



My attempt at making my own 3d renderer. The code is not clean and it's quite laggy, but I'm overall satisfied with it, and I learned some new stuff. You can change the object being displayed by editing the source code. I'm not planning on optimizing it for now.

Controls:
Left/Right : rotate Y
Up/Down : rotate X
C/X : rotate Z

Player 2 Up/Down (E/D) : Zoom/Dezoom

New revision. Surface lighting, camera perspective, and better face sorting.
Pause -> "Disco colors" to enable disco faces
Pause -> "Obj" to switch between donut/teapot