3D renderer written from scratch in C. Purely for educational purposes, as I want to better understand the beautiful mathematics behind it all.
Download required submodule
git submodule init
git submodule update
And ensure cmake
is installed.
Ensure sdl2, sdl2_image and sdl_ttf are installed on the system, then:
cmake .
make
./bin/interplay
Either setup SDL yourself or use the scripts located in ./misc
folder:
Do note, the scripts requires ninja and llvm.
.\misc\generate.bat
.\misc\build.bat
.\misc\run.bat
I've used two primary resources, and I want to extend gratitude to the people behind those resources:
Gustavo's course 3D Computer Graphics Programming has been my main resources to get an introductory understanding of 3D maths. Gustavo is a phenomenal teacher with a great focus on mathematics. His clarity and thoroughness is something I value a great deal. Besides, he also has a YouTube channel with loads of free awesome content.
The book 3D Math Primer for Graphics and Game Development contains excellent explanations (with problems) and has been an enjoyable read. It's even free! Thank you, Fletcher Dunn.