ovrHmd_AttachToWindow?
Hi,
can anyone give me a hint on how to get the ovrHmd_AttachToWindow working with client side rendering?
Right now I tried this:
Init my OpenGL window (in fact it is a QGLWidget since our application is Qt-based). Then I initalize the oculus and the HMD. After that I grap the native windows handle of its parent window:
HWND handle = (HWND)parentWidget->winId();
Then I call ovrHmd_AttachToWindow( hmd, static_cast<void*>(handle), nullptr, nullptr);
The call returns true but my oculus display just stays black. Is there anything else I need to do? Resize the Window to a specific size?
Kind regards
Michael
can anyone give me a hint on how to get the ovrHmd_AttachToWindow working with client side rendering?
Right now I tried this:
Init my OpenGL window (in fact it is a QGLWidget since our application is Qt-based). Then I initalize the oculus and the HMD. After that I grap the native windows handle of its parent window:
HWND handle = (HWND)parentWidget->winId();
Then I call ovrHmd_AttachToWindow( hmd, static_cast<void*>(handle), nullptr, nullptr);
The call returns true but my oculus display just stays black. Is there anything else I need to do? Resize the Window to a specific size?
Kind regards
Michael
