Forum Discussion
jiahuipeng
8 years agoHonored Guest
How to Integrate Oculus SDK with Third-Party 3D Engine( Unigine Engine), mainly focus on DX11 ?
Dear Oculus Engineers and Developers, I'm integrating Oculus rift CV1 with a Third-Party Engine: Unigine. The Unigine itself has a plugin doing the integration, while the engine version we're u...
jiahuipeng
8 years agoHonored Guest
@imperativity,
Sorry for late reply..
I have checked the older version SDK: the first one is 0.8.0.0-beta, while our current engine targets even older version
(seems 0.4, I searched the API change list).
I paste some code here for your reference:
AppOculus.h :
AppOculus.cpp :
And one more question: Does the Oculus Runtime support all versions SDK?
Thanks & BR.
Huipeng Jia
Sorry for late reply..
I have checked the older version SDK: the first one is 0.8.0.0-beta, while our current engine targets even older version
(seems 0.4, I searched the API change list).
I paste some code here for your reference:
AppOculus.h :
#ifdef HAVE_OCULUS
OVR::Ptr<OVR::DeviceManager> manager; // manager
OVR::Ptr<OVR::HMDDevice> hmd_device; // hdm device
OVR::Ptr<OVR::SensorDevice> sensor; // sensor
OVR::SensorFusion fusion; // fusion
#endifAppOculus.cpp :
#ifdef HAVE_OCULUS
OVR::System::Init();
manager = *OVR::DeviceManager::Create();
hmd_device = *manager->EnumerateDevices<OVR::HMDDevice>().CreateDevice();
if(hmd_device != NULL) {
// device sensor
sensor = hmd_device->GetSensor();
if(sensor) {
sensor->SetRange(OVR::SensorRange(9.81f * 4.0f,UNIGINE_PI * 8.0f,1.0f),true);
fusion.AttachToSensor(sensor);
}
// device parameters
OVR::HMDInfo hmd_info;
hmd_device->GetDeviceInfo(&hmd_info);
oculus_width = (int)hmd_info.HResolution;
oculus_height = (int)hmd_info.VResolution;
......
#endifI couldn't get the 0.4 version to test.And one more question: Does the Oculus Runtime support all versions SDK?
Thanks & BR.
Huipeng Jia
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
- 6 months ago