Jump to content

View more

Image of the Day

Adding some finishing touches...
Follow us for more
#screenshotsaturday #indiedev... by #MakeGoodGames https://t.co/Otbwywbm3a
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

Sign up now

Copying Ogre render target texture to holo lens

4: Adsense
  • You cannot reply to this topic
No replies to this topic

#1 AhmedSaleh   Members   


Posted 21 April 2017 - 04:03 AM

I'm doing the following :

Ogre::TexturePtr * ogreTexture = mOgreContentRenderer->getTextures();

pDeviceResources->GetD3DDeviceContext()->CopySubresourceRegion( cameraBackBuffer.Get(), LeftEye, 0, 0, 0, ((Ogre::D3D11Texture*)ogreTexture[LeftEye].get())->GetTex2D(), 0, 0 );

pDeviceResources->GetD3DDeviceContext()->CopySubresourceRegion( cameraBackBuffer.Get(), RightEye, 0, 0, 0, ((Ogre::D3D11Texture*)ogreTexture[RightEye].get())->GetTex2D(), 0, 0 );


But that's pretty slow, I would like to wrap the render texture from ogre and feed it to the backbuffer of HoloLens ? is there a faster way ?



Game Programming is the process of converting dead pictures to live ones .