This program will render simple geometric shapes using the ray tracing techniques, as well as handling the lighting and the different angles of the camera. The program is written in C only using some basic external functions such as math.h and MiniLibX, due to the restrictions of the project.
1.git clone https://github.com/odkaz/miniRT.git;cd miniRT;make;make clean;
: This command will clone the repository and compile the project.
2../miniRT PATH
: The program takes the path to the .rt files as the first argument. You also can add --save
option as the second argument to render the images into .bmp files.
Try for example,
./miniRT rt_files/spheres.rt
: It will open an window like this ↓
Now enjoy the beautiful images rendered by ray tracing!
3.tab
: Swich the camera to see from different angles.
4.esc
: Exit the program, or you can click on the cross button to finish the program.