Skip to content

AR/MR mode doesn't work on PICO headsets / Make Hit Test API optional #4960

Closed

Description

Current behavior:

AR/MR mode doesn't work on PICO headsets (https://picoxr.com).

Tested in the PICO 4 headset on the latest version of PICO Browser and the latest version of firmware version.

Removing 'hit-test' from requiredFeatures or moving it into optionalFeatures in the

await navigator.xr!.requestSession!('immersive-ar', {
  requiredFeatures: ['hit-test'],
  optionalFeatures: ['dom-overlay', 'light-estimation'],
  domOverlay: this.overlay ? {root: this.overlay} : undefined
});

in the /packages/model-viewer/src/three-components/ARRenderer.ts file generally fixes the problem.

The 3D model can be successfully viewed in AR/MR mode.

The only thing is that dragging, scaling and rotating 3D models using motion controllers or hands, recently added by #4643, doesn't work.

I'm pretty sure it's because of unhandled errors (that can be seen in the browser console) related to the Hit Test API not actually being supported, but being called.

Expected behavior:

AR/MR mode does work on PICO headsets.

Hit Test API is optional, not required feature.

The code uses progressive enhancement, i.e. it checks if the browser supports specific Web APIs, and if so, only then it can use them.

Related issues:

See also #4959.

Activity

  1. elalish commented on Dec 2, 2024

    @elalish
    Contributor

    Yeah, sounds like we need a backup option for hit testing.

  2. added a commit that references this issue on Dec 29, 2024
    2035fde
  3. added a commit that references this issue on Feb 10, 2025
    0637b91
  4. added a commit that references this issue on Feb 24, 2025
    c61dd14
  5. added a commit that references this issue on Apr 8, 2025
    0abf0d5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions