01-25-2016 07:03 PM
I am trying to display a single monoscopic image in a DK1 headset (I still use SDK 0.6) I might seem very simple but I can't manage to do that. I found this answer :
"You can just put a texture on a quad in front of the camera."
So I tried more or less this code, but it won't work and I don't know how to "apply" the image on the quad layer...
It is for a school project and the deadline is in a few days... I really need your help since I already tried to understand for hours... I am a big beginner in oculus development and I would gladly get some details or even code templates as explanations 🙂
Thanks by advance ! 🙂
ovrHmd hmd = nullptr;
ovrResult result = ovrHmd_Create(0, &hmd);
ovrLayerQuad quadLayer;
quadLayer.Header.Type = ovrLayerType_QuadHeadLocked;
quadLayer.Header.Flags = 0;
ovrLayerHeader* quad = &quadLayer.Header;
// ... //
ovrHmd_SubmitFrame(hmd, 0, nullptr, &quad, 1);