A mini RayTracer made using c and a 42 mini graphics library MiniLibX.
Only for testing, if you are doing this project for school too, or simply intrested in creating a RayTracer, i encourage you to write you own code instead of copying it.
if you haven't already, you have to install MinilibX (MLX) in order to use this project
MinilibX for mac (latest i could find)
Clone this repo :
git clone --recurse-submodules https://github.com/MrMoustach/MiniRT.git
Then :
Make
Also clone :
git clone --recurse-submodules https://github.com/MrMoustach/MiniRT.git
Then :
Make linux
After making the program, all you need now is to create your own .rt file or use the ones provided in /scenes folder
then you can run the following command :
./miniRT path/to/file/filename.rt
example :
./MiniRT scenes/scene.rt
To save an image :
./MiniRT filename.rt --save
Here is Wolf.rt :
Here is scene.rt with all the objects:
Collisions: