mirror of
https://gitlab.com/lvra/lvra.gitlab.io.git
synced 2025-04-28 18:28:30 +02:00
87 lines
3.1 KiB
Markdown
87 lines
3.1 KiB
Markdown
---
|
|
title: WMR Lighthouse (no SteamVR)
|
|
weight: 9000
|
|
---
|
|
# WMR Lighthouse (no SteamVR)
|
|
|
|
This describes a WMR Lighthouse setup using the `steamvr_lh` driver.
|
|
|
|
It's different from [WMR Lighthouse](/docs/steamvr/wmr-lighthouse/)
|
|
|
|
This doesn't use steamvr to re-map the head from some lighthouse tracking device.
|
|
Instead it does this natively in monado, so SteamVR is only necessary for the proprietary `steamvr_lh` driver.
|
|
|
|
For now this is a hacky approach as Monado's builders don't support the functionality yet:
|
|
|
|
* https://gitlab.freedesktop.org/monado/monado/-/issues/459
|
|
* https://gitlab.freedesktop.org/monado/monado/-/issues/288
|
|
|
|
<!-- This is made for WMR as the editor has a reverb -->
|
|
This is made for WMR based headsets and has been tested with a Reverb G2 & Vive1 (Vive1 used only for it's 2 watchman dongles needed for the lighthouse controllers).
|
|
|
|
You can easily adapt this for other headsets in a hacky way, until these issues are closed.
|
|
|
|
Tested working on Arch Linux with NVIDIA RTX 2060S.
|
|
|
|
## Setup:
|
|
Setup your lighthouse system on SteamVR Windows. The Linux SteamVR version does not work well. On windows: Update everything, pair everything & setup your room boundaries.
|
|
|
|
Linux setup:
|
|
* install Steam
|
|
* Download SteamVR on Steam (try non beta version first)
|
|
* Configurations from Windows copied over
|
|
|
|
### How to copy your Windows steam configurations to Linux
|
|
* mount your windows drive (e.g. at `/mnt`)
|
|
* `cp -r "/mnt/Program Files (x86)/Steam/config" ~/.steam/steam/`
|
|
|
|
### Linux only setup
|
|
It may be possible to use SteamVR on Linux to setup your room boundries, pair and update everything. This is untested, but try at least.
|
|
You may need playspace moving via Wlx to fine tune the floor if you don't have a Windows install.
|
|
|
|
## Build
|
|
|
|
### Manually
|
|
Use this fork of Monado
|
|
|
|
`git clone https://gitlab.freedesktop.org/Zuzka/monado`
|
|
|
|
(if it's too old, try to merge upstream into it and fix it)
|
|
|
|
Ensure you have all required dependencies installed beforehand (Envision or Monado docs might help)
|
|
|
|
`cmake -G Ninja -B build -DCMAKE_INSTALL_PREFIX=/usr -DXRT_BUILD_DRIVER_SURVIVE=0 -DXRT_BUILD_DRIVER_VIVE=0 -DXRT_BUILD_DRIVER_STEAMVR_LIGHTHOUSE=1`
|
|
|
|
`sudo ninja -C build install`
|
|
|
|
### Envision
|
|
WiVRn version: 0.19+
|
|
|
|
Use this fork of Monado: https://gitlab.freedesktop.org/Zuzka/monado
|
|
|
|
In Envision, set Profile as such:
|
|
|
|
XR Service CMake Flags:
|
|
```
|
|
XRT_BUILD_DRIVER_SURVIVE=0
|
|
XRT_BUILD_DRIVER_VIVE=0
|
|
XRT_BUILD_DRIVER_STEAMVR_LIGHTHOUSE=1
|
|
```
|
|
Environment Variables:
|
|
```
|
|
LH_DEVICE_SERIAL="{YourSerial}"
|
|
```
|
|
|
|
Perform a Clean Build after changing the CMake flags!
|
|
|
|
## USAGE:
|
|
* set following environment variables in your e.g. bash_profile:
|
|
* `export LH_DEVICE_SERIAL="{YourSerial}"`
|
|
* get the actual tracking device serial via `motoc monitor` or by another way.
|
|
|
|
## USEFUL RESOURCES:
|
|
* https://monado.freedesktop.org/getting-started.html#installation-from-source
|
|
* https://monado.freedesktop.org/valve-index-setup.html
|
|
* check the commits on the fork for more info https://gitlab.freedesktop.org/Zuzka/monado
|
|
* vive tracker 3.0 3d printable mount
|
|
* model: https://www.printables.com/model/107654-hp-reverb-g2-vive-tracker-mount
|