zappar-xr / zappar-react-three-fiber

Our SDK for the 3D rendering platform React-Three-Fiber.
MIT License
60 stars 9 forks source link

Camera shows white background - no GL context for camera frames - Iphone #79

Open yondr-agency-15 opened 1 year ago

yondr-agency-15 commented 1 year ago

Describe the bug ERROR: no GL context for camera frames - please call pipeline_gl_context_set (probably an issue with cameraRef in ZapparCamera )

To Reproduce Steps to reproduce the behavior:

Screenshots Error1 (Happens on some devices): image Error2 : image bundlejs: image The camera icon dissapears on devices where this issue happens: image

Smartphone :

yondr-agency-15 commented 1 year ago

(I am not using the following lines) It seems that manually asking for permissions inside a component also triggers the same problem:

 useEffect(() => {
    ZapparThree.permissionRequestUI().then(granted => {
      if (granted) document.dispatchEvent(new Event("cameraAccess"))
      console.warn("cameraAccess:", granted)
    })
  }, [])
yondr-agency-15 commented 1 year ago

image