Browse by type

Physically based unidirectional (backwards) Monte Carlo path tracer written with the HIPRT and Orochi libraries.
HIPRT is AMD's equivalent to OptiX. It allows the use of the ray tracing accelerators of RDNA2+ AMD GPUs and can run on NVIDIA devices as well (although it wouldn't take advatange of RT cores) as it is not AMD specific.
The Orochi library allows the loading of HIP and CUDA libraries at runtime meaning that the application doesn't have to be recompiled to be used on a GPU from a different vendor (unlike HIP alone which, despite being compatible with NVIDIA and AMD hardware, would require a recompilation).


Next-event estimation strategies (built on-top of base techniques):
BSDF sampling:
Path sampling:
1) Install the HIP SDK
2) Follow the "Compiling" steps.
To build the project on NVIDIA hardware, you will need to install the NVIDIA CUDA SDK v12.2 (minimum). It can be downloaded and installed from here.
Your CUDA_PATH environment variable then needs to be defined.
This should automatically be the case after installing the CUDA Toolkit but just in case,
you can define it yourself such that CUDA_PATH/include/cuda.h is a valid file path.
1) Install OpenGL, GLFW and glew dependencies:
sudo apt install freeglut3-dev
sudo apt install libglfw3-dev
sudo apt install libglew-dev
2) Install AMD HIP (if you already have ROCm installed, you should have a /opt/rocm folder on your system and you can skip this step):
Download amdgpu-install package: https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/amdgpu-install.html
Install the package:
sudo apt install ./amdgpu-install_xxxx.deb
Install HIP:
sudo amdgpu-install --usecase=hip
3) Normally, you would have to run the path tracer as sudo to be able to acces GPGPU compute capabilities. However, you can save yourself the trouble by adding the user to the render group and rebooting your system :
sudo usermod -a -G render $LOGNAME
1) Install OpenGL, GLFW and glew dependencies:
sudo apt install freeglut3-dev
sudo apt install libglfw3-dev
sudo apt install libglew-dev
sudo apt install libomp-dev
2) Install the NVIDIA CUDA SDK (called "CUDA Toolkit"). It can be downloaded and installed from here.
With the pre-requisites fulfilled, you now just have to run the CMake:
git clone https://github.com/TomClabault/HIPRT-Path-Tracer.git --recursive
cd HIPRT-Path-Tracer
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
On Windows, a Visual Studio solution will be generated in the build folder that you can open and compile the project with (select HIPRTPathTracer as startup project).
On Linux, the HIPRTPathTracer executable will be generated in the build folder.
./HIPRT-Path-Tracer
The following arguments are available:
- <scene file path> an argument of the commandline without prefix will be considered as the scene file. File formats supported.
- --sky=<path> for the equirectangular skysphere used during rendering (HDR or not)
- --samples=N for the number of samples to trace
- --bounces=N for the maximum number of bounces in the scene
- --w=N / --width=N for the width of the rendering
- --h=N / --height=N for the height of the rendering
* CPU only commandline arguments. These parameters are controlled through the UI when running on the GPU.



Sources of the scenes can be found here.
GNU General Public License v3.0 or later
See COPYING to see the full text.
$ claude mcp add HIPRT-Path-Tracer \
-- python -m otcore.mcp_server <graph>