Skip to content

Liammmmmmmm/42-miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

574 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42-miniRT

OS - Linux wakatime wakatime C Wiki

Sponza

Introduction

It all started with a classic miniRT project from the 42 curriculum: coding a basic raytracer in C with a few spheres and a plane. But with madelvin, we quickly thought: "What if we pushed this a bit further?"

Six months later, here we are with a complete path tracer, capable of generating better renders than we could have ever imagined at the start.

What we achieved

In the end, we turned this small raytracer into something much more ambitious:

  • A true path tracer that faithfully simulates the physics of light
  • An editing interface to create and modify scenes in real-time (by integrating a whole component system with mlx)
  • 3D model support: goodbye spheres, hello dragons and cathedrals!

dinner table

Looks real, doesn't it?

Want to know more?

We've documented (almost) everything in our Wiki!

Whether you're curious about how path tracing works, want to implement your own BVH, or just want to see more pretty pictures, you'll find what you're looking for in the documentation.

Some cool entry points:

Installation

sudo apt install libx11-dev libx11-xcb-dev libxext-dev libxrandr-dev libxfixes-dev libxrender-dev libxinerama-dev libbsd-dev libglew-dev libglfw3-dev

git clone https://github.com/Liammmmmmmm/42-miniRT.git
git submodule update --init
cd 42-miniRT

make

./miniRT scenes/example.rt

Authors

Liammmmmmmm & delmath

Project carried out as part of the 42 curriculum, but we admit we got a little carried away...


📖 Check out our Wiki for the full documentation

About

Let's create our own ray tracer!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors