OpenGL Quake BSP viewer with Oculus Rift support
This is a BSP tree OpenGL renderer written in C++. It handles basic geometry and curved patch rendering but with no support for game-specific shaders, entities etc. It implement PVS and frustum culling so performance is optimal. At the moment only Quake III Arena maps are supported but an interface is provided for adding other BSP versions in the future.
A separate no_vr
branch contains code without any OculusVR dependencies if you're just interested in focusing solely on OpenGL renderer.
Youtube demo:
Screenshots:
Running the viewer:
QuakeBspViewerVR.exe
Running the viewer in VR:
QuakeBspViewerVR.exe
In non-VR mode, use tilde key (~) to toggle statistics menu on/off. In VR mode, toggle between statistics, VR debug data and IR tracking camera frustum rendering (if camera is available). SPACE key will recenter your tracking position. Press M to toggle between different mirror modes. Note that you must have Quake III Arena textures and models unpacked in the root directory if you want to see proper texturing. To move around use the WASD keys. RF keys lift you up/down and QE keys let you do the barrel roll (in non-VR mode only).
This project uses following external libraries:
This viewer was made using following resources:
Certain BSP leaves containing doors, moving platforms etc. may not render correctly with PVS enabled. This is because they are handled differently by the original game.
Here's a list of ideas that could be fun to implement over time: