Basic AR/Gyroscope
Basic AR/Gyroscope scenes correspond to the cloud-ar type.
How It Differs from Image AR
- Image AR depends on a local target image, and the 3D content appears on top of that tracked image.
Basic AR/Gyroscoperelies on a large-scale cloud image database, and the 3D content appears directly on screen, optionally with gyroscope support.
In practice, Basic AR/Gyroscope can either skip the scan step or require scanning, while Image AR must scan before the experience can begin.
Typical Flow
- open the scene
- download assets
- load the scene
- wait for cloud recognition to match the target
- enter the experience
If the Basic AR/Gyroscope scene is configured to skip cloud recognition, the flow becomes shorter.
Skip Cloud Recognition
The advanced API currently provides:
js
await api.skipCloudar();This method:
- stops cloud-recognition scanning
- immediately enters the next step of the experience
In other words, it is effectively "skip waiting for scan results and enter the experience directly".
Suitable Use Cases
- you already completed your own recognition or pre-check flow on the host page
- you want users to click "Skip scan and preview directly", or to auto-skip after a timeout
- you need to enter the content quickly for certain operational flows
- the scene editor requires recognition, but some dynamic business condition allows skipping cloud recognition
Example
js
iframe.addEventListener('ready', (event) => {
const { api } = event.detail;
skipButton.addEventListener('click', async () => {
await api.skipCloudar();
});
});Notes
- This method only works for
Basic AR/Gyroscopescenes. - If the current scene is already configured to skip scanning, calling it does not provide any extra effect.
- It is better to expose "skip scan" as an explicit user action instead of triggering it automatically by default, otherwise you weaken the intended experience design of
Basic AR/Gyroscopecontent.
Gyroscope
If a Basic AR/Gyroscope scene enables the gyroscope, additional motion logic is introduced after loading completes.
That causes two practical issues:
- the permission chain becomes more complex
- compatibility risk becomes higher on iOS and in-app WebViews
For Web iframe integrations, it is still recommended to disable gyroscope dependency whenever possible.
Recommended Host-Level Events
readydownloadAssetProgressloadSceneEndsceneStarterrorincompatibility
Suitable Business Cases
- scenes that need to match against a cloud image database, including large-scale image libraries
- campaigns where users cannot be given a fixed target image in advance, such as treasure hunts
- experiences where content should open only after recognition succeeds