Forum Discussion
sh0v0r
13 years agoProtege
Correct Way To Detect The Hardware
I'm trying to make my game automatically switch to OVR mode when the Hardware is detected but I'm unsure as to how to do that correctly? I have tried doing this: if (OVRDevice.IsHMDPresent()) ...
blank0
12 years agoHonored Guest
I'm starting to integrate the Oculus Rift to a simple scene in unity.
I have two cameras in the scene, one is the main camera from Unity and the second one is the camera controller of the Oculus rift. I detach the OVRDevice script from the camera controller but the behavior hasn't change. If the empty object that contains the OVRDevice script is enabled, the OVRDevice.IsSensorPresent() will always return true. The same happens with the IsHMDPresent(). I'm using the DK1 with the 0.4 SDK, I don't know if that has something to do with it.
Is there any other way to detect the actual hardware device?
I have two cameras in the scene, one is the main camera from Unity and the second one is the camera controller of the Oculus rift. I detach the OVRDevice script from the camera controller but the behavior hasn't change. If the empty object that contains the OVRDevice script is enabled, the OVRDevice.IsSensorPresent() will always return true. The same happens with the IsHMDPresent(). I'm using the DK1 with the 0.4 SDK, I don't know if that has something to do with it.
Is there any other way to detect the actual hardware device?
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
- 3 years ago
- 2 years agoAnonymous