A raytracer implementation in C for rendering realistic 3D scenes, using Minilibx graphics library


This raytracer project is a simple but educational implementation designed to help you understand the core concepts of ray tracing and 3D rendering. It provides a basic framework for rendering 3D scenes with support lighting, reflections and shading techniques.
- 🚀 Ray intersection with spheres, cylinders and infinite planes
- 🌐 Ambient light with colors
- 💡 Diffused light with colors
- 🌓 Shadows
- ✨ Specular hilights using Blinn-Phong reflection model


** this version has been tested with clang version 15.0.0 (clang-1500.1.0.2.5) and MacOS Ventura 13.5 **
To get started with the raytracer:
-
Clone the repository:
git clone https://github.com/rosamakinen/miniRT.git
-
Cd into the folder
cd miniRT
-
Run the program You can run miniRT in two different modes, with or without the specular hilights
To run the program
make ./miniRT scenes/cylinder.rt
To run the program with specular hilights run:
make specular ./miniRT scenes/cylinder.rt
more scenes can be found from the scenes folder