Skip to content

v0.4.4

Choose a tag to compare

@cmdr2 cmdr2 released this 19 Feb 04:44
· 118 commits to main since this release

What's new?

  • Use the headset pose sent by the driver

Installation

  1. Download ox-runtime for your platform (linked below), and unzip it.
  2. Run ox-service.exe (or ./ox-service) and keep its window running (you can minimize it).
  3. Set an environment variable called XR_RUNTIME_JSON, and set its value to the path to ox_openxr.json (in the unzipped folder). For e.g. set XR_RUNTIME_JSON=C:/Users/YOUR_USER/Downloads/ox/ox_openxr.json.

Example usage

Start VR in Blender

Make sure you have the VR Scene Inspector plugin installed in Blender.

  1. Download test_blender.py
  2. Run blender.exe --python test_blender.py. You can also add --gpu-backend opengl or --gpu-backend vulkan to specify a graphics API. Use ./blender for Linux and Mac.
  3. In the VR Scene Inspector plugin, enable Mirror VR Session (in Viewport Feedback) to see the view from the virtual headset.

This will start Blender and enter VR using the ox runtime.

Script the controllers in Freebird

Example scripted use of the simulator with Blender and Freebird:

  1. Run Blender 5.0.0.
  2. In the Freebird Settings menu, enable Screencast VR view. Then press Start VR in Freebird.
  3. Run the example python script: python simulator_control_example.py
  4. You should see the two controllers in Blender's window, with one of them moving slowly to the right.

The controller values are being set by the example python script linked above. Modify that with your actual values, for e.g. from your DIY controller hardware.