Alphacharge / miniRT

42 miniRT Project. A small selfcoded Raytracer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

42 miniRT Project. A small selfcoded Raytracer.

License:GNU General Public License v3.0


Languages

Language:C 89.6%Language:C++ 7.5%Language:Python 1.4%Language:Makefile 0.6%Language:CMake 0.6%Language:GLSL 0.1%Language:Batchfile 0.1%Language:Shell 0.1%