Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.
/ minirt Public archive
forked from cosmodd/minirt

A basic raytracer made for 42 School.

Notifications You must be signed in to change notification settings

dcdnce/minirt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 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 are used to modify the angle of the view.
  • ctrl, space are used to go down/up.

png 01

png 01

About

A basic raytracer made for 42 School.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 76.4%
  • Objective-C 11.7%
  • Roff 8.5%
  • Makefile 2.4%
  • Other 1.0%