@@ -14,7 +14,7 @@ Same workflow, new name, extra toys. If you used ericw-tools, this should feel i
1414| ` bspinfo ` | ` vmt-bspinfo ` |
1515| ` bsputil ` | ` vmt-bsputil ` |
1616| ` maputil ` | ` vmt-maputil ` |
17- | ` lightpreview ` | ` vmt-lightpreview ` |
17+ | ` lightpreview ` | ` vmt-preview ` |
1818
1919** Still the same (legacy comfy mode):**
2020- Quake II + Remaster support stays put (` -q2bsp ` , ` -lightgrid ` , ` -world_units_per_luxel ` ) 🧠🎮
@@ -39,7 +39,7 @@ Same workflow, new name, extra toys. If you used ericw-tools, this should feel i
3939- ** Intel Embree 4.x + oneTBB** (required for ` vmt-light ` builds)
4040
4141### Optional extras (spicy toppings)
42- - ** Qt6** (for ` vmt-lightpreview ` )
42+ - ** Qt6** (for ` vmt-preview ` )
4343- ** NVIDIA CUDA Toolkit** + ** OptiX SDK 7.x** (GPU raytracing)
4444- ** Intel Open Image Denoise (OIDN)** (AI-based lightmap denoising)
4545
@@ -82,7 +82,7 @@ cmake --build . --parallel
8282``` bash
8383# Install dependencies via Homebrew
8484brew install cmake embree tbb qt@6
85- # Qt6 is only needed for vmt-lightpreview
85+ # Qt6 is only needed for vmt-preview
8686
8787# Clone and build
8888git clone --recursive https://github.com/themuffinator/VibeyMapTools.git
@@ -111,16 +111,51 @@ If CMake cannot find them, pass the package config paths:
111111cmake .. -Dembree_DIR=/path/to/embree/lib/cmake/embree-4.x -DTBB_DIR=/path/to/tbb/lib/cmake/tbb
112112```
113113
114- ### NVIDIA OptiX (GPU Raytracing) ⚡
114+ ### NVIDIA OptiX (GPU Raytracing) ?
115115
116- 1 . Install CUDA Toolkit from https://developer.nvidia.com/cuda-toolkit
117- 2 . Download OptiX SDK from https://developer.nvidia.com/designworks/optix/download
118- 3 . Set environment variable:
119- ``` powershell
120- $env:OPTIX_ROOT_DIR = "C:\ProgramData\NVIDIA Corporation\OptiX SDK 7.7.0"
121- ```
116+ This enables the ` -gpu ` path in ` vmt-light ` (OptiX-backed raytracing). If OptiX isn't found, ` -gpu `
117+ falls back to Embree and prints "GPU Raytracing compiled out."
122118
123- CMake will detect OptiX and enable GPU support.
119+ ** 1) Install the prerequisites**
120+ - NVIDIA GPU + recent driver
121+ - CUDA Toolkit (from https://developer.nvidia.com/cuda-toolkit )
122+ - OptiX SDK 7.x (from https://developer.nvidia.com/designworks/optix/download )
123+
124+ ** 2) Set OptiX SDK path**
125+ Point ` OPTIX_ROOT_DIR ` at the OptiX SDK root (the directory that contains ` include/optix.h ` ).
126+
127+ Windows (PowerShell):
128+ ``` powershell
129+ $env:OPTIX_ROOT_DIR = "C:\ProgramData\NVIDIA Corporation\OptiX SDK 7.7.0"
130+ ```
131+
132+ Linux/macOS (bash/zsh):
133+ ``` bash
134+ export OPTIX_ROOT_DIR=/opt/optix/OptiX_SDK_7.7.0
135+ ```
136+
137+ ** 3) Reconfigure + rebuild**
138+ ``` bash
139+ cmake -B build -DCMAKE_BUILD_TYPE=Release
140+ cmake --build build --config Release
141+ ```
142+
143+ ** 4) Verify OptiX is detected**
144+ In CMake output you should see:
145+ - ` CUDA found. Checking for OptiX... `
146+ - ` OptiX found at <path> `
147+
148+ ** 5) Run with GPU tracing**
149+ ``` bash
150+ vmt-light -gpu mymap.bsp
151+ ```
152+
153+ If you still see "GPU Raytracing compiled out", OptiX headers were not found. Double-check the
154+ ` OPTIX_ROOT_DIR ` value and that ` include/optix.h ` exists.
155+
156+ ** Troubleshooting**
157+ - If CUDA isn't found, set ` CUDAToolkit_ROOT ` or install a matching Toolkit version for your GPU driver.
158+ - If the build system caches a failed OptiX lookup, delete ` build/ ` or clear the CMake cache.
124159
125160### Intel OIDN (AI Denoising) 🤖
126161
@@ -134,7 +169,7 @@ cmake .. -DOpenImageDenoise_DIR=/path/to/oidn/lib/cmake/OpenImageDenoise
134169
135170| Option | Default | Description |
136171| --------| ---------| -------------|
137- | ` ENABLE_LIGHTPREVIEW ` | ON | Enable Qt-based ` vmt-lightpreview ` |
172+ | ` ENABLE_LIGHTPREVIEW ` | ON | Enable Qt-based ` vmt-preview ` |
138173| ` DISABLE_TESTS ` | OFF | Skip building tests |
139174| ` DISABLE_DOCS ` | OFF | Skip docs build |
140175| ` VIBEYMAPTOOLS_ASAN ` | OFF | Enable AddressSanitizer for all targets |
@@ -153,7 +188,7 @@ After a successful build, you'll find in `build/`:
153188| ` vmt-bspinfo ` | BSP information utility |
154189| ` vmt-bsputil ` | BSP manipulation utility |
155190| ` vmt-maputil ` | Lua scripting for .map workflows |
156- | ` vmt-lightpreview ` | Realtime lighting preview (experimental) |
191+ | ` vmt-preview ` | Realtime lighting preview (experimental) |
157192
158193## ✅ Running Tests
159194
0 commit comments