question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support overlay mode?

See original GitHub issue

Is Valve willing to support using the SteamVR Unity Plugin for creating SteamVR Overlays?

After experimenting a bit and digging into the code. It appears as if nearly everything needed to make overlays is available in the plugin. There’s enough here it would likely be more productive to tweak the plugin to support overlays, than to implement overlays from scratch using openvr_api.

From what I can tell, the primary thing stopping overlays built in Unity with this plugin from being viable is that when Unity’s XR handling – which initializes itself as a scene renderer – is disabled so you can initialize your app as overlay-only. The SteamVR class decides it cannot function and never creates an instance. And as a result the majority of the plugin just simply fails on SteamVR.instance. Even when the code is just doing something as simple as checking the textureType. Even when the code doesn’t need UnityXR’s rendering. And even though the plugin already appears to do most of the pose tracking, etc… itself without UnityXR.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:13

github_iconTop GitHub Comments

1reaction
dantmancommented, Dec 4, 2018

I’m already building an overlay using the SteamVR Plugin: https://github.com/dantman/elite-vr-cockpit

I have the Unity XR stuff disabled. I init the overlay stuff myself. And I copy a few parts of the SteamVR plugin like the EventLoop for which the built-in one doesn’t run because the StreamVR Plugin disabled itself. The one caveat is there are some places like SteamVR Input that I can’t copy things to get working because the references to the SteamVR class assuming that it’s running are too hardcoded.

The latter two things should not be required. The plugin already has a built in event loop and APIs like the Input API also seem to work in an overlay. The only problem is that when the SteamVR class that everything depends on starts up and sees that Unity XR is not running (because custom overlay code is running instead) and then shuts down completely and turns very simple calls to non-UnityXR things like getting the SteamVR Plugin’s own settings values, into fatal errors. And does not allow things like the event loop to start up (which does not actually rely on Unity XR).

0reactions
TitansWhalecommented, Jun 28, 2023

@zite我强烈怀疑是否添加了此功能。由于SteamVR检查XRSettings.enabled等的代码似乎完全相同,除了在使用 OpenXR 时禁用它之外没有任何更改。我怀疑该插件在设置为使用 OpenXR 时能否正常运行 SteamVR/OpenVR 覆盖。

这是添加对在覆盖模式下运行的支持的请求。无法为不存在的东西编写示例项目。

然而我确实走得更远。我写了一个 PR 实现独立/覆盖支持#336。

Do you have an upgraded the overlay in OpenXR?

Read more comments on GitHub >

github_iconTop Results From Across the Web

View multiple calendars at the same time
On the calendar tab, click View in Overlay Mode. Click the View in Overlay Mode arrow. That calendar is now in overlay mode...
Read more >
Steam Community Overlay
The Steam community overlay is an in-game interface that allows access to many Steam Community features while playing games.
Read more >
Multiplane overlay support - Windows drivers
Multiplane overlays can be supported by Windows Display Driver Model ... Multiplane overlay functions called by user-mode display drivers ...
Read more >
Overlay mode for screen footage?
Solved: Wondering how to do this. I've got footage on a black background I need to have in screen mode, but then I...
Read more >
Overlay Mode
The only feature misisng is Overlay Mode for multiple resources. Outlook 07 allows two or more calendars to be overlayed into one.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found