Skip to Content

Overview

Add a button that shows a product in 3D and in augmented reality.

Core AR adds a button to your product page that opens the product in 3D over the page, or in augmented reality on the shopper's phone, at its real size.

It is the widget of the Core AR dashboard, where you upload or generate the 3D models. The dashboard hands out widget code that adds the button for you. This section is for adding it yourself: Core AR is <vizbl-core>, a custom element from the @vizbl/core-ar package, which works the same in plain HTML, in JavaScript and in React.

Try it

Pick a mode and press the button. The code under the demo is what you write, with your own publishable key. On a computer, the AR modes show a QR code that opens AR on your phone. A link can open one mode, for example /docs/core-ar#ar-one-click.

A sofa from Vizbl's public catalogue. Yours comes from your Core AR model library by its object id.

The button opens a 3D viewer over the page. The shopper turns the product, checks its dimensions and moves on to AR from there.

<vizbl-core
  api-key="pk_live_YOUR_PUBLISHABLE_KEY"
  type="ar-viewer"
  object-id="YOUR_OBJECT_ID"
></vizbl-core>

The element is the same however you install it: the Quickstart shows how to load it with a script tag, from npm and in React. Modes compares what each mode opens on each device.

What you need

  • A publishable key from the Core AR dashboard, and your site's host on your allowed domains.
  • The object id of a model in your Core AR model library.

Next steps

On this page