A simple 3D rendering engine based on rasterization. This project demonstrates the fundamentals of 3D rendering, including transformations, projection, z-buffer, textures and shading, implemented from scratch.
- A C/C++ compiler (e.g., GCC, Clang)
- SDL2 library for window management and rendering
-
Clone the repository:
git clone https://github.com/mrmojo2/3drenderer.git cd 3drenderer
-
Build the project:
make
-
Run the renderer:
./bin/renderer <model.obj>
Replace
<model.obj>
with the path to your.obj
file.