@@ -14,6 +14,8 @@ and :doc:`light` with a 3D viewport for visualizing the output in real-time.
1414.. note ::
1515
1616 This tool is experimental and primarily packaged in the Windows build.
17+ Coming from ericw-tools? ``vmt-preview `` is the modernized successor to the
18+ classic lightpreview flow, with extra visibility and selection tooling.
1719
1820Features
1921--------
@@ -26,6 +28,18 @@ Features
2628* Lightgrid visualization (for Q2 remaster maps)
2729* Support for .lit file loading
2830
31+ Previews
32+ --------
33+
34+ The preview panel now covers much more than lightmaps. Enjoy a broader debugging
35+ toolkit with quick visual feedback. 🎛️✨
36+
37+ * 🧭 **HUD overlay ** with faces, leafs, portal counts, vis state, and selection info
38+ * 🧱 **Portals and leaks **: auto-watch .prt/.pts/.lin and refresh as you iterate
39+ * 🧲 **Selection ray ** to confirm hit tests when clicking geometry
40+ * 🎯 **Selection tools **: copy face + texture info, focus camera on face/leaf, solo a texture
41+ * 🌈 **Lightgrid samples ** listed in HUD when BSPX lightgrid data is present
42+
2943Controls
3044--------
3145
@@ -40,11 +54,13 @@ Movement
4054View Modes
4155~~~~~~~~~~
4256
43- * :kbd: `Alt - 1 ` — Lightmapped (default)
44- * :kbd: `Alt - 2 ` — Lightmap Only
45- * :kbd: `Alt - 3 ` — Fullbright
46- * :kbd: `Alt - 4 ` — Normals
47- * :kbd: `Alt - 5 ` — Flat shading
57+ * :kbd: `Alt - 1 ` - Lightmapped (default)
58+ * :kbd: `Alt - 2 ` - Lightmap Only
59+ * :kbd: `Alt - 3 ` - Fullbright
60+ * :kbd: `Alt - 4 ` - Normals
61+ * :kbd: `Alt - 5 ` - Flat shading
62+ * :kbd: `H ` - Toggle HUD overlay (viewport focused)
63+ * :kbd: `T ` - Toggle solo selected texture
4864
4965
5066Usage
5773 The tool will automatically compile the map and display it in the viewport.
5874Changes to lighting parameters can be previewed interactively.
5975
76+ Qt6 Setup
77+ ---------
78+
79+ `vmt-preview ` builds when Qt6 is installed and ``ENABLE_LIGHTPREVIEW=ON ``.
80+ Required Qt6 components: Core, Gui, Widgets, OpenGL, OpenGLWidgets.
81+
82+ Example (Windows, Qt Online Installer):
83+
84+ .. code-block :: powershell
85+
86+ cmake - B build - DENABLE_LIGHTPREVIEW= ON - DCMAKE_PREFIX_PATH= " C:\Qt\6.6.2\msvc2019_64"
87+
88+ Example (macOS, Homebrew):
89+
90+ .. code-block :: bash
91+
92+ brew install qt@6
93+ cmake -B build -DENABLE_LIGHTPREVIEW=ON -DCMAKE_PREFIX_PATH=" $( brew --prefix qt@6) "
94+
95+ Example (Linux, Debian/Ubuntu):
96+
97+ .. code-block :: bash
98+
99+ sudo apt install qt6-base-dev qt6-base-dev-tools libgl1-mesa-dev
100+ cmake -B build -DENABLE_LIGHTPREVIEW=ON
101+
60102
61103 See Also
62104--------
@@ -89,4 +131,4 @@ License GPLv3: GNU GPL version 3 or later
89131https://gnu.org/licenses/gpl-3.0.html
90132
91133This is free software: you are free to change and redistribute it.
92- There is NO WARRANTY, to the extent permitted by law.
134+ There is NO WARRANTY, to the extent permitted by law.
0 commit comments