Three.js: WebVR panorama and video examples are not mirrored

Created on 8 Apr 2016  路  11Comments  路  Source: mrdoob/three.js

Description of the problem
  1. Load https://github.com/mrdoob/three.js/blob/dev/examples/webvr_panorama.html and https://github.com/mrdoob/three.js/blob/dev/examples/webvr_video.html in the Chromium WebVR builds
  2. Notice upon clicking "Enter VR" the content is not mirrored (but is presented to the VR display properly)
    Three.js version
  • [x] Dev

    Browser
  • [x] Chromium WebVR Oculus build (April 6, 2016)

Browser Issue

All 11 comments

You're pointing to files in the master branch but maybe thsee issues are different in the development branch dev already?

You're pointing to files in the master branch but maybe thsee issues are different in the development branch dev already?

Sorry, I meant to link to dev files; was testing there. Fixed URLs.

Isn't this a bug in Chromium?

Isn't this a bug in Chromium?

Is it? I don't know. @toji?

If you want content mirrored to the external display the code either needs to re-draw the scene after calling submitFrame or set { preserveDrawingBuffer: true } in the context attributes when creating the WebGL context. Also note that you should only mirror content when vrDisplay.capabilities.hasExternalDisplay == true, because otherwise there's no display to mirror to. (Like Cardboard)

I just experimented the same problem on Edge with current builds. Adding the "preserveDrawingBuffer:true" in the renderer fixes the problem (found out via Samira Hidji through this conversation: https://twitter.com/samirahirji/status/1034139068651560963)

Is this a normal behavior? If so, why does it work on Firefox without the preservedrawingbuffer but not on Edge?
Test use case:
Without preserveDrawingBuffer: https://glitch.com/~six-galley
With preserveDrawingBuffer: https://glitch.com/~grave-hovercraft

Is this a normal behavior? If so, why does it work on Firefox without the preservedrawingbuffer but not on Edge?

I guess you should ask Microsoft people instead?

@toji does WebXR also need preserveDrawingBuffer: true?

I guess @SamiraAtMicrosoft might be able to let us know if there's any insight on the fact that it only occurs on Microsoft HMDs

This behavior was implemented in Edge to avoid drawing the canvas to the web page unnecessarily while immersed in WebVR.

Working as intended then 馃憣

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

akshaysrin picture akshaysrin  路  3Comments

jlaquinte picture jlaquinte  路  3Comments

donmccurdy picture donmccurdy  路  3Comments

boyravikumar picture boyravikumar  路  3Comments