Skip to content

Add optional openxr support in openvr plugin

The goal of this change is to have a VR plugin that can support either/or OpenVR and OpenXR. Currently it does:

  • If OpenXR is found during configure phase, show option in UI to select VR runtime
  • Based on the user selection, when the user clicks "Send to VR", instantiate the appropriate VTK classes
  • Use generic VR base classes wherever possible

Build support is rudimentary still, to enable OpenXR in the plugin provide the following CMake variables:

-DVTK_MODULE_ENABLE_VTK_RenderingOpenXR:STRING=WANT
-DOpenXR_INCLUDE_DIR:PATH=<path-to-openxr-install-dir>\include\openxr
-DOpenXR_LIBRARY:FILEPATH=<path-to-openxr-install-dir>\lib\openxr_loader.lib

Requires this change in VTK.

Edited by Scott Wittenburg

Merge request reports