Forum Discussion
galapaegos
9 years agoHonored Guest
Is it possible to still show the warped image on the desktop?
Hi! I'm integrating a tracking system (Optix) and plan to use a 'laptop in a backpack' setup to allow tracking throughout a large space (20' by 22'). I currently have the tracking software work...
- 9 years agoTo get the mirror image you would have to write a native plugin and call ovr_CreateMirrorTextureDX(..) and ovr_DestroyMirrorTexture(..) from the render thread at initialization/shutdown using Unity's low-level interface. The ovrSession argument can be passed to the plugin via VR.VRDevice.GetNativePtr(). This is clearly non-trivial and you will need to do some D3D11 texture management in C++ to get it to work. See https://developer.oculus.com/documentation/pcsdk/latest/concepts/dg-render/ for guidance.
galapaegos
9 years agoHonored Guest
@vrdaveb, thank you very much! All the links are very useful, my only issues were due to versioning (Unity 5.4.0b24, Oculus runtime 1.5, and SDK 1.5 with unity tools 1.3.2 and everything finally works!).
A quick follow up question, it appears I can't create a mirror texture due to an active mirror texture (attempting to create a second fails). Is this a sync issue (its currently drawing and i need to wait) or a user-issue? Thanks again!
For anyone interested in getting access to the ovrSession object with a native plugin, here is some code to help, thanks to @JeffBail for the tip on initializing OVR, check out his post here: https://forums.oculus.com/developer/discussion/30702/angular-velocity
A quick follow up question, it appears I can't create a mirror texture due to an active mirror texture (attempting to create a second fails). Is this a sync issue (its currently drawing and i need to wait) or a user-issue? Thanks again!
For anyone interested in getting access to the ovrSession object with a native plugin, here is some code to help, thanks to @JeffBail for the tip on initializing OVR, check out his post here: https://forums.oculus.com/developer/discussion/30702/angular-velocity
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
- 3 years ago
- 11 months ago
- 2 years ago
- 1 year ago