This is a ray tracer created from scratch in C++ using the SDL2 library. The program allows you to create and render complex 3D scenes by tracing the path of light as it bounces off objects in the scene. The program uses a variety of ray tracing techniques, including shadows, reflections, and refractions, to produce realistic and visually appealing images.
To get started with this ray tracer, you will need to have C++ and SDL2 installed on your computer. You can download SDL2 from the official website at https://www.libsdl.org/download-2.0.php.
Once you have downloaded and installed SDL2, you can clone this repository to your local machine using the following command:
git clone https://github.com/jrayoub/raytracing.git
After cloning the repository, you can build and run the program using C++ compiler. For example, you can run the following command:
cd main
make
./App
- Simple and intuitive user interface
- Ability to create and render 3D scenes
- Support for multiple ray tracing techniques, including shadows, reflections
Here are some examples of 3D scenes rendered using this ray tracer:
If you have any feedback, please reach out to us at aitounaayoub05@gmail.com
Contributions to this project are welcome and encouraged! If you have any bug fixes, feature requests, or other improvements, please feel free to submit a pull request.