Skip to content

ox-runtime/ox-driver-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ox-driver-example

WORK-IN-PROGRESS - This is still a prototype and is not (yet) fully compliant with the OpenXR spec.

An example implementation of an ox runtime OpenXR headset driver. You can use it as a starting template for writing a driver for your headset.

Purpose

This driver provides a simple fixed-pose headset that:

  • Always reports as "connected"
  • Returns a fixed standing pose at (0, 1.6, 0) meters
  • Provides standard VR headset display properties (1920x1080 per eye, 90Hz)
  • Demonstrates the minimal driver API implementation

Building

cmake -B build
cmake --build build --config Release

Your driver will be built inside build/example_driver.

Advanced Usage

A driver fundamentally only requires ox_driver.h (for the driver API) and openxr.h (for the data types). These headers are fetched automatically by CMake.

If you want to build against a local ox-runtime checkout instead of the remote repository, pass -DOX_RUNTIME_REPO=/path/to/ox-runtime when configuring cmake.

Installation

Copy the driver (i.e. the build/example_driver folder) to the ox runtime's drivers folder:

For example:

ox-runtime/
├── bin/
│   ├── ox-service.exe (or ox-service on Linux/Mac)
│   └── drivers/
│       └── example_driver/
│           └── ox_driver.dll (or libox_driver.so / libox_driver.dylib)

About

An example headset driver for ox. Returns static data for everything.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors