Core AR & 3D
Show a product in 3D on your page and in augmented reality on the shopper's phone.
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.
Widget code
In the Core AR dashboard, open Integrations → Install on 3D & AR viewer or AR view and copy both parts. The Quickstart walks through them.
<script async src="https://cdn.vizbl.com/@vizbl/loader/dist/vizbl.js" data-key="pk_live_YOUR_PUBLISHABLE_KEY"></script>
<vizbl-button product="core-ar" object-id="YOUR_OBJECT_ID"></vizbl-button>object-idis the model in your Core AR library. The button shows the label of its mode, View in 3D & AR by default.- The widget's settings add their own attributes:
mode="advanced-ar"for the AR view widget,variant-idfor a material variant and the camera attributes for the model's framing. See The button.
The package behind it
The button is Core AR, the <vizbl-core> element of @vizbl/core-ar, in the mode ar-viewer. To add the element yourself, with a script tag, in JavaScript or in React, start from its Quickstart; Modes compares what each mode opens on each device.
Related
- iOS SDK and Android SDK: show the same models in AR in your own app.
- Node.js SDK: import 3D models into your library from your server.