Skip to content
/ minirt Public

☀️ A simple raytracer in C

Notifications You must be signed in to change notification settings

cosmodd/minirt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniRT

About

The goal of this project is to create a simple raytracer which handles simple geometric shapes, diffuse reflection, shadows, and light. We have made some bonuses, such as specular reflection, reflection (mirror), colored lights, and being able to move in the world.

png 01

Setting Up

The program can be tested on any Mac or Linux distribution with the MinilibX installed - the very basic library allowed for our first projects at 42.

  • On the school's computers: there is not much to do. Run make from ./miniRT.

  • Mac OS X

    • To install the MinilibX, follow the instructions from this link : minilibx-mac-osx
  • Linux

    • To install the MinilibX, follow the instructions from this link : minilibx-linux
    • After installing all the necessary libraries. Clone the repo from the previous link into ./miniRT , and compile it using the ./configure script.

Usage

Type ./miniRT followed by the map of your choice as a parameter.
e.g. ./scenes/[something].rt

  • w, a, s, d keys are used to move around.
  • i, j, k, l keys are used to rotate the camera view.
  • ctrl, space are used to go down/up along the vertical axis.

png 01

png 01

About

☀️ A simple raytracer in C

Resources

Stars

Watchers

Forks