#open-vr #vr #headset #oculus #design-pattern #webvr

rust-webvr-api

Safe rust API that provides a way to interact with Virtual Reality headsets and integration with vendor specific SDKs like OpenVR and Oculus. The API is inspired on the easy to use WebVR API but adapted to Rust design patterns

21 releases (9 breaking)

Uses old Rust 2015

0.17.0 Feb 19, 2020
0.16.0 Sep 11, 2019
0.15.0 Sep 3, 2019
0.14.0 Jul 24, 2019
0.9.2 Sep 22, 2017

#5 in #headset

29 downloads per month
Used in rust-webvr

MPL-2.0 license

36KB
695 lines

rust-webvr

Safe rust API that provides a way to interact with Virtual Reality headsets and integration with vendor specific SDKs like OpenVR, Oculus and GoogleVR (Daydream). The API is inspired on the easy to use WebVR API but adapted to Rust design patterns.

It's used in the WebVR Core implementation for Servo browser. This module can be tested outside of Servo and even be used on any vanilla Rust app.

Room Scale example:

Just run this command in examples/room folder

cargo run

Run room scale demo on android:

./run_android.sh

OpenVR tips:

In order to run with openvr on windows, openvr_api.dll must be available. Please make it either accessible in your path, or copy it into the examples/room folder.

Refer to The ValveSoftware openvr repository and head over to the releases section for more information.

Dependencies

~0.1–10MB
~108K SLoC