Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

249 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniRT 🌟

A ray tracer written in C using MLX42 - exploring the fundamentals of computer graphics and 3D rendering.

Authors: Mathijs Van Rijn & Edsard Grisel

Showcase

Spheres Basic spheres with lighting and shadows

Bump Mapping Bump mapping for surface detail

Multi-colored Lighting Multiple colored light sources

Checkerboard Pattern Checkerboard texture mapping

Features

  • 3D Objects: Spheres, planes, and cylinders
  • Lighting: Full Phong lighting model with ambient, diffuse, and specular reflection
  • Camera: Configurable position and orientation
  • Texture Mapping: UV mapping, bump mapping, and checkerboard patterns
  • Lighting: Multiple light sources with colored lighting support
  • Scene Files: Parse .rt scene description files

Setup

Ubuntu/Linux

git clone <repository-url>
cd miniRT
make

macOS (Apple Silicon)

git clone <repository-url>
cd miniRT
git checkout macos_demo
make

Running

  • Scenes can be found in the scenes folder
./miniRT [Filename].rt

Key bindings

  • Arrow keys: Camera rotation
  • WASD: Camera translation

Part of the 42 School curriculum

About

miniRT for Codam

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages