Forum Discussion
loshjawrence
8 years agoExplorer
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?
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
- loshjawrenceExplorerNevermind, 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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 months ago
- 8 months ago