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 using is too old to support the current Oculus SDK. And we have to use the current old version, for some unique features, though we have new version installed... I followed the SDK's Developer Guide.pdf to integrate... Note: the engine has two rendered texture output: Unigine::Texture texture[2] ->Create ovrSession and Device ->Create ovrSwapChain and Buffers ->Set up Viewport ->Copy Unigine-rendered Textures to ovrSwapChain... ->Commit the change and set layer to submit Now what I'm getting is a totally black view in HMD :( Since I'm new to Oculus ans DX11, what I've tried is to copy the rendered texture to swapchain to submit. Now I think the key is how to copy ID3D11Texture2D. And I think maybe the renderTargetView setting is wrong too, but have no idea how to fix. Waiting for yours kind advice, solution is better~ I can share my poor code, if needed. Thank you in advance Huipeng Jia.897Views0likes2Comments