Skip to main content
New Participant
November 11, 2014

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

    thriplowAuthor
    New Participant
    November 11, 2014
    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...
    New Participant
    November 11, 2014
    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.
    thriplowAuthor
    New Participant
    November 11, 2014
    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...