Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title data-i18n="features_ar.meta_title">AR & WebXR — Place Any 3D Agent in Your Real World · three.ws</title>
<meta
name="description"
content="Every three.ws avatar and Forge model has a View in AR button. On mobile it anchors the model to real surfaces through your camera. On desktop a QR code gets you there in one scan. WebXR on Android, Quick Look on iOS — no app, no download."
data-i18n-attr="content:features_ar.meta_description"/>
<meta name="robots" content="index, follow" />
<link rel="canonical" href="https://three.ws/features/ar" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="three.ws" />
<meta property="og:title" content="AR & WebXR — Place Any 3D Agent in Your Real World · three.ws" data-i18n-attr="content:features_ar.meta_og_title"/>
<meta
property="og:description"
content="Every three.ws avatar and Forge model has a View in AR button. WebXR on Android, Quick Look on iOS — no app, no download."
data-i18n-attr="content:features_ar.meta_og_description"/>
<meta property="og:url" content="https://three.ws/features/ar" />
<meta property="og:image" content="https://three.ws/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="AR & WebXR — Place Any 3D Agent in Your Real World · three.ws" data-i18n-attr="content:features_ar.meta_twitter_title"/>
<meta
name="twitter:description"
content="Every three.ws avatar and Forge model has a View in AR button. WebXR on Android, Quick Look on iOS — no app, no download."
data-i18n-attr="content:features_ar.meta_twitter_description"/>
<meta name="twitter:image" content="https://three.ws/og-image.png" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/pwa-192x192.png" />
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/nav.css" />
<link rel="stylesheet" href="/features-landing.css" />
<link rel="stylesheet" href="/fonts/fonts.css" />
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@google/[email protected]/dist/model-viewer.min.js"
integrity="sha384-wjsPzEO+lXOf7d9csIDfAQpPt2OKuUU3m0K9qsdKIuzX4N8czSF6hdh23eAbZa3p"
crossorigin="anonymous"
></script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "SoftwareApplication",
"name": "AR & WebXR — three.ws",
"url": "https://three.ws/gallery",
"applicationCategory": "UtilitiesApplication",
"description": "Place any three.ws avatar or Forge model in augmented reality through your phone camera. WebXR on Android, iOS Quick Look on iPhone — no app install required.",
"operatingSystem": "Web, iOS, Android",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" }
},
{
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "Do I need to install an app to use AR?",
"acceptedAnswer": {
"@type": "Answer",
"text": "No. On iPhone it uses iOS Quick Look, which is built into Safari. On Android it uses WebXR or Google Scene Viewer via Chrome. No app download required."
}
},
{
"@type": "Question",
"name": "Which browsers support AR on three.ws?",
"acceptedAnswer": {
"@type": "Answer",
"text": "iPhone: Safari only. Android: Chrome (or any Chromium-based browser with ARCore). Desktop browsers do not support immersive AR."
}
},
{
"@type": "Question",
"name": "Can I see my AI agent's animations in AR?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes, when using WebXR (Android Chrome). iOS Quick Look shows a static pose. WebXR is the only AR method that keeps the agent's full runtime live — animations, conversation, and tools all work."
}
},
{
"@type": "Question",
"name": "How do I add AR to my embedded agent?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Add the `ar` attribute to your <agent-3d> tag: <agent-3d id=\"YOUR_ID\" ar></agent-3d>. For iframe embeds, add allow=\"xr-spatial-tracking\" to the <iframe> tag."
}
},
{
"@type": "Question",
"name": "What is the maximum model size for AR?",
"acceptedAnswer": {
"@type": "Answer",
"text": "iOS Quick Look handles models up to about 15 MB reliably. Android Scene Viewer handles up to about 20 MB. WebXR has no hard limit, but models over 50 MB will be slow to download on mobile networks."
}
}
]
}
]
}
</script>
<script src="/model-viewer-meshopt.js"></script>
</head>
<body class="fl-page">
<header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<main class="fl-main" id="main-content">
<nav class="fl-breadcrumb" aria-label="Breadcrumb">
<a href="/" data-i18n="features_ar.three_ws">three.ws</a>
<span class="fl-breadcrumb-sep" aria-hidden="true">/</span>
<a href="/features" data-i18n="features_ar.features">Features</a>
<span class="fl-breadcrumb-sep" aria-hidden="true">/</span>
<span class="fl-breadcrumb-current" data-i18n="features_ar.ar_webxr">AR & WebXR</span>
</nav>
<!-- Hero -->
<section class="fl-hero" aria-labelledby="ar-hero-h1">
<div class="fl-hero-inner">
<div class="fl-hero-copy">
<span class="fl-eyebrow" data-i18n-html="features_ar.augmented_reality">
<span class="fl-eyebrow-dot" aria-hidden="true"></span>Augmented Reality
</span>
<h1 id="ar-hero-h1" data-i18n-html="features_ar.your_3d_agent_in_your_room">Your 3D agent.<br />In your room.</h1>
<p class="fl-hero-sub" data-i18n="features_ar.every_avatar_and_forge_model_on_three">
Every avatar and Forge model on three.ws has a View in AR button. On mobile it
anchors the model to a real surface through your camera — at real-world scale. On
desktop a QR code gets you there in one scan. WebXR on Android, Quick Look on iOS.
No app. No download.
</p>
<div class="fl-hero-actions">
<a href="/gallery" class="fl-btn-primary" data-i18n="features_ar.browse_avatars">Browse avatars →</a>
<a href="/forge" class="fl-btn-ghost" data-i18n="features_ar.generate_a_model">Generate a model</a>
</div>
</div>
<div class="fl-hero-preview" aria-label="3D model preview — rotate to orbit">
<model-viewer
src="/animations/robotexpressive.glb"
alt="3D robot avatar — rotate to orbit, AR-ready on mobile"
auto-rotate
auto-rotate-delay="500"
rotation-per-second="12deg"
camera-controls
ar
ar-modes="webxr scene-viewer quick-look"
shadow-intensity="0.4"
environment-image="neutral"
style="background: transparent; width: 100%; height: 100%"
></model-viewer>
<span class="fl-preview-label" data-i18n="features_ar.drag_to_orbit_ar_on_mobile">Drag to orbit · AR on mobile</span>
</div>
</div>
</section>
<!-- How it works -->
<section class="fl-how fl-section" aria-labelledby="ar-how-h2">
<p class="fl-section-label" data-i18n="features_ar.how_it_works">How it works</p>
<h2 id="ar-how-h2" data-i18n="features_ar.from_browser_to_real_world_in_four">From browser to real world in four taps</h2>
<div class="fl-steps" role="list">
<article class="fl-step" role="listitem">
<span class="fl-step-num">01</span>
<h3 data-i18n="features_ar.open_any_model">Open any model</h3>
<p data-i18n-html="features_ar.every_avatar_page_has_an_ar_tab">
Every avatar page has an <strong>AR tab</strong>. Every Forge result has a
<strong>View in AR</strong> button. Open either on your phone.
</p>
</article>
<article class="fl-step" role="listitem">
<span class="fl-step-num">02</span>
<h3 data-i18n="features_ar.point_at_a_surface">Point at a surface</h3>
<p data-i18n="features_ar.the_camera_scans_for_flat_surfaces_floor">
The camera scans for flat surfaces — floor, desk, table. A reticle
appears when a plane is detected and ready for placement.
</p>
</article>
<article class="fl-step" role="listitem">
<span class="fl-step-num">03</span>
<h3 data-i18n="features_ar.place_in_your_space">Place in your space</h3>
<p data-i18n-html="features_ar.tap_place_in_your_space_the_model">
Tap <strong>Place in your space</strong>. The model appears anchored to
that surface at real-world scale. Walk around it. Pinch to resize.
</p>
</article>
<article class="fl-step" role="listitem">
<span class="fl-step-num">04</span>
<h3 data-i18n="features_ar.on_desktop_scan_the_qr">On desktop — scan the QR</h3>
<p data-i18n="features_ar.desktop_shows_a_qr_code_scan_it">
Desktop shows a QR code. Scan it with your phone and the AR experience
opens directly — no extra steps, no extra app.
</p>
</article>
</div>
</section>
<!-- AR methods -->
<section class="fl-highlights fl-section" aria-labelledby="ar-methods-h2">
<h2 id="ar-methods-h2" data-i18n="features_ar.three_ar_methods_one_button">Three AR methods. One button.</h2>
<p style="max-width:640px;color:var(--fl-sub);margin-bottom:2rem;" data-i18n="features_ar.three_ws_selects_the_right_method_automatica">
three.ws selects the right method automatically — you never choose. Each has different
trade-offs based on what the device and browser support.
</p>
<div class="fl-cards">
<div class="fl-card">
<span class="fl-card-icon" aria-hidden="true">⬡</span>
<h3 data-i18n="features_ar.ios_quick_look">iOS Quick Look</h3>
<p data-i18n="features_ar.iphone_and_ipad_in_safari_triggers_apple">
iPhone and iPad in Safari. Triggers Apple's native AR viewer — built into
the OS, zero install. Converts the 3D model to USDZ automatically
if needed. Static pose, no conversation.
</p>
</div>
<div class="fl-card">
<span class="fl-card-icon" aria-hidden="true">⬡</span>
<h3 data-i18n="features_ar.android_scene_viewer">Android Scene Viewer</h3>
<p data-i18n="features_ar.android_chrome_launches_google_s_scene_viewe">
Android Chrome launches Google's Scene Viewer via ARCore. GLB files load
directly — no conversion needed. Animations play. No conversation.
</p>
</div>
<div class="fl-card">
<span class="fl-card-icon" aria-hidden="true">⬡</span>
<h3 data-i18n="features_ar.webxr_immersive_ar">WebXR immersive-ar</h3>
<p data-i18n="features_ar.the_most_powerful_method_the_page_itself">
The most powerful method. The page itself becomes the AR view — the agent
stays fully live. Animations, voice conversation, skills, and tools all
work in AR. The agent tracks the XR camera as your head.
</p>
</div>
<div class="fl-card">
<span class="fl-card-icon" aria-hidden="true">⬡</span>
<h3 data-i18n="features_ar.desktop_qr">Desktop QR</h3>
<p data-i18n="features_ar.on_any_desktop_browser_the_ar_tab">
On any desktop browser, the AR tab shows a QR code instead of a launch
button. Scan with your phone and the AR experience opens — model included,
no second search needed.
</p>
</div>
</div>
</section>
<!-- Capability comparison -->
<section class="fl-section" aria-labelledby="ar-compare-h2" style="max-width:880px;margin-inline:auto;padding-inline:var(--fl-px)">
<p class="fl-section-label" data-i18n="features_ar.platform_comparison">Platform comparison</p>
<h2 id="ar-compare-h2" data-i18n="features_ar.what_works_where">What works where</h2>
<div style="overflow-x:auto;margin-top:1.5rem">
<table style="width:100%;border-collapse:collapse;font-size:14px;line-height:1.5">
<thead>
<tr style="border-bottom:1px solid var(--fl-border)">
<th style="text-align:left;padding:10px 16px 10px 0;color:var(--fl-sub);font-weight:500;white-space:nowrap" data-i18n="features_ar.capability">Capability</th>
<th style="text-align:center;padding:10px 16px;color:var(--fl-sub);font-weight:500;white-space:nowrap" data-i18n="features_ar.ios_quick_look_2">iOS Quick Look</th>
<th style="text-align:center;padding:10px 16px;color:var(--fl-sub);font-weight:500;white-space:nowrap" data-i18n="features_ar.scene_viewer">Scene Viewer</th>
<th style="text-align:center;padding:10px 16px;color:var(--fl-sub);font-weight:500;white-space:nowrap" data-i18n="features_ar.webxr">WebXR</th>
</tr>
</thead>
<tbody>
<tr style="border-bottom:1px solid var(--fl-border)">
<td style="padding:10px 16px 10px 0" data-i18n="features_ar.platform">Platform</td>
<td style="text-align:center;padding:10px 16px" data-i18n="features_ar.iphone_ipad_safari">iPhone / iPad (Safari)</td>
<td style="text-align:center;padding:10px 16px" data-i18n="features_ar.android_chrome">Android Chrome</td>
<td style="text-align:center;padding:10px 16px" data-i18n="features_ar.chrome_safari_15_4">Chrome / Safari 15.4+</td>
</tr>
<tr style="border-bottom:1px solid var(--fl-border)">
<td style="padding:10px 16px 10px 0" data-i18n="features_ar.animations">Animations</td>
<td style="text-align:center;padding:10px 16px;color:#ef4444" data-i18n="features_ar.static_pose">✗ static pose</td>
<td style="text-align:center;padding:10px 16px;color:#22c55e">✓</td>
<td style="text-align:center;padding:10px 16px;color:#22c55e">✓</td>
</tr>
<tr style="border-bottom:1px solid var(--fl-border)">
<td style="padding:10px 16px 10px 0" data-i18n="features_ar.voice_conversation">Voice conversation</td>
<td style="text-align:center;padding:10px 16px;color:#ef4444">✗</td>
<td style="text-align:center;padding:10px 16px;color:#ef4444">✗</td>
<td style="text-align:center;padding:10px 16px;color:#22c55e" data-i18n="features_ar.full_runtime">✓ full runtime</td>
</tr>
<tr style="border-bottom:1px solid var(--fl-border)">
<td style="padding:10px 16px 10px 0" data-i18n="features_ar.agent_skills_tools">Agent skills & tools</td>
<td style="text-align:center;padding:10px 16px;color:#ef4444">✗</td>
<td style="text-align:center;padding:10px 16px;color:#ef4444">✗</td>
<td style="text-align:center;padding:10px 16px;color:#22c55e">✓</td>
</tr>
<tr style="border-bottom:1px solid var(--fl-border)">
<td style="padding:10px 16px 10px 0" data-i18n="features_ar.app_required">App required</td>
<td style="text-align:center;padding:10px 16px;color:#22c55e" data-i18n="features_ar.none_built_in">None (built-in)</td>
<td style="text-align:center;padding:10px 16px" data-i18n="features_ar.arcore_auto_prompts">ARCore (auto-prompts)</td>
<td style="text-align:center;padding:10px 16px;color:#22c55e" data-i18n="features_ar.none">None</td>
</tr>
<tr>
<td style="padding:10px 16px 10px 0" data-i18n="features_ar.max_practical_size">Max practical size</td>
<td style="text-align:center;padding:10px 16px" data-i18n="features_ar.15_mb">~15 MB</td>
<td style="text-align:center;padding:10px 16px" data-i18n="features_ar.20_mb">~20 MB</td>
<td style="text-align:center;padding:10px 16px" data-i18n="features_ar.no_hard_limit">No hard limit</td>
</tr>
</tbody>
</table>
</div>
</section>
<!-- Developer integration -->
<section class="fl-section" aria-labelledby="ar-dev-h2" style="max-width:880px;margin-inline:auto;padding-inline:var(--fl-px)">
<p class="fl-section-label" data-i18n="features_ar.developer">Developer</p>
<h2 id="ar-dev-h2" data-i18n="features_ar.add_ar_in_two_lines">Add AR in two lines</h2>
<p style="color:var(--fl-sub);margin-bottom:1.5rem" data-i18n-html="features_ar.add_the_attribute_to_your_tag_the">
Add the <code>ar</code> attribute to your <code><agent-3d></code> tag. The AR button
appears automatically on supported mobile devices. Nothing else needed.
</p>
<div style="background:#0a0a14;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:20px 24px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.7;overflow-x:auto;margin-bottom:1.5rem">
<span style="color:#7a85a8" data-i18n="features_ar.script"><script</span> <span style="color:#a78bfa" data-i18n="features_ar.type">type</span>=<span style="color:#86efac" data-i18n="features_ar.module">"module"</span>
<br> <span style="color:#a78bfa" data-i18n="features_ar.src">src</span>=<span style="color:#86efac" data-i18n="features_ar.https_three_ws_agent_3d_latest_agent">"https://three.ws/agent-3d/latest/agent-3d.js"</span>
<br><span style="color:#7a85a8" data-i18n="features_ar.text">></script></span>
<br><br>
<span style="color:#7a85a8" data-i18n="features_ar.agent_3d"><agent-3d</span>
<br> <span style="color:#a78bfa" data-i18n="features_ar.id">id</span>=<span style="color:#86efac" data-i18n="features_ar.your_agent_id">"your-agent-id"</span>
<br> <span style="color:#a78bfa" data-i18n="features_ar.ar">ar</span>
<br><span style="color:#7a85a8" data-i18n="features_ar.text_2">></agent-3d></span>
</div>
<p style="color:var(--fl-sub);margin-bottom:0.5rem" data-i18n-html="features_ar.for_iframe_embeds_add_to_the_attribute">
For iframe embeds, add <code>xr-spatial-tracking</code> to the <code>allow</code> attribute:
</p>
<div style="background:#0a0a14;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:20px 24px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.7;overflow-x:auto">
<span style="color:#7a85a8" data-i18n="features_ar.iframe"><iframe</span>
<br> <span style="color:#a78bfa" data-i18n="features_ar.src_2">src</span>=<span style="color:#86efac" data-i18n="features_ar.https_three_ws_embed_avatar_your_id">"https://three.ws/embed/avatar/YOUR_ID"</span>
<br> <span style="color:#a78bfa" data-i18n="features_ar.allow">allow</span>=<span style="color:#86efac" data-i18n="features_ar.microphone_camera_xr_spatial_tracking_fullsc">"microphone; camera; xr-spatial-tracking; fullscreen"</span>
<br><span style="color:#7a85a8" data-i18n="features_ar.text_3">></iframe></span>
</div>
<div style="margin-top:1.5rem;display:flex;gap:12px;flex-wrap:wrap">
<a href="/docs/ar" class="fl-btn-primary" style="font-size:14px" data-i18n="features_ar.ar_docs">AR docs →</a>
<a href="/docs/tutorials/view-in-ar" class="fl-btn-ghost" style="font-size:14px" data-i18n="features_ar.tutorial_place_model_in_ar">Tutorial: Place model in AR</a>
<a href="/docs/web-component" class="fl-btn-ghost" style="font-size:14px" data-i18n="features_ar.web_component_reference">Web component reference</a>
</div>
</section>
<!-- Use cases -->
<section class="fl-highlights fl-section" aria-labelledby="ar-usecases-h2">
<h2 id="ar-usecases-h2" data-i18n="features_ar.what_people_use_ar_for">What people use AR for</h2>
<div class="fl-cards">
<div class="fl-card">
<span class="fl-card-icon" aria-hidden="true">⬡</span>
<h3 data-i18n="features_ar.product_visualization">Product visualization</h3>
<p data-i18n="features_ar.place_a_forged_3d_product_on_a">
Place a forged 3D product on a physical shelf before committing to
production. See the exact dimensions and finish in your actual space.
</p>
</div>
<div class="fl-card">
<span class="fl-card-icon" aria-hidden="true">⬡</span>
<h3 data-i18n="features_ar.agent_presence">Agent presence</h3>
<p data-i18n="features_ar.your_ai_agent_with_its_3d_body">
Your AI agent — with its 3D body and live personality — standing in the
same room as you. Talk to it in AR, get real responses back.
</p>
</div>
<div class="fl-card">
<span class="fl-card-icon" aria-hidden="true">⬡</span>
<h3 data-i18n="features_ar.spatial_storytelling">Spatial storytelling</h3>
<p data-i18n="features_ar.place_characters_props_and_scenes_in_real">
Place characters, props, and scenes in real environments for content
creation, marketing, or interactive experiences.
</p>
</div>
<div class="fl-card">
<span class="fl-card-icon" aria-hidden="true">⬡</span>
<h3 data-i18n="features_ar.scale_verification">Scale verification</h3>
<p data-i18n="features_ar.see_exactly_how_large_a_model_is">
See exactly how large a model is at real-world scale before committing
to a 3D print, physical mockup, or production run.
</p>
</div>
</div>
</section>
<!-- FAQ -->
<section class="fl-faq fl-section" aria-labelledby="ar-faq-h2">
<h2 id="ar-faq-h2" data-i18n="features_ar.frequently_asked_questions">Frequently asked questions</h2>
<div class="fl-faq-list">
<div class="fl-faq-item">
<button class="fl-faq-q" aria-expanded="false" aria-controls="ar-faq-1">
Do I need to install an app?
<svg class="fl-faq-chevron" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M4 6l4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
</svg>
</button>
<div class="fl-faq-a" id="ar-faq-1" role="region">
No. iPhone uses iOS Quick Look, which is built into Safari — no download.
Android uses WebXR or Google Scene Viewer via Chrome. ARCore is the only
dependency, and Chrome prompts you to install it if it's missing.
</div>
</div>
<div class="fl-faq-item">
<button class="fl-faq-q" aria-expanded="false" aria-controls="ar-faq-2">
Which browser do I need?
<svg class="fl-faq-chevron" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M4 6l4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
</svg>
</button>
<div class="fl-faq-a" id="ar-faq-2" role="region">
iPhone: Safari only. Chrome on iOS uses WebKit but lacks the Quick Look
integration that triggers AR. Android: Chrome (or any Chromium-based
browser with ARCore support). Desktop browsers don't support
<code>immersive-ar</code> — use the QR code instead.
</div>
</div>
<div class="fl-faq-item">
<button class="fl-faq-q" aria-expanded="false" aria-controls="ar-faq-3">
Can I talk to my agent in AR?
<svg class="fl-faq-chevron" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M4 6l4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
</svg>
</button>
<div class="fl-faq-a" id="ar-faq-3" role="region">
Yes — when using WebXR. It's the only AR method that keeps the agent's
full runtime live. Animations play, the microphone works, skills and tools
run, and the agent tracks your head position using the XR camera. iOS
Quick Look and Scene Viewer open native viewers outside the browser, so
conversation isn't available there.
</div>
</div>
<div class="fl-faq-item">
<button class="fl-faq-q" aria-expanded="false" aria-controls="ar-faq-4">
What's the maximum model size?
<svg class="fl-faq-chevron" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M4 6l4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
</svg>
</button>
<div class="fl-faq-a" id="ar-faq-4" role="region">
iOS Quick Look handles models reliably up to about 15 MB. Scene Viewer
handles up to about 20 MB. WebXR has no hard limit, but models over 50 MB
will be slow to download on mobile networks. three.ws Forge models are
optimized at generation time and typically fall under 10 MB.
</div>
</div>
<div class="fl-faq-item">
<button class="fl-faq-q" aria-expanded="false" aria-controls="ar-faq-5">
How do I add AR to my own website?
<svg class="fl-faq-chevron" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<path d="M4 6l4 4 4-4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
</svg>
</button>
<div class="fl-faq-a" id="ar-faq-5" role="region">
Add the <code>ar</code> attribute to your <code><agent-3d></code>
tag. The AR button appears automatically on mobile. For iframe embeds,
add <code>allow="xr-spatial-tracking"</code> to the
<code><iframe></code>. See the
<a href="/docs/ar" data-i18n="features_ar.ar_documentation">AR documentation</a> for the full programmatic API.
</div>
</div>
</div>
</section>
<!-- CTA -->
<section class="fl-cta fl-section" aria-labelledby="ar-cta-h2">
<h2 id="ar-cta-h2" data-i18n="features_ar.try_it_on_your_phone_right_now">Try it on your phone right now</h2>
<p data-i18n="features_ar.open_any_avatar_or_forge_model_on">Open any avatar or Forge model on three.ws, switch to the AR tab, and tap Place in your space.</p>
<div class="fl-hero-actions" style="justify-content:center">
<a href="/gallery" class="fl-btn-primary" data-i18n="features_ar.browse_avatars_2">Browse avatars →</a>
<a href="/forge" class="fl-btn-ghost" data-i18n="features_ar.generate_a_model_2">Generate a model</a>
</div>
</section>
</main>
<div id="footer-container"></div>
<script src="/footer.js" defer></script>
<script>
// FAQ accordion
document.querySelectorAll('.fl-faq-q').forEach(btn => {
btn.addEventListener('click', () => {
const expanded = btn.getAttribute('aria-expanded') === 'true';
btn.setAttribute('aria-expanded', String(!expanded));
});
});
</script>
<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
<script type="module" src="/i18n.js"></script>
</body>
</html>