This is a somewhat complex raytracing implementation. It supports reflection, transparency, light spots, multiple light sources, complex objects, textures, CPU multi-threading, and soft shadows.
Click on video below:
Instructions for MacOS. This project uses minilibx, which in turn uses X11 library.
- For MacOS version newer that MacOS X install X11 and XShm exttension appropriate for your MacOS version.
- Install minilibx from (here)[https://github.com/gcamerli/minilibx] (instructions for instalation available). This version of the project is written for MacOS Big Sur, so use minilibx version bulid on X11. But it is better to use minilibx (version) [https://github.com/dannywillems/minilibx-mac-osx] that uses Cocoa from Mac OSX, if you have MacOS X. In that case you will have to change the keycode macros defined in rtv1.h
- You will definetely have to change -L /Location/of/mlx/static/library -lmlx to the location on libmlx.a on your computer as well as -L/Location/of/X11/dynamic/library -lX11 to the location of libX11.dylib on your computer.
- type make or make re in your command line.