openvr icon indicating copy to clipboard operation
openvr copied to clipboard

Anyway to implement a our own direct mode in driver like which for oculus?

Open shenyu0403 opened this issue 10 years ago • 4 comments

Hey, i noticed that there was some change in OpenVR 1.0.1, the direct mode component had been splited out of vr::IVRDisplayComponent. But whatever for this new SDK nor older ones, those functions like CreateSwapTextureSet() were never called even if direct mode enabled. Any idea?

shenyu0403 avatar Jun 12 '16 05:06 shenyu0403

Anybody find way to manage this functions through driver? As i saw, now textures and window created from Compositor without give access to it with driver.

dvv101111 avatar Aug 02 '16 18:08 dvv101111

This workaround currently only works for the Oculus driver.

What do you want to accomplish with your own direct mode that you can't accomplish with the compositor drawing directly to the display?

JoeLudwig avatar Aug 02 '16 18:08 JoeLudwig

I have custom display that connected to computer by ethernet, and it does not recognized as Windows display. I made API that allows to draws any DirectX window to this display, and now want connect OpenVr driver :)

dvv101111 avatar Aug 02 '16 18:08 dvv101111

How to use this workaround? i tried set Prop_CurrentUniverseId_Uint64 to 1 (Reserved for oculus) and return TRUE from IsDisplayRealDisplay()

But Compositor also want to create SwapTextureSet themself and exit with error: Invalid adapter (-1, -1) specified!

dvv101111 avatar Aug 02 '16 19:08 dvv101111