Forum Discussion
thriplow
11 years agoHonored Guest
MirrorToWindow in Direct Mode
Direct Mode allows "Mirror to Window" (e.g. this post. Clearly useful for debug when you're messing with the non-3d bits of your code.
I've found it being used in the OculusWorldDemo, and can probably reverse-engineer that, but is there documentation or notes somewhere explaining its use? I've googled but nada...
thanks.
I've found it being used in the OculusWorldDemo, and can probably reverse-engineer that, but is there documentation or notes somewhere explaining its use? I've googled but nada...
thanks.
3 Replies
- thriplowHonored GuestActually, another feature I'd find useful during development would be 'render to window one eye without the Rift distortion', so please let me know if I've missed that. I'm trying to stick with 'Direct Mode' at the moment, so avoid extending the desktop and using some VLC/windows cloning method outside of the SDK...
- poppemanHonored GuestI can't find it in the developer documentation, but it is noted in comments (inside OVR_CAPI.h). You control that through ovrHmd_SetEnabledCaps, by making sure ovrHmdCap_NoMirrorToWindow is NOT set. I think this is the default behavior though. You'll get the post-distorted view though and as far as I know that's not configurable.
If a non-distorted view is important, it should be possible to create a separate window and render the eye buffer to it manually. - thriplowHonored Guest
create a separate window and render the eye buffer to it manually.
thanks - I'll try it with the mirror 'caps' enabled as suggested, and when that's good I'll use your method #2 as above...
I'm experimenting with rendering desktop windows and start menu in the VR world using the basic 'capture the window bitmap and wrap it as a texture on a 3d shape' technique, and with the mirroring I won't need to constantly take on and off the HMD...
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
- 2 years ago
- 2 years ago
- 6 months ago
- 9 months ago