Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
loshjawrence's avatar
loshjawrence
Explorer
8 years ago
Solved

can't access ovrSession fields

I'm trying to get an app rendered to the oculus but I'm stuck at the top of Texture Swap Chain Initialization here: 
https://developer.oculus.com/documentation/pcsdk/latest/concepts/dg-render/#dg_render

I'm specifically having trouble with this:
session->DefaultEyeFov[0]

visual studio has a read underline under session complaining: "incomplete class type not allowed". After googling this error it seems I need to include the header file where ovrSession is defined. Looking at the developer reference it seems I would need OVR_CAPI but I alread have it included. These are the header files I've included:

// Include the OculusVR SDK headers
#include <OVR_CAPI.h>
#include <Extras/OVR_Math.h>

Am I missing one?


  • Nevermind, I just needed to use a desc returned from ovr_GetHmdDesc instead of session. Either a typo in the tutorial or its out of date I guess.

1 Reply

  • Nevermind, I just needed to use a desc returned from ovr_GetHmdDesc instead of session. Either a typo in the tutorial or its out of date I guess.