Loads scene descriptions and progressively outputs 3D renders.
This ray tracer is extremely in-progress and inefficient - not recommended for use!
Load a 3D scene file and render a 2D image using ray tracing.
Built originally for COMP 371 Computer Graphics at Concordia University in Montréal, Québec.
Works on macOS and Linux. Should work for Windows, but not recently tested.
Pick a scene to ray cast, watch it be traced in real time, and save it to file!
Saved renders are placed in the renders directory.
See Building and running the project.
Beyond the C++ standard library this application relies on:
- GLM
- STB (particularly the stb_image_write.h header library)
- tinyobjloader
- Boost
- SDL2 (for displaying the current state of the ray trace)
(Following standard setup procedure in a CMake-compatible IDE should fetch all these dependencies for you, so you shouldn't need to download them separately.)
- Cross platform CMake setup created using Hunter
- Thanks to this StackOverflow answer, and also this other StackOverflow answer, for helping me display my render with SDL
- Thanks to COMP 371 at Concordia for all the materials helping with various formulas for ray tracing
- Thanks to Scratchapixel tutorials for good explanations of geometric methods for find ray intersections with spheres and planes/triangles.