Skip to content

requestPresent from vrdisplayactivate is failing due to usage of wrong layer. #4198

@Artyom17

Description

@Artyom17

Description:
The requestPresent from within the vrdisplayactivate is failing on Oculus Browser (and I bet on Chrome too) due to the wrong layer provided. The commit that introduced the issue is a3ac58e. See

vrDisplay.requestPresent([{source: canvasEl}]).then(function () {}, function () {});
: it creates a new non-gl canvas, and tries to use it as a layer, which is not going to work. Even in the nested requestPresents you must specify the ACTUAL GL canvas, not just a placeholder (https://immersive-web.github.io/webvr/spec/1.1/#dom-vrdisplay-requestpresent%E2%91%A0)

Seems like the previous version worked (or should have worked).

  • A-Frame Version: 0.9.2 (master)
  • Platform / Device: Oculus Browser / Chrome
  • Reproducible Code Snippet or URL:
    With connected Go or Quest, run this adb command:
    adb shell am start -n com.oculus.vrshell/.MainActivity -d apk://com.oculus.browser -e uri "ovrweb://vr?uri=http%3A%2F%2Faframe.io%2Fexamples%2Fshowcase%2Fsky" (may replace the actual url to whatever is better for you).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions