/miniRT

Ray tracing project from 42.

Primary LanguageC

miniRT

Single thread ray/path tracer in C.

Usage

Compile miniRT with the provided Makefile:

make

Or for linux:

make linux

Run miniRT with the desired scene file:

./miniRT [scene_file]

Mouse & keyboard

Move

Click and drag to move in the scene. The further away you click from the center of the screen, the farther the pivot point of the camera will be.

Zoom

Hold the command ⌘ key then click and drag to zoom in or out.

Some samples

./miniRT scenes/columns.rt

Screenshot 2024-01-05 at 00 26 19

./miniRT scenes/checkers.rt

Screenshot 2024-01-05 at 11 47 26