Docs / AR Experiences

Author an AR experience

An AR experience is a printed thing — an invitation, a business card, a poster, a product label — that comes alive when a phone camera looks at it. A video plays on the card, a heading and a date float above it, a “Reply” button appears. Studio holds the content; your own app, built with the @maravilla/ar SDK, shows it.

Experimental. The model, the authoring screens and the SDK may still change. Always confirm with the Test button, and with a printed proof, before a print run.

The three things you author

What it isLives
AR ExperienceOne deliverable — “Birthday invitation”. It owns the compiled tracking bundle your app loads.In Assets
AR TargetOne picture the camera must recognise — the front of the card, the back of the card.Inside an experience
AR SceneThe overlay shown once a target is recognised: a list of blocks.Inside a target

A card with a front and a back is one experience with two targets, because the camera tracks both sides from a single compiled file.

1. Create the experience

Open Assets, then Create → New AR Experience and give it a name. It appears next to your folders and files as a card with a cube icon.

The Assets library with a new AR experience card

Open it. The toolbar shows the Experimental badge, Compile, Test and the current bundle state (none, compiled, stale, error).

2. Choose the artwork — this decides everything

Tracking quality is a property of the artwork, not a setting. Get this right first.

  • Upload the flat artwork exactly as printed — the design file, or a straight-on scan cropped to the printed surface.
  • Never upload a photograph of the object on a table. The detector learns the whole picture, so a photo teaches it one angle, one shadow, one background — which a camera can never reproduce. This is the most common mistake.
  • A QR code on the card is fine — upload the artwork with it. A QR in the middle is how a visitor gets from the printed card to your page (they scan it, tap Start AR, then point the camera at the same card). Upload the design exactly as printed, QR included, and keep the QR a minority of the card — roughly a fifth or less is a sensible start — with rich artwork around it. A card that is mostly QR or repeating pattern is the thing to avoid: every cell looks like every other, so matching stays ambiguous. Always confirm with Test on a printed proof.
  • Prefer busy, high-contrast, non-symmetric artwork. Photographs are excellent; flat vector logos and plain gradients are hopeless.
  • Print matte. Gloss creates highlights that destroy tracking under real lighting.
  • Below roughly 50 mm wide a phone cannot resolve enough detail at arm’s length.

Upload the artwork to Assets first (Create → Upload), so you can pick it in the next step.

3. Add a target

Inside the experience choose Create → New AR Target. Give it a title and pick the artwork. The image is required.

The New AR Target dialog

The target appears with its artwork as a card

Open the target and set Printed Width (mm). This is not cosmetic: overlay blocks are positioned in millimetres and converted using this width, so “20 mm below the date” is the same on a business card and on a poster.

The target editor with the artwork and printed width

4. Compile

Press Compile in the experience toolbar. Compiling runs in the browser in a background worker, so Studio stays usable; it rebuilds every target of the experience into one file. Keep the tab open until the state turns compiled.

A compiled experience: the target reports how well it will track

Each target shows a feature count and a verdict — won’t track (under 150), weak (150–500) or tracks well (500 and up).

The score measures detail, not matchability. A photo of the object, or a card that is mostly QR or pattern, scores high and still never matches. The score cannot catch them — only the Test button can.

Adding, removing or reordering targets marks the bundle stale; compile again.

5. Place the overlay

Inside a target choose Create → New AR Scene. Open the scene: it opens on the 3D stage.

The 3D stage: the printed card in the middle, every block standing on it, with move, rotate and scale handles on the selected block

The stage shows your printed card with every block placed on it — in millimetres, the same space the viewer uses, so what you see is where it lands.

  • Add a block by dragging a tile from Blocks (the second icon in the left rail) onto the stage, or click a tile to add it at the centre. A tile dropped on the stage lands where you let go.
  • Move, rotate, scale with the handles. The buttons above the stage (or W / E / R) switch the tool; 3D / Top / Front / Side change the view. Each gesture is one undo step.
  • Select by clicking a block on the stage or in the Sections list; its Placement and Reveal open in the Design panel on the right.
  • Switch to the block list with the cursor button in the top bar when you want to edit text, media and other fields on cards. Dragging a tile from Blocks onto the list inserts it there. Switch back for the stage.

An empty scene

The block picker: group, image, video, text, button, 3D model, audio

BlockFor
AR TextHeading and body text, with an optional translucent plate for legibility.
AR ImageA flat image laid over the card.
AR VideoVideo on the card — a poster with tap-to-play, optional green-screen keying.
AR ButtonA call to action: a link, WhatsApp, phone, mail, share, another scene, or an event name your app handles.
AR ModelA 3D model (glTF).
AR ShapeA built-in 3D shape — box, sphere, cylinder, cone, disc or ring — with a colour, an optional image and an animation. No model file needed.
AR AudioNarration or effects, optionally positional.
AR GroupGroups blocks so they move and appear together. Drop a block onto a group on the stage to put it inside.

A scene with an AR Text block

Every block has Placement (where it sits, in millimetres from the centre of the target) and Reveal (when it appears: always, when the target is found, after a delay, at a moment of a video, or on tap). That is how “the Reply button appears 42 seconds into the video” is expressed as data.

A scene is shown while Active is ticked. A target can hold several scenes and pick one with a Rule — the same rule builder the personalisation uses.

The full reference for every block — fields, reveal rules, video behaviour and button actions — is on Blocks, video and buttons.

Prefer files? A scene is plain YAML

A scene is an ordinary node, so a package — or an AI assistant — can create one as a file, in the same tree Studio writes:

# content/assets/spring-campaign/business-card/main/.node.yaml
node_type: studio:ArScene
archetype: studio:ArScenePage
properties:
  title: Main
  active: true
  content:
    - uuid: heading
      element_type: ar:TextPanel
      heading: Hello
      width: 60
      transform: { space: target, pos_x: 0, pos_y: -35, pos_z: 2 }
    - uuid: box
      element_type: ar:Shape
      shape: box
      size: 20
      color: "#8b5cf6"
      animation: spin
      transform: { space: target, pos_x: 20, pos_y: 0, rot_z: 15 }

Positions are millimetres from the card centre (X right, Y up, Z out of the card), rotation is in degrees, and transform is a nested object. Compiling the tracking bundle is still a Studio step — files create the experience, target and scene nodes; press Compile afterwards.

6. Test, then publish

Test in the experience toolbar opens the camera and draws a green frame over the target while it is tracked. Point it at the printed card or at the image on another screen.

Your app reads the published content, so publish the whole experience: open it in the editor, press the publish control, and tick Publish the whole tree. Studio also publishes the artwork and the compiled bundle it references.

The publish dialog lists the experience, its children and the bundle

Next: the blocks in detail, then build the app that shows it, or let an AI assistant build it for you.

Pilot documentation. Studio is in a partner pilot. Screens and YAML shown here are current as of the version noted on each page; tell your Maravilla contact when something does not match what you see.