All platforms / Guide

3D model and AR on any site

Three options, starting with the simplest: the ready-made iframe, the script that adapts to the width, and the link with QR code.

Plugin / app
Not needed
Where to paste the code
Anywhere HTML or iframes are accepted
AR on phones
Yes, Android and iPhone

Option 1: Iframe (Code for your site)

Works anywhere you can add HTML: the page file, an HTML field in your CMS, an Embed element.

  1. Step 1

    Copy the code from 3DView

    Sign in, go to “My models” and, on the model, click “Code for your site”: the code is copied right away. The Shopify, WooCommerce and “Any site” tabs only show where to paste it; the code is the same.

    Copy the code from 3DView
  2. Step 2

    Paste the code into the page

    Put the code in the page's HTML where you want the model, or in an HTML / Embed element of your platform.

    Paste the code into the page
  3. Step 3

    Publish and check

    Save the page and open it on a computer and on a phone.

    Publish and check

Option 2: <view3d-model> script

For sites where you can add scripts. The element creates the same iframe, but you can size it proportionally: ratio="1/1" (square), "4/3" or height="520px".

  1. Step 1

    Copy the code from 3DView

    Sign in, go to “My models” and, on the model, click “Code for your site”: the code is copied right away. The Shopify, WooCommerce and “Any site” tabs only show where to paste it; the code is the same.

    Copy the code from 3DView
  2. Step 2

    Add the script once

    Add the <script> line from the code below once on the page (or in the template, before </body>).

  3. Step 3

    Add the element for each model

    Replace MODEL_ID with the model ID (the part after /embed/ in the copied code). Optional: controls="0" hides the controls bar.

<script src="https://www.3dview.ai/embed.js" async></script>
<view3d-model model="MODEL_ID" ratio="1/1" title="Oslo sofa"></view3d-model>

Option 3: Link and QR code

When you can't add code: buttons, email, social media, printed materials.

  1. Step 1

    Get the link and QR code

    In “My models”, on the model, click “Share / QR”: copy the model's direct link (it opens 3D and AR on phones) and save the QR code.

  2. Step 2

    Add the link

    Make a “View the product in 3D and AR” button or link pointing to the model link, as in the example below.

  3. Step 3

    Print the QR code

    The QR code opens the model directly on a phone, with AR.

<a href="https://www.3dview.ai/embed/MODEL_ID" target="_blank" rel="noopener">View the product in 3D and AR</a>

The code you paste

This is what the code copied from 3DView looks like (yours shows the model ID instead of MODEL_ID). You can change the height (height:480px); leave the rest as it is. Add ?controls=0 after the ID to hide the controls bar under the model.

<iframe src="https://www.3dview.ai/embed/MODEL_ID" title="Oslo sofa" loading="lazy" allow="xr-spatial-tracking; fullscreen; accelerometer; gyroscope" allowfullscreen style="width:100%;height:480px;border:0;border-radius:12px"></iframe>

Other platforms

BigCommerce
Product → Description → the “<>” (HTML) button → paste the code → Save.
Joomla
The article → “Toggle Editor” → paste the code. If it disappears: System → Global Configuration → Text Filters, “No Filtering” for your group.
Drupal
Use the “Full HTML” text format, click “Source” in the editor and paste the code.
Ghost
In the editor, click “+” → HTML card → paste the code.
Google Sites
Insert → Embed → “Embed code” → paste the code. Google Sites puts the code in its own frame: test AR; if it doesn't start, add a button with the model link.
Developer-built site
Send your developer the code: it's a regular iframe, with no dependencies. For proportional sizing, use the script option.

How to check it works

  • On a computer: the model loads, rotates with the mouse, and the “View on phone” button shows a QR code for AR.
  • On Android (Chrome): tap the AR button in the corner of the model. Google's AR viewer opens and you place the product in your room at real size. The phone must support ARCore.
  • On iPhone/iPad (Safari): tap the AR button. AR Quick Look opens, no app needed.
  • Test in Safari or Chrome, not in the Facebook/Instagram in-app browser: AR doesn't start there.

Common problems and fixes

The site has a Content Security Policy

Add https://www.3dview.ai to frame-src (for the iframe) and to script-src (for the script option).

The code disappears or turns into text after saving

The editor stripped it: paste the code in HTML / source code mode, not in visual mode (the steps above show the exact button). If it still disappears, the platform doesn't allow iframes: use the link and QR code from “Share / QR”.

The model is too small or gets cut off

Increase the height in the code: change height:480px to, say, height:600px. The width (100%) adapts to the column on its own. On phones, 400–500px is usually enough.

The AR button doesn't appear or doesn't start on iPhone

AR on iPhone needs Safari (or Chrome on iOS) and an iPhone/iPad with iOS 12 or later. 3DView prepares the iPhone version (USDZ) automatically. Open the model's direct link (the “View in AR” button in your account): if it works there, your platform blocks AR inside embedded frames; add a “View in AR” link to that URL under the model.

The browser says “insecure content” or the model doesn't load

Don't change the address in the code to http://. On an https site, browsers block http frames (mixed content). Leave the address exactly as it is: https://www.3dview.ai/embed/…

The 3DView logo appears on the model

You remove it per model, from your account: “Remove logo”, a one-time payment in credits. The code stays the same.

Does it slow down the page?

No: the code has loading="lazy", so the model only loads when it scrolls into view. Hosting is included, no subscription.

Simplified illustrations, not screenshots; menus may look slightly different in your version.

Frequently asked questions

Which option should I choose?

The iframe, if you can paste HTML: it's the simplest. The script, if you want proportional sizing. The link with QR, if you can't add code.

Can I use the model on several domains?

Yes, the same code works on any domain and on any number of pages.

Can I hide the 3DView logo?

Yes, per model, from your account: “Remove logo”, a one-time payment in credits.

Don't have a 3D model yet?

Scan the product with your phone or start from a photo. You get the code for your site, a link with QR code, and AR included.

Create your first model