openvr icon indicating copy to clipboard operation
openvr copied to clipboard

Is it possible to run SteamVR with a custom HMD driver without actual display?

Open pbzweihander opened this issue 8 months ago • 4 comments

Hi! I'm currently working on a project called OpenVR-OpenTrack (https://github.com/pbzweihander/OpenVR-OpenTrack). I'm trying to use OpenTrack as a head tracker like HMD, so I wrote an HMD device driver code.

But it is not working. Error looks like this:

Screenshot_20231025_174732

I think the driver is partially working and SteamVR recognizes it as a headset (The "H" icon says the headset is working) but it seems like SteamVR is trying to find a dedicated display for HMD.

How do I work around this?

My environment is Arch Linux with KDE Plasma Wayland. I did not test it on Windows. Perhaps it is a Linux problem?

I tried adding "requireHmd": false to the steamvr.vrsettings file, but it did not work either.

pbzweihander avatar Oct 25 '23 08:10 pbzweihander

Do you have a display set up for the HMD? If you don't you can use the extended mode (check the sample hmd driver), or write your own implemenation with a IVRDriverDirectModeComponent

danwillm avatar Oct 25 '23 19:10 danwillm

The driver code is here: https://github.com/pbzweihander/OpenVR-OpenTrack

What do you mean by "setting up a display"? I don't have an actual display. But I did implement IVRDisplayComponent.

pbzweihander avatar Oct 25 '23 23:10 pbzweihander

It does not work when I implement IVRDriverDirectModeComponent instead of IVRDisplayComponent. What exactly is the "extended mode"? I can't find any documentation of it.

pbzweihander avatar Oct 29 '23 05:10 pbzweihander

And the simplehmd in sample driver does not work with same error.

pbzweihander avatar Oct 29 '23 06:10 pbzweihander