03-04-2015 10:47 AM
if (!ovrHmd_AttachToWindow(hmd, (void*) Base::winId(), 0, 0)) {
dprintf("HMD: Could not attach to window!\n");
return;
}
dprintf("HMD: connected to window with id HWND=%i", Base::winId());
03-04-2015 11:33 AM
"mmostajab" wrote:
I wanted to send the output directly to the oculus using the ovrHmd_AttachToWindow function as follows:if (!ovrHmd_AttachToWindow(hmd, (void*) Base::winId(), 0, 0)) {
dprintf("HMD: Could not attach to window!\n");
return;
}
dprintf("HMD: connected to window with id HWND=%i", Base::winId());
unfortunately, it is not working. Also, there is no error. Just it is not sent directly to the Oculus. The window is appearing there, and I should move the windows to oculus manually and make it full screen. I am using the extended display mode.
03-04-2015 12:46 PM
03-04-2015 02:02 PM
"mmostajab" wrote:
It fixed my problem. I used the hmd->WinodwPos and hmd->Resolution to translate my output into HMD 🙂