OpenXR bindings for Python.
Project description
OpenXR for Python
This project provides ctypes bindings to enable programming with OpenXR from Python.
OpenXR is the new cross-platform, open standard and API for virtual reality (VR) and augmented reality (AR) devices. (Think OpenGL for VR/AR.)
Installation
$ pip3 install openxr
Prerequisites
- Python 3.6+
- OpenXR SDK 1.0.8+
Examples
Loading the library
import openxr
Development
We recommend Debian 11 (aka Bullseye) as a development environment. If you're on a Mac, you can run Debian in a virtual machine using VMware Fusion or VirtualBox.
Install the Debian packages for the OpenXR SDK's loader as follows:
$ apt install libopenxr-loader1
That is the only required package. Find related packages of interest using:
$ apt search openxr
In addition, you will need an OpenXR runtime for your hardware. In the absence of suitable vendor-supplied runtimes, have a look at the open-source Monado project which supports many common devices.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.