# Show a 3D model in augmented reality

Source: https://knowledge.intractive.app/en/articles/3d-models-in-augmented-reality

You can place your own 3D model on any image you choose with the **AR Marker** content block. When a visitor's phone camera recognises the image, the model appears on top of it.

## What you need first

- A 3D model in GLB or glTF format. These formats are more lightweight, so they run better in web applications such as interactive stories. A model can be up to 20 MB, and we advise keeping it under 15 MB. Animations in the model do play: they all start once, about a second after the marker is found, and stop on the last frame.
- A marker image: the image your visitors will scan.

Markers track best when the image is:

- high in contrast, with clear light and dark areas
- asymmetric, because a perfectly symmetrical image confuses tracking
- full of distinct details, without tiny repeating patterns
- printed with a matte finish, because glossy prints reflect light
- flat, on a surface such as a poster, a card or the side of a box

Printing the marker and placing it in the world is up to you.

## Export your model as GLB or glTF

These steps use [Blender](https://www.blender.org/download/), a free 3D tool. Set the position, rotation and scale of your model in Blender before you export it.

1. Select all the parts of the model you want to export.

   ![](https://storage.googleapis.com/intractive-knowledge-media/df62661ff5237dff93a403464e8f4802885835d6e0b53787ecf76f60ac53e034.png)
2. Go to **File** > **Export** > **glTF 2.0**.

   ![](https://storage.googleapis.com/intractive-knowledge-media/3c8c8fe64370641517a71fc1bd7bb91368059ce54440bc8e8d490a638ae7d237.png)
3. Tick **Selected Objects**.

   ![](https://storage.googleapis.com/intractive-knowledge-media/9bb539f443ca220f290c722e1a799981fdff0649de2c2f8a945dbba5477f87f3.png)
4. Click **Export glTF 2.0**.

Blender saves your model as a file you can upload.

## Add the model to the AR Marker block

1. Add an **AR Marker** block to your story. In the canvas editor, select **+**. In the classic editor, select **New content block**. You'll find the block under **Immersive** in the block picker.
2. Open the **AR Marker** block in your story.
3. Upload your marker image.
4. In **Display Object**, under **Image, video or 3D object**, upload your 3D model.\
   \[screenshot: the AR Marker block with a marker image and a 3D model uploaded\]

The camera only starts when the visitor reaches this block in the story and allows the camera. Once the visitor finds the marker, the 3D model shows with a button to continue.

## Test it on your phone

1. Hover over **Preview** in the top bar of the editor.
2. Click **Preview on mobile**.

   ![](https://storage.googleapis.com/intractive-knowledge-media/604103ac3232bab17a397825f561d353a57d31845168f9744bdabaf26573899f.png)
3. Scan the QR code with your phone.
4. Go to the AR Marker step in the story, and allow the camera.
5. Point your phone's camera at the marker image you uploaded.

**Preview** and **Preview from this block** in the editor never start the camera. They show the fallback view, so test on your phone. If you open the preview from a block, the QR code keeps that block as the start.

When the camera recognises the marker, your 3D model appears on top of it.

\[screenshot: a phone showing the 3D model on top of the printed marker\]

> [!TIP]
> Tip: Test with the real print, in the place where it will be used. Lighting changes how well the marker is recognised.

> [!NOTE]
> Note: The preview QR code only opens for people with access to the builder. Don't share it as a link to your story.
