How hochgeschwindigkeitsrennfahrer/black-mesa-vr works
Black Mesa VR is a runtime mod for the Steam game, providing OpenXR-based stereo VR, motion controls, and VR-specific interaction and presentation. The player launches Black Mesa; the injected DLL initializes game access and VR, then supplies tracked input, rendering, and gameplay adaptations. Major README capabilities are represented by their owning source areas, although several were not sampled; their relationships are documented at the README level. The OpenXR helper and several feature implementations are unsampled, so no unsupported internal call chain is inferred.
Main entry points: vr.cpp VR coordinator · vr_settings_panel.cpp VR settings panel · openxr_helper_bridge.cpp OpenXR bridge · openxr_helper_main.cpp OpenXR helper
Components 22
Runtime integration
- Mod entry
src/dllmain.cpp - Game access
src/game.cpp - Engine interfaces
src/sdk/sdk.h - Game offsets
src/offsets.h - VR configuration
src/bmvr_cvars.cpp
VR runtime and input
- VR coordinator
src/vr.cpp - OpenXR bridge
src/openxr_helper_bridge.cpp - OpenXR helper
OpenXRHelper64/openxr_helper_main.cpp - Bridge protocol
src/openxr_bridge_protocol.h - Controller bindings
src/vr_button_map.cpp
Gameplay interactions
- Hands and weapons
src/vr_hands.cpp - Black Mesa hands
src/vr_bm_hands.cpp - Crowbar swinging
src/vr_crowbar.cpp - Weapon wheel
src/vr_weapon_menu.cpp - Physical ladders
src/vr_ladder_rungs.cpp
VR presentation
- VR settings panel
src/vr_settings_panel.cpp - Controller models
src/vr_controller_models.cpp - VR rendering fixes
src/vr_godrays.cpp - Xen fog patches
src/vr_xen_fog_patch.cpp
Other components
- Player
- Black Mesa
- OpenXR runtime
Connections 23
- Player → Black Mesa: launches
- Black Mesa → Mod entry: loads mod
- Mod entry → Game access: initializes
src/dllmain.cpp - Game access → Engine interfaces: uses interfaces
src/sdk/sdk.h - Engine interfaces → Game offsets: uses offsets
src/sdk/sdk.h - VR coordinator → OpenXR bridge: uses bridge
- OpenXR bridge → OpenXR helper: exchanges state
- OpenXR bridge → Bridge protocol: encodes messages
- OpenXR helper → Bridge protocol: shares contract
- OpenXR runtime → OpenXR helper: provides tracking
- VR coordinator → Controller bindings: uses bindings
- VR coordinator → Hands and weapons: supports interaction
- VR coordinator → Black Mesa hands: supports hands
- VR coordinator → Crowbar swinging: supports swings
- VR coordinator → Weapon wheel: opens wheel
- VR coordinator → Physical ladders: supports climbing
- VR coordinator → VR settings panel: renders panel
src/vr_settings_panel.cpp - VR settings panel → Controller models: requests pictures
src/vr_settings_panel.cpp - VR settings panel → VR configuration: saves preferences
- VR coordinator → VR rendering fixes: provides VR effects
- VR coordinator → Xen fog patches: patches fog
- Controller models → Bridge protocol: uses controller data
src/vr_controller_models.cpp - VR settings panel → Controller bindings: configures bindings
src/vr_settings_panel.cpp