Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.74 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.74 KB

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