Skip to main content
New Participant
December 9, 2017
Solved

can't access ovrSession fields

  • December 9, 2017
  • 1 reply
  • 998 views
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?


    Best answer by loshjawrence
    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

    loshjawrenceAuthorAnswer
    New Participant
    December 10, 2017
    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.