Skip to content

Lindeneg/interplay-3d

Repository files navigation

3D renderer written from scratch in C. Purely for educational purposes, as I want to better understand the beautiful mathematics behind it all.

example


Compilation

Download required submodule

  • git submodule init
  • git submodule update

And ensure cmake is installed.

Mac / Linux

Ensure sdl2, sdl2_image and sdl_ttf are installed on the system, then:

  • cmake .
  • make
  • ./bin/interplay

Windows

Either setup SDL yourself or use the scripts located in ./misc folder:

Do note, the scripts requires ninja and llvm.

  1. .\misc\generate.bat
  2. .\misc\build.bat
  3. .\misc\run.bat

Acknowledgements

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.

About

3D renderer in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages