Field manual / Setup

Get Doom 3 path traced

1. Bring the original game

Install Doom 3 1.3.1 (not BFG Edition) and set up base/pak*.pk4.

2. Build

Install CMake, a C/C++ compiler and the SDL2/OpenAL Soft development packages.

Backends

Full requirements.

git clone --branch pathtracer-master https://github.com/d3ptmark/d3ptmark.git
cd d3ptmark
./build.sh          # Windows: build.bat -DDHEWM3LIBS=C:\path\to\dhewm3-libs\x86_64-w64-mingw32

Both binaries are in build/ (Windows: build\RelWithDebInfo\): d3ptmark-pt (physical) and d3ptmark-le (Doom 3-style). Both include stock OpenGL.

3. Run

Keep game libraries next to the binaries. Set fs_basepath to the parent of base/.

./build/d3ptmark-pt +set fs_basepath /path/to/doom3

In the game console:

r_ptBackend auto
r_ptPreset gameplay_med
bind F11 "r_ptUI"
map game/enpro

auto prefers CUDA; r_ptInfo shows the active backend. r_ptDraw 0 restores OpenGL. OpenCL compiles and caches kernels on first use.

Next: run a benchmark.