Hotrian / OpenVRDesktopDisplayPortal

Put your favorite Desktop Window directly into any OpenVR game!
Other
449 stars 96 forks source link

Oculus Rift Support #65

Open Faded opened 6 years ago

Faded commented 6 years ago

Is this for the Oculus? I can get it working sure, I can see any window I select in my headset no problem. But I am UNABLE to launch any VR game under rift while OVRDesktop is running.. Rift makes me close OVR before I start anything else.

Hotrian commented 6 years ago

Is this for the Oculus?

Sort of. It runs on SteamVR, and can be used there. Oculus Rift kind of supports SteamVR, but it isn't properly integrated. The problem is that some games will boot up the Oculus SDK, which will always override SteamVR's draw calls, and prevents OVRDDP from being seen. It is still running, but it is drawing through SteamVR which is then being overridden, and not drawing to the HMD itself.

Rift makes me close OVR before I start anything else.

It shouldn't be doing that. I haven't messed around with OVRDDP in some time as I now work on OVRdrop, but I've never had this issue. OVRDDP does not use the Oculus SDK, so Oculus Home shouldn't be aware of it(?) It's possible Oculus Home is now checking with SteamVR for Application type, so Oculus may think OVRDDP is a game now and is forcing it closed. OVRdrop wouldn't have this issue because it is being launched by Steam properly as an Overlay application, so SteamVR allows it to run along side another game. OVRDDP launches as an Overlay application too - but Oculus Home might not be checking for actual application type, just checking how it was launched. Just a theory.

Faded commented 6 years ago

Alright, makes sense with Steam because I know you can run games simultaneously on that platform. The Oculus Library considers this app to be a game, not sure why. I'm also using the older 1.0.6 version, it's probably the reason. I will give OVRDrop a look, thanks for the information! Cheers

Hotrian commented 6 years ago

makes sense with Steam because I know you can run games simultaneously on that platform

With Steam itself you can, yeah. SteamVR by default I know does close other games when you boot up a new game, too, but Valve thought ahead and added a flag that prevents that behaviour :). Oculus Home might be ignoring this flag though, or it may be unable to read it (not sure if Steam/SteamVR makes this flag available through the APIs). If that is the case, it would be nice if Oculus added some sort of option to Oculus Home which would disable this behaviour for certain apps, as well.

I will give OVRDrop a look, thanks for the information!

OVRdrop uses a new capture method which is significantly faster and more performant than OVRDDP's, but it doesn't support Windows 7, unfortunately. I'm still working to add a new capture method which is fast and supports Windows 7, but we're not there yet.

Otherwise it's basically just a newer/better OVRDDP with a few new features, and should pretty much work the same. I still have big plans for the "final" version of OVRdrop, though :). It is still far from it's final form.