Skip to content

ppriyankuu/3d-renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Renderer

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.

Image reference 01 Image reference 02 Image reference 02

Features

  • Load .obj files to render 3D models.
  • Convert 3D models into 2D images.
  • Displays rendered images using SDL.

Prerequisites

  • C compiler (e.g., GCC)
  • SDL2 library

Installation

  1. Clone the repository:

    $ git clone https://github.com/ppriyankuu/3d-renderer
    $ cd 3d-renderer
  2. Install SDL2:

    • On Debian-based systems:

      $ sudo apt-get install libsdl2-dev
    • On macOS using Homebrew:

      $ brew install sdl2
    • On Windows, download the SDL2 development libraries from the SDL website and follow the installation instructions.

  3. Build the project:

    $ make build 

    or

     $ make

About

A 3d-renderer written in C

Topics

Resources

Stars

Watchers

Forks