Virtual Reality: Difference between revisions

From Alpine Linux
(Add a new Virtual Reality page)
 
(Formatting and added to Multimedia category)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The <code>testing</code> branch contains packages to make use of Virtual Reality on Alpine Linux so make sure that is enabled.
The <code>testing</code> branch contains packages to make use of Virtual Reality on Alpine Linux so make sure that is enabled.


[https://wiki.alpinelinux.org/wiki/Enable_Community_Repository#Using_testing_repositories_of_my_release_version How to Enable the Testing Repository]
[[Repositories#Testing|How to Enable the Testing Repository]]


= Initial setup =
== Initial Setup ==
Make sure you install a driver relevant for your tracking system and HMD.


== OpenHMD ==
You will need an [https://en.wikipedia.org/wiki/OpenXR OpenXR] runtime to run any applications on VR.
A Free and Open Source API and drivers for immersive technology, such as head mounted displays with built in head tracking. [https://github.com/OpenHMD/OpenHMD/wiki/Support-List A list of supported hardware by OpenHMD].
 
{{Cmd|# apk add monado}}


{{Cmd|# apk add openhmd}}
Monado itself includes some required drivers, and it'll also pull in OpenHMD and libsurvive which provide drivers for the HMD and positional tracking respectively.


== OpenXR runtime ==
== Running ==
You will need an [https://en.wikipedia.org/wiki/OpenXR OpenXR] runtime to run any applications on VR.
 
{{Cmd|# apk add monado}}
{{Cmd| $ monado-service}}


= Running =
Any application that requires VR should automatically pick up your HMD.
Any application that requires VR should automatically pick up your HMD.


Line 27: Line 26:


{{Cmd|# apk add kdeplasma-applets-xrdesktop}}
{{Cmd|# apk add kdeplasma-applets-xrdesktop}}
[[Category:Multimedia]]

Latest revision as of 13:18, 18 April 2023

The testing branch contains packages to make use of Virtual Reality on Alpine Linux so make sure that is enabled.

How to Enable the Testing Repository

Initial Setup

You will need an OpenXR runtime to run any applications on VR.

# apk add monado

Monado itself includes some required drivers, and it'll also pull in OpenHMD and libsurvive which provide drivers for the HMD and positional tracking respectively.

Running

$ monado-service

Any application that requires VR should automatically pick up your HMD.

You can use xrdesktop to interact with your desktop windows in VR if you're running KDE Plasma. Support for GNOME is in the works but as of now requires patches on top of GNOME which aren't packaged on Alpine.

# apk add kwin-effect-xrdesktop

Make sure to enable xrdesktop in the settings, Workspace -> Workspace Behaviour -> Desktop Effects -> xrdesktop.

Optionally you can install a Plasma applet to easily toggle VR mode.

# apk add kdeplasma-applets-xrdesktop