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
- CUDA: NVIDIA CUDA Toolkit and a Turing-or-newer GPU. Older drivers don’t remove this limit.
- OpenCL 1.2: Headers (
CL/cl.h) to build; a compatible AMD, Intel or NVIDIA driver to run. The engine can fall back to OpenCL if built with it. Select it directly withr_ptBackend opencl.
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.
