Skip to content

whazami/miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiniRT

Overview

MiniRT is a minimalistic ray tracing engine built as part of the 42 Paris curriculum. It renders 3D scenes using the ray tracing technique, allowing for lighting and shadows effects. This project aims to help students develop their skills in programming, mathematics, and algorithmics, particularly in computer graphics.

The code is not provided as it's the rule of 42Seoul.

demo

Usage

  1. Create a scene description in a .rt file following this file format:
A [ambient_intensity] [ambient_color]
C [camera_position] [camera_direction] [FOV]
L [light_position] [light_intensity] [light_color]
sp [sphere_center] [sphere_diameter] [sphere_color]
pl [plane_point] [plane_normal] [plane_color]
cy [cylinder_center] [cylinder_direction] [cylinder_diameter] [cylinder_height] [cylinder_color]

Note that capital letters can only be placed once.
Alternatively, maps examples can be found in the maps folder.

  1. Run the executable as follow:
./miniRT [map_file]

Screenshots

home moon ball wall

Acknowledgments

A heartfelt thanks to Oriane Lelong, for her collaboration, innovative ideas and the countless hours spent debugging, optimizing, and refining MiniRT together.

About

Minimalistic ray tracing engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published