Coder Social home page Coder Social logo

patchbyte / wivrn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from meumeu/wivrn

0.0 0.0 0.0 28.49 MB

An OpenXR streaming application to a standalone headset

License: GNU General Public License v3.0

JavaScript 1.33% C++ 93.24% Python 0.36% C 0.38% HTML 0.05% CMake 3.43% GLSL 1.23%

wivrn's Introduction

WiVRn

License: GPL v3 CI

OpenXR streaming application

WiVRn lets you run OpenXR applications on a computer and display them on a standalone headset.

Installation

Server (PC)

See building.

Client (headset)

Prebuilt apk

Download apk from Releases. Install with adb (headset connected to PC), developer mode must be enabled.

adb install WiVRn.apk

Compilation

See building.

Usage

Set WiVRn as default OpenXR runtime

In order to set WiVRn as the default OpenXR runtime, you can run the collowing commands:

mkdir -p ~/.config/openxr/1/
ln --relative --symbolic --force build-server/openxr_wivrn-dev.json ~/.config/openxr/1/active_runtime.json

Alternatively, setting the environment XR_RUNTIME_JSON="${PWD}/build-server/openxr_wivrn-dev.json" will set it for the current shell only.

Running

Prerequisites

Avahi must be running:

systemctl enable --now avahi-daemon

If a firewall is installed, open port 5353/UDP for avahi. Open ports 9757/UDP+TCP for WiVRn itself.

Running

On the computer, run wivrn-server, from checkout directory

build-server/server/wivrn-server

Then, on headset, launch WiVRn from the App Library, in "unknown sources" section.

You should now see your server in the list, click connect, screen will show "waiting for video stream". Now on your computer you can run an OpenXR application, and it will show on your headset, enjoy!

Audio

When headset is connected, wivrn-server will create a virtual output device named WiVRn. It is not selected as default and you should either assign the application to the device when it is running, or mark it as default. To do so you can use pavucontrol or your desktop environment's configuration panel. Please note that in pavucontrol it will appear as a virtual device.

For microphone, you first have to enable it on the settings tabs on the headset (and give permission when prompted). It will then appear as a virtual input device named WiVRn(microphone) and also needs to be assigned like for output device.

Configuration

Configuration is done on server side, in $XDG_CONFIG_HOME/wivrn/config.json or if $XDG_CONFIG_HOME is not set, $HOME/.config/wivrn/config.json.

All elements are optional and have default values.

See configuration for configurable items.

Credits

WiVRn uses the following software:

wivrn's People

Contributors

xytovl avatar meumeu avatar meister1593 avatar galister avatar damaestro avatar okabintaro avatar electrodeyt avatar ckiee avatar mittorn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.