Skip to content
forked from Alphacharge/miniRT

42 miniRT Project. A small selfcoded Raytracer.

License

Notifications You must be signed in to change notification settings

fkernbac/miniRT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 miniRT Project

This project is a self-coded raytracer by fkernbac and rbetz. It uses the glfw Lib, MLX42 V2.3.0 and rbetz' libft Lib.

For the original school project with Norm compliance, refer to 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

The raytracer supports the following objects:

  • Cameras
  • Ambient Lights
  • Point Lights
  • Planes
  • Spheres
  • Cylinders
  • Cuboids

Additionally you can declare a Resolution in the scenefile.

This multithreaded raytracer handles hard shadows and introduces soft shadows.

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

Note

Movement keys work based on the global coordinate system. Camera rotation doesn't matter!

Pictures

About

42 miniRT Project. A small selfcoded Raytracer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 89.8%
  • C++ 7.4%
  • Python 1.3%
  • Makefile 0.6%
  • CMake 0.6%
  • GLSL 0.1%
  • Other 0.2%