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

How to implement IVRDriverDirectModeComponent #9

Open
yth223 opened this issue Aug 22, 2019 · 0 comments
Open

How to implement IVRDriverDirectModeComponent #9

yth223 opened this issue Aug 22, 2019 · 0 comments

Comments

@yth223
Copy link

yth223 commented Aug 22, 2019

Currently we are working on creating our own HMD.
This HMD has two display (for Left and Right eye) and it's needs to rotate (portrait to landscape).
So I'm trying to implement IVRDriverDirectModeComponent.
nVidia's direct mode will be supported in the future, but now I want to display it on a display managed by the OS.

Stariting with a sample driver, I added IVRDriverDirectModeComponent(now empty functions only).
And set parameters below
Prop_HasDriverDirectModeComponent_Bool, true
IsDisplayOnDesktop() false
IsDisplayRealDisplay() false
And in GetComponent(), return IVRDriverDirectModeComponent instance.

Then Stem VR does not start and displays error code (457).
Functions in IVRDriverDirectModeComponent is called only DestroyAllSwapTextureSets().

So I want to ask the following questions.
1.I think my class is necessasy to implemented the interface ITrackedDeviceServerDriver,
IVRDisplayComponent, IVRDriverDirectModeComponent. Is it right?
2.I want to proceed with the implementation while checking that an empty function is called.
What do I need to start Steam at a minimum?

I am also reffering to this page
https://github.com/sencercoltu/openvr-customhmd
but I seem to have failed in a more basic place.

Best Regards.

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

1 participant