Rurikide / 42.MINIRT

Coding a mini Raytracer in C with #teamJbadia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

42.MINIRT

Coding a mini Raytracer in C with JustineBadia

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

Coding a mini Raytracer in C with #teamJbadia


Languages

Language:C 86.9%Language:Objective-C 11.3%Language:Makefile 1.7%