Skip to content

TomTris/42-MiniRT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 MiniRT

Language Licence Score

🪧 Overview

Description

This project is an introduction to the beautiful world of Raytracing. Once completed you will be able to render simple Computer-Generated-Images and you will never be afraid of implementing mathematical formulas again. Our first raytracer handle the followings:

  • Ambient, diffuse and specular lightning (Phong effect)
  • Multiple lights colors and intensity
  • Reflection
  • The followings primitive objects : Planes, Spheres, Cylinders, Cones
  • Multi-threading (in Bonus for faster rendering)
  • Texture map and bump map on objects

Contributors

  • Obrittne (oBritt)
  • Qdo (TomTris)

Goal

The goal of the program is to generate images using the Raytracing protocol. Those computer-generated images will each represent a scene, as seen from a specific angle and position, defined by simple geometric objects, and each with its own lighting system.

Structure of this README.MD

  • Preview
    • Bonus
    • Mandatory
    • Mandatory additional
  • Getting started
  • Usage

📷 Preview

Bonus

./minirt_bonus scenes/bonus/atom.rt ./minirt_bonus scenes/bonus/bubbles.rt ./minirt_bonus scenes/bonus/chess.rt ./minirt_bonus scenes/bonus/colored_snowman.rt ./minirt_bonus scenes/bonus/colored_spheres.rt ./minirt_bonus scenes/bonus/stickman_with_hat.rt

Mandatory

./minirt scenes/subject/camera.rt ./minirt scenes/subject/cylinder.rt ./minirt scenes/subject/plain.rt ./minirt scenes/subject/shadow.rt ./minirt scenes/subject/sphere.rt

Mandatory additional

./minirt scenes/mandatory/octagon.rt ./minirt scenes/mandatory/scene.rt

More than that?
||||
||||
||||
||||
||||
||||
\||/
 \/

🚀 Getting Started

Installation

  1. Clone the project.
git clone https://github.com/TomTris/42-MiniRT
cd 42-minirt

then, you can make or make bonus to have minirt for mandatory part and minirt_bonus for bonus part.

🕹 Usage

  1. Run the MiniRT with a scenes.
./minirt scenes/mandatory/snowman.rt

or

./minirt_bonus scenes/bonus/stickman.rt

minirt_bonus can call all scenes.

  1. Press key ESC to quit

Task

en.subject.pdf file.

Score 125/125.

About

3D-generating

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •