Oculus not mirroring on chrome

  • Hi there,

    thank you for all your work.

    I was using krpano together with Oculus and Chromium-WebVR.
    Due to an update to Oculus firmware I had to pass from Chromium-WebVR to the new version of Chrome(71) that supports WebVR and new Oculus.

    Sadly, doing this I lost the possibility to mirror the Oculus to the screen while i'm using it - despite having the "fullscreen_mirroring" to true.

    I also get two types of errors:

    Code
    [Deprecation] VREyeParameters.offset is deprecated. Please use view matrices provided by VRFrameData instead.


    and

    Code
    getFrameData must be called within a VRDisplay.requestAnimationFrame callback.
    submitFrame must be called within a VRDisplay.requestAnimationFrame callback.


    I honestly don't know if this has anything to do with the mirroring or not as the code is uglified and it's quite difficult to read, but looking at some example(mainly the immersive-web samples, as they are the one developing the WebXR apis) looks like it may be involved.

    Any possibility this will be resolved in the next version?
    If not, is there a way for me to load the plugin (at least as plain text instead of encoded) so that i can fix it myself?

    Thank you,
    S.

  • Hi,

    The warnings/errors itself are not related and will be removed in the next release (for the moment they can be ignored and have no effect).

    The new Chrome versions have a special need to provide mirroring - the WebGL 'preserveDrawingBuffer' setting need to be enabled.

    To enable it in krpano, add this setting in the html file this way:

    Code
    embedpano({..., webglsettings:{preserveDrawingBuffer:true}});

    See also here for more:
    https://krpano.com/docu/html/#webglsettings

    Best regards,
    Klaus

  • Oh, I see!

    I guess the old chrome was creating a context for webvr mode with the drawing buffer preserved while the new one has to be explicitly told so?

    Anyway thank you very much for your help!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!