Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
thriplow's avatar
thriplow
Honored Guest
11 years ago

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.

3 Replies

  • Actually, 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...
  • I 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.
  • 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...