Skip to content

PaLucena/miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miniRT

MiniRT is a ray tracing project developed as part of the curriculum at Campus 42. The project aims to implement a basic ray tracer capable of rendering simple scenes with basic shapes and lighting effects.

Features

  • Ray-Sphere Intersection
  • Ray-Plane Intersection
  • Ray-Cylinder Intersection
  • Ray-Cone Intersection
  • Phong Shading Model (Ambient, Diffuse, and Specular lighting)
  • Shadows
  • Support for .rt files for Scene Description

Installation

Clone the repository to your local machine:

git clone https://github.com/PaLucena/miniRT.git

Navigate to the project directory:

cd miniRT

Build the project:

make / make bonus

Usage To run the ray tracer with a scene file:

  Example:

./miniRT scenes/standart.rt

scene.rt should be a valid scene description file in the provided format.

Contributing

Contributions are welcome! If you'd like to contribute to miniRT, feel free to open an issue or submit a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.