A 3D Source Engine BSP map file viewer built with OpenGL 4. This project explores and implements the Source Engine BSP file format to visualize maps with a custom OpenGL renderer.
- Load and parse Source Engine BSP file format
- 3D visualization of BSP maps with OpenGL 4
- First-person camera controls with keyboard and mouse
- Support for textures and transparency
- Handling of face geometry and basic displacement mapping
- BSP parsing of lumps including: vertices, edges, planes, faces, models, etc.
- OpenGL shader-based rendering pipeline
- Keyboard/mouse camera controls with zoom functionality
The project comes with several sample BSP maps:
sphere.bspdisp_center_height_4.bspcube.bsp
make build
./bsp-viewer maps/cube.bsp
- WASD/Arrow Keys: Move camera
- Mouse: Look around
- Scroll Wheel: Zoom in/out
- Space: Move up
- Shift: Speed up movement
- Ctrl: Slow down movement
- Understanding the BSP file format
- Camera controller and base OpenGL code
