Skip to content

Alphacharge/miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 miniRT Project

This project is a selfcoded raytracer from fkernbac and rbetz. It's using the glfw Lib, MLX42 V2.3.0 and my libft Lib.

If you want the original school project with Norm then use v1.0.0.

You need to install 'cmake' and 'glfw3' manually!

Installation

This project should compile under Mac OS and Unix:

git clone https://github.com/Alphacharge/miniRT.git
cd miniRT
make

Description

It contains following objects:

  • Cameras
  • Ambientlights
  • Lights
  • Planes
  • Spheres
  • Cylinders
  • Rectangles

Additionaly you can declare a * Resolution * in the scenefile.

This raytracer is multithreaded, handles hard shadows as soft shadows also.

You can declare all objects multiple times, expect resolution.

Usage

./miniRT scenes/box.rt

Keyhooks:

  • ESC Exit programm
  • Space switch to next camera
  • W Move up
  • S Move down
  • A Move left
  • D Move right
  • E Zoom in
  • Q Zoom out

(Moving depence on absolut axis)

Pictures