Skip to content

Access to WebCamTexture while in AR mode #394

Open
@AndreNicolai

Description

@AndreNicolai

Describe the bug
To be able to process the current camera image, I am trying to access the WebCamTexture.
This works fine while not in AR, but as soon as I switch to AR, WebCamTexture can no longer access the same camera device.

To Reproduce
Steps to reproduce the behavior:

  1. Add a quad with an attached PlayWebcam script to the WebXRInteractionToolkit scene
  2. Make sure the quad is visible for the main camera
  3. Build the app for WebGL and load it on an Android phone in Chrome
  4. The webcam should render fine on the placed quad until
  5. The moment AR is toggled on, the quad texture is no longer updated while the background shows the camera image

Expected behavior
It would be nice if there was a way to still access the camera texture while it is being used as background for the AR view

Unity info (please complete the following information):

  • Editor version: 2022.3.17
  • WebXR package version: 0.22
  • WebXR Interactions version: 0.22
  • Git or OpenUPM: OpenUPM
  • Using old components (like the Desert sample) or Input System + XR Interaction Toolkit: Most recent version
  • Built-in render pipeline or URP: URP

Smartphone (please complete the following information):

  • Device: Pixel 6
  • OS: Android 12
  • Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions