Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SteamVR] Overlay closes main app (t.headset.overlay) #709

Closed
Python1320 opened this issue Sep 26, 2023 · 1 comment
Closed

[SteamVR] Overlay closes main app (t.headset.overlay) #709

Python1320 opened this issue Sep 26, 2023 · 1 comment

Comments

@Python1320
Copy link

Python1320 commented Sep 26, 2023

Opening any VR app in SteamVR and launching the following seems to close the original app no matter what:
conf.lua

function lovr.conf(t)
    t.headset.overlay = true
end

main.lua

function lovr.draw(pass)
    pass:cube(0, 1.7, -1, .5, lovr.headset.getTime(), 0, 1, 0, 'line')
end

Development appears to have stalled on OpenXR overlays in favour of API layers it seems.

It also seems there is no LÖVR pre-built with both overlay and SteamVR, which is a shame, since there it probably works.

OpenXR has API layers seems to be the current supported option: "OpenKneeboard currently supports overlays with: OpenXR Direct3D 11 games, via a custom API layer" (unfortunately licenses are not compatible with LÖVR).

Related:

@bjornbytes
Copy link
Owner

This is currently the intended behavior. t.headset.overlay turns your app into an OpenXR overlay, and SteamVR does not support OpenXR overlays.

API layers automatically work with any OpenXR runtime/application, including LÖVR. I currently use API layers to add Ultraleap hand tracking to LÖVR, for example.

To get overlay functionality on SteamVR, we're basically either waiting on SteamVR to add support for XR_EXTX_overlay (unlikely), or for the OpenXR working group to release better overlay extensions and SteamVR to add support for those. Until then, XR_EXTX_overlay is the best way to do it. To my knowledge it only works on monado and other monado-based runtimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants