Raytracer is a program designed to generate images by simulating the path of light as it interacts with various geometries, producing realistic digital images. One specificity is that this raytracer is made on the CPU-side, and is not GPU-powered.
- Primitives: Supports basic shapes like spheres and planes.
- Transformations: Includes translation capabilities.
- Lighting: Handles directional and ambient lighting.
- Material: Allows for flat color rendering.
- Scene Configuration: Easily configure scenes with primitives, lighting, and cameras.
- Transformation: Incorporates rotation features.
- Shadows: Supports drop shadows for realistic scenes.
- More Primitives: Implement triangles, and .OBJ file support.
- Advanced Transformations: Explore scaling, shearing and transformation matrices.
- Advanced Lighting: Experiment with multiple directional and point lights, colored lighting, and the Phong reflection model.
- Global illumination : Basic GI model
- Advanced Material: Add transparency, refraction, reflection, and various texturing options, including file-based, procedural chessboard, and Perlin noise texturing.
- Scene Configuration: Go further with scene-in-scene importing, antialiasing through supersampling, adaptive supersampling, and various optimization techniques like multithreading.
Configure your scenes using an external file. The provided example demonstrates the structure of scene configuration using the libconfig++ format.
For examples of scene you can find them in the ./scenes folder.
- libconfig++ (for scene configuration parsing)
- SFML 2.5.1
- C++ 20
To build the project install the dependencies listed above, then run these commands:
cmake . && make -jA raytracer binary will be created. To run it:
./raytracer [PATH TO THE SCENE .cfg FILE]