Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

223 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🩻miniRT - My First Ray Tracer

A simple ray tracer built in C using the MiniLibX graphics library. This project was developed in a group, by João Barbosa and Ivan Teixeira.

🌟 Overview
🎨 Features
📸 Gallery
⚡ How To install
🚀 Quick Demo
🖥️ Usage
🕹️ Controls
🗺️ Architecture
📚 Acknowledgments

🌟 Overview

This project is an introduction to the beautiful world of ray tracing, allowing the rendering of simple computer-generated images. Ray tracing is a rendering technique that produces a high degree of visual realism by tracing the path of light rays and simulating their interactions with virtual objects.

🎨 Features

  • 🟢 Rendering of basic geometric shapes:
    • Spheres
    • Planes
    • Cylinders
  • 💡 Light management:
    • Ambient lighting
    • Diffuse lighting
    • Hard shadows
  • 🎥 Camera with adjustable field of view
  • 📜 Scene description using custom .rt configuration files
  • 🕹️ Interactive scene navigation:
    • Move camera with WASD keys
    • Rotate camera with arrow keys
    • Select and modify objects

📸 Gallery

./assets/01.png ./assets/03.png ./assets/02.png

⚡ How To Install

git clone https://github.com/MrSloth-dev/42.miniRT.git miniRT
cd miniRT
make

🚀 Quick Demo

make demo

🖥 Usage

./minirt scenes/example.rt

🕹 Controls

  • H: Toggle help menu
  • ESC: Exit program
  • Arrow keys: Rotate camera
  • W/A/S/D: Move camera
  • Space/C: Move camera up/down
  • Left Mouse click: Select objects
  • Right Mouse click and hold: Drag image
  • Z: Reset camera position

./assets/04.png

🗺 Architecture

Here you can see a high level of program implementation:
-> PROGRAM SCHEME <-

📚 Acknowledgments

This project was developed with the help of "The Ray Tracer Challenge" book by Jamis Buck, which provided valuable insights into the mathematics and implementation details of ray tracing.

About

3D graphics rendering engine with raytracing and light source

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages