NikLever / XRGestures

Add touch gestures to a WebXR AR app without using dom-overlay
GNU General Public License v3.0
21 stars 3 forks source link

Cannot open a camera on Android device #2

Open Simon1059770342 opened 2 years ago

Simon1059770342 commented 2 years ago

Hi Nik!

After I found finger pose dosent work in WebXR for the time being, I reckoned that I may find other way to interact with object in AR scene. And your XR Gestures may help with this idea.

When opening the online sample and clicking camera icon button, I saw a start AR button, but when I click this button, it alert out with

three.module.js:23945 Uncaught (in promise) DOMException: Failed to construct 'XRWebGLLayer': WebGL context must be marked as XR compatible in order to use with an immersive XRSession

but after clicked return button on my phone and then clicked the start AR button I can get into your demo, just wondering if you meet this before, or any solution for this issue.

THX for your help!