There has been a regression in WebXR AR Module in recent Chrome, they aware of it.
Bear in mind - it is very experimental feature in browsers, and is not production ready, only for early experiments. Also it is a subject to change.
My camera is activated but it looks like there’s no floor detection. I tried different rooms with different lights but no luck. Strangely, with the same device, it’s working well with the Hit-test example on Google Chrome and even the “AR scene viewer”.
This project should help you. In fact, I just forked the project of Moka and added an error handler to see where the problem is coming from.
I did tried different variations of parameters with HitTest like the ones from the official documentation.
Still, I received different kind of error in the console while testing with Chrome Mobile on device.
The profile “generic-touchscreen” is the one that interested me because I want to use AR with my mobile. It is like “Hit-test” is a feature not asked when we start the XR session from the API.
I had a look at this and for whatever reason, it works fine in the WebXR extension but not on device. I think I found the reason why but will require an engine change. Will keep you posted.
I was trying to to make a simple AR hit test project, where I could place simple objects on the ground and when searching for help/solutions I stumbled upon this thread.
I am facing the same problem as:
Even when I try this link below, I still cannot place any grass when I’m using my phone. I can only do so when using webXR emulator in chrome (on my personal computer).
Am I missing something or is this feature not yet available in PlayCanvas?
/edit:
Also, do I understand this correctly that:
WebXR technology is still in development and is not production ready yet. The specifications/docs are being drafted and the API is not stable yet?
Some of the WebXR features are being implemented in PlayCanvas by its contributors/users, however since the underlying technology is not stable yet, these features may not work in PlayCanvas
Does this sound right? I’m just trying to look at the bigger picture here.