Tiny sphere pathtracer written in C++ and ISPC made to test and learn more about acceleration structures, vectorization and optimization.
SphereTracer uses TBB to manager parallelism and GLEW to load OpenGL functions, and you need ISPC Compiler as I use ispc code to take advantage of vectorization in various places. Both can easily be built using Vcpkg.
vcpkg install tbb:x64-windows
vcpkg install glew:x64-windows
You can build the project with CMake, you will need to have both Vcpkg and Intel ISPC Compiler installed on your computer.
You'll need to specify the path to the vcpkg's CMake toolchain file and you can specify the path to ISPC Compiler if you have a custom install of it.
git clone https://github.com/romainaugier/SphereTracer.git
cd SphereTracer
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=/path/to/vcpkg/toolchain/vcpkg.cmake -DISPC_EXECUTABLE=/path/to/ispc.exe
cmake --build ./build --config Release
./build/src/Release/SphereTracer.exe
It has been tested and runs fine on Windows 10 and Ubuntu 20.04.