Skip to content

This project serves as a stepping stone to understanding modern rendering techniques by implementing fundamental raytracing principles. The bonus features enhance image quality and realism, pushing the project closer to professional rendering standards.

Notifications You must be signed in to change notification settings

erikgonk/miniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiniRT - 42 School's Mini Raytracer

MiniRT is a minimalist raytracer built as part of the 42 curriculum, designed to introduce students to the fundamentals of ray tracing and rendering. The project implements a simple yet efficient raytracing algorithm, simulating light interactions to generate realistic 3D images.

image image image

Features

Basic Rendering – Ray-surface intersection for spheres, planes, and cylinders

Lighting Models – Diffuse, specular, and ambient lighting calculations

Shadows – Cast shadows for more realistic depth perception

Camera & Viewport – Adjustable camera positioning and field of view

Multi-threading – Parallel processing for faster rendering

Textures & Normal Mapping – Adds detail to surfaces

Transparency & Refraction – Light bending effects for glass-like materials

Different Materials – Diffuse & Mirror & Glass & Metalic & Emision

Technologies Used

💻 Language: C

🎨 Graphics Library: MLX42

🧮 Math Concepts: Vectors, matrices, raytracing algorithms

🚀 Optimization: Multi-threading for performance boosts

  1. Clone the repository:
    git clone https://github.com/erikgonk/miniRT.git && cd miniRT
    
  2. Execute it:
    make && ./miniRT scenes/figuras_pov.rt
    Change the scene if you please and Press SPACE to render it
    

🛠️ Shortcuts

ENTER – to render

ARROWS – move camera

CONTROL + ARROW UP or DOWN – zoom in and out (with FOV)

CLICK (anythere in the screen) – Editing Mode

About

This project serves as a stepping stone to understanding modern rendering techniques by implementing fundamental raytracing principles. The bonus features enhance image quality and realism, pushing the project closer to professional rendering standards.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •