Modes
What each mode opens on a computer, an iPhone and an Android phone, and which one to pick.
type sets the mode: what a tap on the button opens. Every mode takes the same model and the same key.
ar-viewer | ar-one-click | advanced-ar | |
|---|---|---|---|
| Default label | View in 3D & AR | View in AR | View in advanced AR |
| On a computer | A 3D viewer over the page, with a QR code for AR on a phone | A QR code that opens AR on a phone | A QR code that opens AR on a phone |
| On an iPhone or iPad | The 3D viewer; View in place opens Vizbl's advanced AR (App Clip), or AR Quick Look on older iOS | AR Quick Look, at once | Vizbl's advanced AR, an App Clip; AR Quick Look on older iOS |
| On an Android phone | The 3D viewer, then AR in the browser | AR in the browser, at once | AR in the browser, at once |
| Needs | A model | GLB and USDZ models | GLB and USDZ models |
A model without GLB and USDZ files makes the AR modes fail with MODEL_UNAVAILABLE; ar-viewer still shows it. See the modes live in the Overview.
ar-viewer
The button opens a 3D viewer over your page, in the shopper's own page rather than a new tab. The shopper turns and zooms the product and can show its dimensions; on a phone, View in place opens AR. Pick it when the shopper decides on the product page: furniture, lighting, anything where size and detail matter.
The viewer takes the camera and dimension settings.
ar-one-click
The button opens AR without a viewer in between: AR Quick Look on an iPhone, AR in the browser on an Android phone, and Google's Scene Viewer where the browser has no AR. On a computer it shows a QR code. Pick it for a second button beside your gallery, or when the shopper already knows the product and only wants to see it in place.
A model whose settings do not allow one-tap AR makes the button fail with POLICY_DENIED: use ar-viewer for it.
advanced-ar
On an iPhone or iPad with recent iOS the button opens Vizbl's advanced AR as an App Clip, with nothing to install: the shopper can place several products at once and change their colours. On older iOS and on an Android phone it opens AR as ar-one-click does, and on a computer it shows a QR code. Pick it when shoppers compare products or variants in their space.
Change the mode
Set another type on the element. It starts again in the new mode, as after any change of an attribute: see Lifecycle.
<vizbl-core api-key="pk_live_YOUR_PUBLISHABLE_KEY" type="ar-one-click" object-id="YOUR_OBJECT_ID"></vizbl-core>The label follows the mode unless you give the button your own label.