Repository navigation
v0.4.4
What's new?
- Use the headset pose sent by the driver
Installation
- Download
ox-runtimefor your platform (linked below), and unzip it. - Run
ox-service.exe(or./ox-service) and keep its window running (you can minimize it). - Set an environment variable called
XR_RUNTIME_JSON, and set its value to the path toox_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.
- Download test_blender.py
- Run
blender.exe --python test_blender.py. You can also add--gpu-backend openglor--gpu-backend vulkanto specify a graphics API. Use./blenderfor Linux and Mac. - In the VR Scene Inspector plugin, enable
Mirror VR Session(inViewport 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:
- Run Blender 5.0.0.
- In the
Freebird Settingsmenu, enableScreencast VR view. Then pressStart VRin Freebird. - Run the example python script:
python simulator_control_example.py - 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.