I can find only this: WebXRImageTracking | Babylon.js Documentation
And an example mentioned in this post: Is there an AR Example
But it seems doesn’t work in my phone
Can there be some more detailed introductions of WebXRImageTracking?
I can find only this: WebXRImageTracking | Babylon.js Documentation
And an example mentioned in this post: Is there an AR Example
But it seems doesn’t work in my phone
Can there be some more detailed introductions of WebXRImageTracking?
Are you using iOS? I don’t think Apple support webXR(?)
Android. It’s Chrome
Do you have any error message in the console of the browser?
Unrecognized feature requested: image-tracking
DOMException: Failed to execute ‘requestSession’ on ‘XRSystem’: The session request contains invalid requiredFeatures and could not be fullfilled.
at e.initializeSessionAsync (https://preview.babylonjs.com/babylon.js?t=1692362698637:1:1834242)
at e. (https://preview.babylonjs.com/babylon.js?t=1692362698637:1:2940344)
at https://preview.babylonjs.com/babylon.js?t=1692362698637:1:155418
at Object.next (https://preview.babylonjs.com/babylon.js?t=1692362698637:1:155523)
at a (https://preview.babylonjs.com/babylon.js?t=1692362698637:1:154241)
Failed to execute ‘requestSession’ on ‘XRSystem’: The session request contains invalid requiredFeatures and could not be fullfilled.
Maybe you need to enable this flag:
Thanks very much. I didn’t thought about the flag to enable because the most simple AR experience worked in Chrome without toggling that
The reason we don’t have extensive documentation and examples for this feature is that it is still considered experimental and is behind a flag on chrome (as you have found out). When it will be out of incubation we will publish more examples for sure.
Thanks for answering. One more question: is it possible to try AR on iOS Safari?
nope, iOS doesn’t support WebXR