Skip to content

Tiny sphere only realtime pathtracer written in C++ and ISPC

Notifications You must be signed in to change notification settings

romainaugier/SphereTracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SphereTracer

Tiny sphere pathtracer written in C++ and ISPC made to test and learn more about acceleration structures, vectorization and optimization.

Building

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.

About

Tiny sphere only realtime pathtracer written in C++ and ISPC

Resources

Stars

Watchers

Forks

Packages

No packages published