Forum Discussion
flashk
11 years agoExplorer
Supporting multiple Rifts on same machine
Does the current SDK support connecting to multiple Oculus Rift HMDs on the same machine?
I currently have two Rift DKs connected, but when I enumerate the HMDs using the SDK, it only reports that 1 HMD is detected. Here is the code I'm using to detect HMDs:
Is my code incorrect or is this just not currently supported?
I'm running this code on a Windows 7 64-bit machine. Both HMDs are detected in the "Screen Resolution" control panel.
I currently have two Rift DKs connected, but when I enumerate the HMDs using the SDK, it only reports that 1 HMD is detected. Here is the code I'm using to detect HMDs:
OVR::System::Init();
// Create device manager
OVR::Ptr<OVR::DeviceManager> deviceManager = *OVR::DeviceManager::Create();
// Enumerate and save HMD devices
int count = 0;
OVR::DeviceEnumerator<OVR::HMDDevice> itr = deviceManager->EnumerateDevices<OVR::HMDDevice>();
while(itr) {
OVR::Ptr<OVR::HMDDevice> pHMD = *itr.CreateDevice();
if(pHMD) {
++count;
}
itr.Next();
}
Is my code incorrect or is this just not currently supported?
I'm running this code on a Windows 7 64-bit machine. Both HMDs are detected in the "Screen Resolution" control panel.
11 Replies
- cyberealityGrand ChampionSorry. Using multiple Rifts on the same machine is not supported (even though the API looks like it should).
- flashkExplorerThanks. Any plans to support this in a future SDK release?
- cyberealityGrand ChampionI don't know of any specific plans, sorry.
- visionmixerHonored GuestThis would be a really helpful tool for my clients in the industrial world who want to experience it all in a large group w/multiple HUD. If anyone else has ideas please dive in. Thanks! :P
- cyberealityGrand ChampionWell even if it was supported, most PCs could not handle having multiple games running in stereo 3D at 60fps+. So the best option is to network the computers together on a LAN and have one machine per user.
- jhockmanHonored GuestWe have been able to get this to work with 2 HMDs using the Unity plugin but it will only support up to two. If a third one is connected the call to get orientation for that particular HMD returns false and the OVRDevice script will only show 2 devices are found.
Are there any plans on releasing the source code used to build the Unity plugin dll?
Thanks! - flashkExplorerI tried getting multiple Rifts working on the same machine using the new SDK (0.4.1). I am successfully able to get a DK1 and DK2 working simultaneously. However, two DK2s simultaneously does not work. In this case "ovrHmd_Detect()" returns 1. Just wondering if this is still an unsupported feature or a bug with the new SDK?
- noelsebastienHonored GuestI do have the exact same problem (ovrHmd_Detect() returns 1 altough two DK2 are connected to the computer).
I guess it's a bug in the SDK... - Not detecting two DK2s could be because handling 2 cameras is troublesome (how to tell who is in view of which camera, what happens when two headsets are in the same camera view, etc), whereas DK1 is easier.
- noelsebastienHonored GuestSwitching to Direct HMD mode does change the behaviour. In this mode, a call to ovrHmd_Detect() returns 2 as expected in my dual-DK2 configuration.
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