Skip to content

This project is an introduction to the incredible world of Raytracing.

Notifications You must be signed in to change notification settings

justinebadia/42.MINIRT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42.MINIRT

Coding a mini raytracer in C with Rurikide

OVERVIEW

image

More examples with Phong reflection Capture d’écran, le 2022-11-16 à 18 14 52 Capture d’écran, le 2022-11-16 à 18 23 35 Capture d’écran, le 2022-11-16 à 18 25 38

How to ?

Clone the repo :

git clone https://github.com/Rurikide/42.MINIRT.git

Do makeand then run :

./miniRT /rt_files/file.rt

Let's play!

Key
left click on the object select the object
right click anywhere unselect the object
[L] select the light
[W][S] front/back translation of the selected object, if nothing is selected it applies to the camera
[A][D] left/right translation of the selected object, if nothing is selected it applies to the camera
[R][T] up/down translation of the selected object, if nothing is selected it applies to the camera
wheel to change the diameter of a cylinder or a sphere, if selected
[+][-] only for cylinders - to change its height
[X][Y][Z] choose a rotation axis after selecting an object
[<][>] move the object along the chosen axis

About

This project is an introduction to the incredible world of Raytracing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 87.0%
  • Objective-C 11.3%
  • Makefile 1.7%