Forum Discussion
J3X-1
10 years agoHonored Guest
Oculus SDK 0.8.0.0 and detecting ovrError_SyncDisconnected
Hello, I am working in integrating the Oculus SDK into a third party engine and have a question about the Hardware errors. Those in OVR_ErrorCode.h. I have not been able to receive a ovrError_S...
J3X-1
10 years agoHonored Guest
The device in question I want to detect is if the DK2 camera is connected and working.
ovrTrackingState.StatusFlags seems to contain information about this however. Thanks!
From my experiments the following configurations are possible. It seems like it is not possible to differ sync cable not connected to camera and HMD outside of tracking bounds.
Camera connected and HMD in tracking area
od->cameraPoseTracked true
od->positionConnected true
od->positionTracked true
Camera connected with USB and sync cable but HMD not inside tracking area
od->cameraPoseTracked true
od->positionConnected true
od->positionTracked false
Camera only connected with USB, not sync cable
od->cameraPoseTracked true
od->positionConnected true
od->positionTracked false
Camera not connected at all
od->cameraPoseTracked false
od->positionConnected false
od->positionTracked false
Also neat engine.
edit; claritifation
ovrTrackingState.StatusFlags seems to contain information about this however. Thanks!
ovrTrackingState hmdState = ovr_GetTrackingState(od->hmd, ftiming, ovrTrue);
od->cameraPoseTracked = hmdState.StatusFlags&ovrStatus_CameraPoseTracked;
od->positionConnected = hmdState.StatusFlags&ovrStatus_PositionConnected;
od->positionTracked = hmdState.StatusFlags&ovrStatus_PositionTracked;
From my experiments the following configurations are possible. It seems like it is not possible to differ sync cable not connected to camera and HMD outside of tracking bounds.
Camera connected and HMD in tracking area
od->cameraPoseTracked true
od->positionConnected true
od->positionTracked true
Camera connected with USB and sync cable but HMD not inside tracking area
od->cameraPoseTracked true
od->positionConnected true
od->positionTracked false
Camera only connected with USB, not sync cable
od->cameraPoseTracked true
od->positionConnected true
od->positionTracked false
Camera not connected at all
od->cameraPoseTracked false
od->positionConnected false
od->positionTracked false
Also neat engine.
edit; claritifation
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
- 2 years ago
- 1 year agoAnonymous
- 9 years ago