This project is ray-tracing algorithm implementation. You can install it this way (support MacOS only):
- In command line "git clone https://github.com/toradziro/MiniRT"
- Go in directory and run "make" to create an executable file
- Run "./MiniRT srcs/ready_scenes/room.rt", you have to see this scene rendered
Keys allowed (depended of where camera looks):
- "W" - go front
- "S" - bo back
- "A" - go left
- "D" - go right
- "Q" - go up
- "E" - go down
- "TAB" - to swich between to cameras
You can press left and right mouse key to resize a sphere (left make it bigger, right make it less)
Program reads an .rt file. It contais objects like:
// type, coordinates, color
- sp - sphere
- pl - plane
- tr - triangle
- cy - cylinder
- sq - square
- c - camera
- l - light
For example take a look at all_figures.rt file, it generates scene like that
Where you can see all figures, lights, shadow management
Also this project using multithreading rendering (pthread library). You can run project in save mode, for that you have to run it with "--save" flag