This project is a 3D renderer written in C (from scratch) that takes an input object file (.obj) and converts it into a 2D image for display on the screen. The project uses the Simple DirectMedia Layer (SDL) library for rendering.
- Load .obj files to render 3D models.
- Convert 3D models into 2D images.
- Displays rendered images using SDL.
C compiler(e.g., GCC)SDL2library
-
Clone the repository:
$ git clone https://github.com/ppriyankuu/3d-renderer $ cd 3d-renderer -
Install SDL2:
-
On
Debian-basedsystems:$ sudo apt-get install libsdl2-dev
-
On
macOSusing Homebrew:$ brew install sdl2
-
On
Windows, download theSDL2 development librariesfrom the SDL website and follow the installation instructions.
-
-
Build the project:
$ make build
or
$ make


