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.
