#vr #oculus #open-vr #headset #webvr

rust-webvr

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

58 releases (17 breaking)

Uses old Rust 2015

0.19.0 Mar 5, 2020
0.17.0 Feb 19, 2020
0.16.1 Sep 24, 2019
0.14.0 Jul 24, 2019
0.1.0 Nov 30, 2016

#1020 in Graphics APIs

23 downloads per month

MPL-2.0 license

555KB
10K SLoC

Contains (JAR file, 54KB) gradle-wrapper.jar, (JAR file, 54KB) gradle-wrapper.jar, (ELF lib, 35KB) libvrapi.so, (Zip file, 30KB) src/api/oculusvr/aar/OVRService.aar, (ELF lib, 31KB) libvrapi.so, (Zip file, 7KB) src/api/googlevr/aar/GVRService.aar

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.6–7.5MB
~92K SLoC