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
feat(ar): AR Studio — multi-model live-camera AR with in-view forging
nirholas513a08b07069
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex cfe14fc18..6e3891185 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,9 +8,11 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **AR Studio** (`/ar/studio`) — A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.- **Image to 3D — Turn a Photo into a 3D Model** (`/image-to-3d`) — Upload a photo (or up to 4 angles) and get a downloadable textured 3D model (GLB). The Forge's photo lane, opened directly — for objects and props; for faces, use Selfie to Avatar.+- **AR Studio: fill your room with 3D models, and forge new ones without leaving the camera** — Until now AR on three.ws was one model at a time: generate, view, exit. The new AR Studio at three.ws/ar/studio is a live scene through your camera where you can place as many models and avatars as you like together in your real space. Pull in your own forge creations, the community feed, or any GLB link; type a prompt and a brand-new model is generated behind the live view and drops into the room when ready. Drag to move, pinch to resize, twist to rotate, duplicate or remove any model. On Android each model gets its own world anchor in immersive AR; on iPhone the camera view with gyro look works out of the box; on desktop you arrange the scene and send it to your phone with a QR code. Your scene survives a refresh, humanoid avatars idle naturally instead of standing frozen, and a photo button captures the whole composition. (`/ar/studio`) `[feature]`- **Avatars you generate now come out truly animation-ready** — We rebuilt the auto-rigging engine that turns a generated 3D character into a living avatar. Rigging now finishes in seconds instead of stalling for 20 minutes, produces a full standard skeleton with fingers that our entire animation library (walk, wave, dance, emotes) can drive immediately, keeps the model's original textures perfectly intact, and adds the 52 facial expression shapes used for emotions and lip-sync. Every piece of the new pipeline is MIT-licensed open source, so it works for everyone, everywhere. (`/forge`) `[feature, improvement, fix]`- **Community feed hover previews no longer blend into the photo underneath** — Hovering a card in the Fresh from the Forge strip spins the actual 3D model in place. The spinning model used to render on a nearly transparent background, so it visually collided with the card's photo thumbnail and looked broken, with a stray browser tooltip on top. The preview now draws on a solid backdrop, the redundant tooltip is gone, image-to-3D cards are labeled with their engine name (Hunyuan3D) instead of an internal id, and every card can now be opened from the keyboard. (`/forge`) `[fix, improvement]`- **Creator profile pages work again, plus a site-wide reliability sweep** — A full automated sweep of every page and API endpoint on the site caught a bug that replaced creator profile pages (three.ws/u/yourname) with an error message. That is fixed. The sweep also repaired the login captcha for rate-limited sign-ins, fixed dead links in the dashboard and two blog posts, and added two dozen previously unlisted pages to the site index so search engines and the sitemap can find them. The audit now runs with deeper checks (blank-page detection, visible error detection, and link crawling) so regressions like these get caught before anyone hits them. (`/changelog`) `[fix, improvement]`+- **Forge prompt ideas are now endless, and every one forges beautifully** — The example chips, empty-stage starters, and the Surprise me button on the Forge used to rotate through a fixed list of 48 prompts. They now draw from a curated prompt generator with thousands of combinations: statues, figurines, potted plants, crystals, food, crafted props, and cozy miniatures, each paired only with materials and finishes the 3D engine renders well. Every visit opens with a fresh set, and the prompt coach no longer mistakes words like mushroom for a scene request. (`/forge`) `[improvement]`- **Image to 3D gets its own front door** — Turning a photo into a 3D model has worked in the Forge for a while, but it hid behind a page titled Text to 3D, and the only photo surface people could find was Selfie to Avatar. There is now a dedicated Image to 3D page (three.ws/image-to-3d) that opens the Forge with the photo tab already selected, an Image to 3D link in the main navigation and footers, and clear pointers between the selfie tools (for making an avatar of you) and Image to 3D (for making a model of any object). The Forge and its feature page are also retitled to say what they actually do: text and images. (`/image-to-3d`) `[improvement]`- **Image-to-3D leaps forward: true PBR materials on a flagship GPU** — The Forge realism engine (Hunyuan3D 2.1) is now live on a new flagship-class GPU (NVIDIA RTX PRO 6000 Blackwell, 96 GB). High-tier image-to-3D generations now come out with true physically-based materials: real metal, roughness, and color maps that catch light like photographed objects instead of flat plastic. The new hardware is also dramatically faster; the full shape-plus-texture pass finished in about a minute in our live verification, where the previous GPU class could not even load the model. Alongside it, every 3D generation service is healthy again and all of yesterday’s reliability fixes are fully rolled out across the fleet. (`/forge`) `[feature, improvement, infra]`- **Paid API calls no longer fail when two agents buy the same-priced service at once** — Since July 9, a few hundred paid x402 calls a day were answered with a 502 after the buyer's USDC transfer was rejected on Solana. Two payments for the same price, signed in the same few-second window, could compile to byte-identical transactions, and only the first one could ever land. Every payment now carries its own tiny priority-fee fingerprint, so simultaneous same-priced purchases each settle cleanly, and settlement errors now name their real cause in our logs so future issues surface faster. `[fix]`diff --git a/STRUCTURE.md b/STRUCTURE.mdindex 1a74cb9d3..968c702ea 100644--- a/STRUCTURE.md+++ b/STRUCTURE.md@@ -46,6 +46,7 @@ bottom.| Spatial MCP (3D as a native response type) | Spec [specs/SPATIAL_MCP.md](specs/SPATIAL_MCP.md), pure validator/builder [api/_lib/spatial-mcp.js](api/_lib/spatial-mcp.js), validator tool [api/_mcp3d/tools/spatial.js](api/_mcp3d/tools/spatial.js) (`validate_spatial_response`, free), reference renderer [public/spatial-mcp/spatial-renderer.js](public/spatial-mcp/spatial-renderer.js) + demo [public/spatial-mcp/index.html](public/spatial-mcp/index.html) `→ /spatial-mcp`, docs [docs/spatial-mcp.md](docs/spatial-mcp.md). | Live · both stores | Open (CC0) shape for returning a live, interactive 3D scene as a first-class MCP tool result (scene GLB, camera, environment, animation, AR handoff, affordances) instead of a URL. Every three.ws 3D generator emits a conformant artifact under `structuredContent.spatial`; the validator returns actionable errors, not a boolean; the framework-free reference renderer displays any conformant payload — including one transformed from a foreign tool result (portability proof at `/spatial-mcp`). Zero coin surface — reusable in the OpenAI free app. Tests: [tests/spatial-mcp.test.js](tests/spatial-mcp.test.js). Evidence: [prompts/store-submissions/_generated/spatial-mcp/](prompts/store-submissions/_generated/spatial-mcp/). Store-submission prompt 20. || AR-ready exports ("View in your space") | Device-routing core [api/_lib/ar-launch.js](api/_lib/ar-launch.js), UA-branched launch endpoint [api/ar.js](api/ar.js) `→ /api/ar`, MCP tool [api/_mcp3d/tools/ar.js](api/_mcp3d/tools/ar.js) (`export_ar`, free), in-viewer AR button [public/viewer.html](public/viewer.html), docs [docs/ar.md](docs/ar.md). | Live · both stores | `GET /api/ar?src=<glb>` branches on the request User-Agent server-side: iOS → Apple Quick Look (USDZ generated from the GLB on the fly by model-viewer's three.js USDZExporter — real conversion, no server USD tooling), Android → 302 Google Scene Viewer ARCore intent with browser fallback, desktop → WebGL viewer. Bad input rejected at the boundary with a designed error page. `export_ar` returns the AR launch link + a conformant Spatial-MCP artifact; response is OpenAI-clean (no ids/coin surface). `kind=avatar` is the living-agent lane: the launch page leads with a "Bring it to life" handoff into `/irl?avatar=<glb>` (avatar-producing tools return `irlUrl` automatically), and Android serves the launch page instead of the blind Scene Viewer redirect so the living path stays visible. Shared links unfurl: the launch page's `og:image` points at `GET /api/render/glb?glbUrl=` ([api/render/glb.js](api/render/glb.js), server-side PNG of the actual model, CDN-cached a day) and the page carries "Create your own" → `/ar` conversion CTAs. Tests: [tests/ar-export.test.js](tests/ar-export.test.js). Evidence: [prompts/store-submissions/_generated/ar/](prompts/store-submissions/_generated/ar/). Store-submission prompt 21. || AR Forge (prompt → model → your room) | [public/ar-forge.html](public/ar-forge.html) `→ /ar` (self-contained page, CDN model-viewer + local meshopt decoder, no Vite registration needed; vercel route sets `xr-spatial-tracking` permissions-policy) | Live | Mobile-first app: one prompt hits the free NVIDIA lane (`POST /api/forge {backend:"nvidia"}`, poll `?job=`), the result renders in an AR-capable `<model-viewer>` with "View in your space" (WebXR / Scene Viewer / Quick Look). Non-AR devices get a QR handoff to `GET /api/ar?src=` (server-side UA routing) plus a copyable `/viewer?src=` share link. Deep link `/ar?src=<glb>&title=` reopens any shared model; recent forges persist in localStorage. Designed idle/working/failed/result states; https-only GLB guard. |+| AR Studio (multi-model live camera scene) | [pages/ar-studio.html](pages/ar-studio.html) `→ /ar/studio` + [src/ar-studio.js](src/ar-studio.js), multi-anchor WebXR session [src/ar/multi-place.js](src/ar/multi-place.js), pure scene math [src/ar/studio-scene.js](src/ar/studio-scene.js) | Live | The standalone multi-model AR surface: place ANY number of models/avatars into one live camera view (every earlier AR lane was single-model). Model sources: in-view forge (`POST /api/forge {backend:"nvidia"}` runs behind the live camera, result drops into the room), the forge gallery (`/api/forge-gallery` — yours + community tabs), recent forges (localStorage, shared with `/ar`), a pasted GLB link, or repeatable `?src=` deep links (https/relative only). Rendering ladder: WebXR immersive-ar with one XRAnchor per placed model + always-armed reticle (Android), getUserMedia passthrough + gyro world-lock (iOS/everywhere), grid preview + drag-look + QR handoff (desktop). Gestures: tap select, drag move, pinch resize, two-finger twist rotate; per-model duplicate/rotate/remove, clear-with-undo. Humanoids with no baked clips idle via the universal retarget ([src/irl/pin-idle.js](src/irl/pin-idle.js)); scene persists in localStorage and round-trips through the QR share URL. Photo capture composites camera + WebGL ([src/irl/share-frame.js](src/irl/share-frame.js)). Tests: [tests/ar-studio-scene.test.js](tests/ar-studio-scene.test.js). || IRL (agents in the real world) | [pages/irl.html](pages/irl.html) `→ /irl` + [src/irl.js](src/irl.js), WebXR placement [src/ar/webxr.js](src/ar/webxr.js) + pinch [src/ar/pinch-scale.js](src/ar/pinch-scale.js), animated Quick Look bake [src/usdz-animated.js](src/usdz-animated.js) (static fallback [src/usdz-pipeline.js](src/usdz-pipeline.js)), backend [api/irl/](api/irl) | Live | Pin an agent at a real GPS spot; discovery is presence-proof-gated ([docs/irl/THREAT-MODEL.md](docs/irl/THREAT-MODEL.md)). **Place in AR** leads the dock on AR-capable devices: WebXR hit-test anchoring on Android with two-finger pinch resize (25%..400%) persisted to the pin (`anchor_scale`; the pinch lands as a follow-up `PATCH /api/irl/pins {id, scale}` after the placement tap), and ARKit Quick Look on iOS with the idle clip baked into the USDZ so the agent moves instead of standing in a T-pose. Discovered pins are equally alive in the in-page camera view: every mounted humanoid GLB plays the retargeted idle clip via a per-pin mixer ([src/irl/pin-idle.js](src/irl/pin-idle.js), phase-randomized, LOD-bounded), camera-aware gaze composes on top of the running animation, and the scene renders with ACES tone mapping + IBL + soft shadows (e2e: [tests/e2e/irl-pin-idle.spec.js](tests/e2e/irl-pin-idle.spec.js)). Inbound `/irl?avatar=<glb>` is the living-agent handoff from `GET /api/ar?…&kind=avatar` (explicit `?avatar=` wins over a saved session). Money Drops and World Lines: [docs/irl.md](docs/irl.md). SDK: [packages/irl/](packages/irl). **Share** ([src/irl/share-frame.js](src/irl/share-frame.js), [api/irl/share.js](api/irl/share.js), [api/irl/share/[token].js](api/irl/share/%5Btoken%5D.js)) mints a permanent, unfurlable `/irl/s/:token` link from the captured AR photo for the pin you just placed — never a coordinate, owner-gated, falls back to the plain native share sheet with no active pin. **Analytics** ([api/_lib/irl-analytics.js](api/_lib/irl-analytics.js), [api/irl/analytics.js](api/irl/analytics.js)) is the first site-wide usage rollup for the feature — pins placed, nearby reads, placement method, shares, drop claims — rendered at [/admin/irl-analytics](pages/admin/irl-analytics.html), aged out by the existing hourly reaper. || Verifiable 3D provenance (content credentials) | Spec [specs/PROVENANCE_3D.md](specs/PROVENANCE_3D.md), pure core [api/_lib/provenance-3d.js](api/_lib/provenance-3d.js), Solana anchor [api/_lib/provenance-anchor.js](api/_lib/provenance-anchor.js), MCP tools [api/_mcp3d/tools/provenance.js](api/_mcp3d/tools/provenance.js) (`verify_provenance` free, `anchor_provenance` paid $0.05), free REST verify [api/provenance.js](api/provenance.js) `→ /api/provenance`, viewer badge [public/viewer.html](public/viewer.html), docs [docs/provenance.md](docs/provenance.md). | Live (verify) · anchor gated on issuer key + devnet funds | C2PA-style signed content credentials for AI 3D: creator, prompt, model/provider, lineage, timestamp, and the GLB's sha256, ed25519-signed by the three.ws issuer with the credential hash anchored on Solana. Free public `verify_provenance` / `GET /api/provenance?src=…` recompute the hash and return `verified | tampered | unknown` (a single changed byte → tampered); the verify path and response are coin-clean (both stores). `anchor_provenance` signs + writes the SPL Memo anchor + stores the credential in R2. Tests: [tests/provenance-3d.test.js](tests/provenance-3d.test.js). Evidence: [prompts/store-submissions/_generated/provenance/](prompts/store-submissions/_generated/provenance/). Store-submission prompt 19. || Sperax partnership + SperaxOS plugin | [pages/sperax.html](pages/sperax.html) `→ /sperax`, plugin [public/sperax/](public/sperax/README.md), manifest `→ /.well-known/sperax-plugin.json`, tools [api/chat-plugin/[tool].js](api/chat-plugin/%5Btool%5D.js) `→ /api/chat-plugin/*`, panel `→ /sperax/iframe/` | In-repo · Live | Partnership landing for the SperaxOS integration: three.ws ships as a standalone `plugin.delivery` plugin that gives a SperaxOS agent an embodied 3D avatar (speak/gesture/emote/render_agent), bound to an ERC-8004 identity, settling over Base x402. Launch offer: free AI credits for three.ws users on [chat.sperax.io](https://chat.sperax.io) — page explains what it is and how to claim. Blog: [/blog/three-ws-speraxusd-integration](blog/three-ws-speraxusd-integration.html) |diff --git a/data/changelog.json b/data/changelog.jsonindex 780646976..2644be378 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,15 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-07-17",+ "title": "AR Studio: fill your room with 3D models, and forge new ones without leaving the camera",+ "summary": "Until now AR on three.ws was one model at a time: generate, view, exit. The new AR Studio at three.ws/ar/studio is a live scene through your camera where you can place as many models and avatars as you like together in your real space. Pull in your own forge creations, the community feed, or any GLB link; type a prompt and a brand-new model is generated behind the live view and drops into the room when ready. Drag to move, pinch to resize, twist to rotate, duplicate or remove any model. On Android each model gets its own world anchor in immersive AR; on iPhone the camera view with gyro look works out of the box; on desktop you arrange the scene and send it to your phone with a QR code. Your scene survives a refresh, humanoid avatars idle naturally instead of standing frozen, and a photo button captures the whole composition.",+ "tags": [+ "feature"+ ],+ "link": "/ar/studio"+ },{"date": "2026-07-17","title": "The Money Pulse is beating again",@@ -14174,6 +14183,15 @@"fix"],"link": "/image-to-3d"+ },+ {+ "date": "2026-07-17",+ "title": "Forge prompt ideas are now endless, and every one forges beautifully",+ "summary": "The example chips, empty-stage starters, and the Surprise me button on the Forge used to rotate through a fixed list of 48 prompts. They now draw from a curated prompt generator with thousands of combinations: statues, figurines, potted plants, crystals, food, crafted props, and cozy miniatures, each paired only with materials and finishes the 3D engine renders well. Every visit opens with a fresh set, and the prompt coach no longer mistakes words like mushroom for a scene request.",+ "tags": [+ "improvement"+ ],+ "link": "/forge"}]}diff --git a/pages/ar-studio.html b/pages/ar-studio.htmlindex 5b1b8ae76..6440482be 100644--- a/pages/ar-studio.html+++ b/pages/ar-studio.html@@ -13,14 +13,14 @@<meta property="og:url" content="https://three.ws/ar/studio" /><meta property="og:title" content="AR Studio · three.ws" /><meta property="og:description" content="Place any number of 3D models in your real space, and forge new ones by prompt without leaving the camera." />- <meta property="og:image" content="https://three.ws/api/page-og?s=labs&t=AR+Studio&d=A+live+multi-model+AR+scene+through+your+camera%3A+place+any+GLB%2C+your+forge+creations%2C+or+community+models+together+in+your+room+%E2%80%94+and+generate+new+ones+by+prompt+without+leaving+the+view.&p=%2Far%2Fstudio" />+ <meta property="og:image" content="https://three.ws/api/page-og?s=labs&t=AR+Studio&d=A+live+multi-model+AR+scene+through+your+camera%3A+place+any+number+of+3D+models+and+avatars+in+your+real+space%2C+pull+in+your+forge+creations%2C+community+models%2C+o&p=%2Far%2Fstudio" /><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:site" content="@trythreews" /><meta name="twitter:title" content="AR Studio · three.ws" /><meta name="twitter:description" content="Place any number of 3D models in your real space, and forge new ones by prompt without leaving the camera." />- <meta name="twitter:image" content="https://three.ws/api/page-og?s=labs&t=AR+Studio&d=A+live+multi-model+AR+scene+through+your+camera%3A+place+any+GLB%2C+your+forge+creations%2C+or+community+models+together+in+your+room+%E2%80%94+and+generate+new+ones+by+prompt+without+leaving+the+view.&p=%2Far%2Fstudio" />+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=labs&t=AR+Studio&d=A+live+multi-model+AR+scene+through+your+camera%3A+place+any+number+of+3D+models+and+avatars+in+your+real+space%2C+pull+in+your+forge+creations%2C+community+models%2C+o&p=%2Far%2Fstudio" /><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebApplication","name":"AR Studio","url":"https://three.ws/ar/studio","applicationCategory":"DesignApplication","operatingSystem":"Any","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"A live multi-model AR studio: place any number of 3D models in your real space through your camera and generate new ones by prompt without leaving the view.","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script><link rel="icon" href="/favicon.ico" sizes="any" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" />@@ -42,6 +42,9 @@--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;}* { box-sizing: border-box; }+ /* Class display rules (flex/grid) must never override the hidden attribute —+ an invisible modal that still intercepts taps is a dead page. */+ [hidden] { display: none !important; }html, body { margin: 0; height: 100%; overscroll-behavior: none; }body {font-family: var(--font);@@ -313,6 +316,9 @@.ars-sel-name { max-width: 20vw; }}</style>++ <meta property="og:locale" content="en_US">+ <meta property="og:image:alt" content="AR Studio — three.ws"></head><body><video id="ars-video" playsinline muted autoplay aria-hidden="true"></video>diff --git a/public/changelog.json b/public/changelog.jsonindex f5561387e..a7545a547 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-17T09:30:15.854Z",+ "generated_at": "2026-07-17T09:35:27.119Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -26,6 +26,16 @@"launch"]},+ {+ "date": "2026-07-17",+ "type": "update",+ "title": "AR Studio: fill your room with 3D models, and forge new ones without leaving the camera",+ "summary": "Until now AR on three.ws was one model at a time: generate, view, exit. The new AR Studio at three.ws/ar/studio is a live scene through your camera where you can place as many models and avatars as you like together in your real space. Pull in your own forge creations, the community feed, or any GLB link; type a prompt and a brand-new model is generated behind the live view and drops into the room when ready. Drag to move, pinch to resize, twist to rotate, duplicate or remove any model. On Android each model gets its own world anchor in immersive AR; on iPhone the camera view with gyro look works out of the box; on desktop you arrange the scene and send it to your phone with a QR code. Your scene survives a refresh, humanoid avatars idle naturally instead of standing frozen, and a photo button captures the whole composition.",+ "link": "/ar/studio",+ "tags": [+ "feature"+ ]+ },{"date": "2026-07-17","type": "update",@@ -60,6 +70,16 @@"improvement"]},+ {+ "date": "2026-07-17",+ "type": "update",+ "title": "Forge prompt ideas are now endless, and every one forges beautifully",+ "summary": "The example chips, empty-stage starters, and the Surprise me button on the Forge used to rotate through a fixed list of 48 prompts. They now draw from a curated prompt generator with thousands of combinations: statues, figurines, potted plants, crystals, food, crafted props, and cozy miniatures, each paired only with materials and finishes the 3D engine renders well. Every visit opens with a fresh set, and the prompt coach no longer mistakes words like mushroom for a scene request.",+ "link": "/forge",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-07-17","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 49d0e605d..c92370cc7 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -22,6 +22,14 @@<category>launch</category><description>Upload a photo (or up to 4 angles) and get a downloadable textured 3D model (GLB). The Forge's photo lane, opened directly — for objects and props; for faces, use Selfie to Avatar.</description></item>+ <item>+ <title>AR Studio: fill your room with 3D models, and forge new ones without leaving the camera</title>+ <link>https://three.ws/ar/studio</link>+ <guid isPermaLink="false">2026-07-17:AR Studio: fill your room with 3D models, and forge new ones without leaving the camera</guid>+ <pubDate>Fri, 17 Jul 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Until now AR on three.ws was one model at a time: generate, view, exit. The new AR Studio at three.ws/ar/studio is a live scene through your camera where you can place as many models and avatars as you like together in your real space. Pull in your own forge creations, the community feed, or any GLB link; type a prompt and a brand-new model is generated behind the live view and drops into the room when ready. Drag to move, pinch to resize, twist to rotate, duplicate or remove any model. On Android each model gets its own world anchor in immersive AR; on iPhone the camera view with gyro look works out of the box; on desktop you arrange the scene and send it to your phone with a QR code. Your scene survives a refresh, humanoid avatars idle naturally instead of standing frozen, and a photo button captures the whole composition.</description>+ </item><item><title>Avatars you generate now come out truly animation-ready</title><link>https://three.ws/forge</link>@@ -46,6 +54,14 @@<category>fix</category><description>A full automated sweep of every page and API endpoint on the site caught a bug that replaced creator profile pages (three.ws/u/yourname) with an error message. That is fixed. The sweep also repaired the login captcha for rate-limited sign-ins, fixed dead links in the dashboard and two blog posts, and added two dozen previously unlisted pages to the site index so search engines and the sitemap can find them. The audit now runs with deeper checks (blank-page detection, visible error detection, and link crawling) so regressions like these get caught before anyone hits them.</description></item>+ <item>+ <title>Forge prompt ideas are now endless, and every one forges beautifully</title>+ <link>https://three.ws/forge</link>+ <guid isPermaLink="false">2026-07-17:Forge prompt ideas are now endless, and every one forges beautifully</guid>+ <pubDate>Fri, 17 Jul 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The example chips, empty-stage starters, and the Surprise me button on the Forge used to rotate through a fixed list of 48 prompts. They now draw from a curated prompt generator with thousands of combinations: statues, figurines, potted plants, crystals, food, crafted props, and cozy miniatures, each paired only with materials and finishes the 3D engine renders well. Every visit opens with a fresh set, and the prompt coach no longer mistakes words like mushroom for a scene request.</description>+ </item><item><title>Image to 3D gets its own front door</title><link>https://three.ws/image-to-3d</link>diff --git a/public/features.json b/public/features.jsonindex ab8b30b6b..4072405f6 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-17T09:07:44.542Z",+ "generated_at": "2026-07-17T09:35:27.096Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",@@ -929,6 +929,16 @@"tags": [],"showcase": true},+ {+ "path": "/ar/studio",+ "title": "AR Studio",+ "description": "A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.",+ "added": "2026-07-17",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": true+ },{"path": "/spatial-mcp","title": "Spatial MCP — reference renderer",diff --git a/public/llms-full.txt b/public/llms-full.txtindex 68c194f00..9dfba3a41 100644--- a/public/llms-full.txt+++ b/public/llms-full.txt@@ -566,6 +566,12 @@ URL: https://three.ws/arType a prompt, get a real 3D model, and place it in your room: free text-to-3D with one-tap AR on any phone (WebXR, Scene Viewer, Quick Look) and a QR handoff from desktop.+### AR Studio++URL: https://three.ws/ar/studio++A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.+### Spatial MCP — reference rendererURL: https://three.ws/spatial-mcpdiff --git a/public/llms.txt b/public/llms.txtindex 7f3d2dfbb..14e5881f3 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -108,6 +108,7 @@ Experimental features actively shipping. Expect fast iteration.- [Avatar Artifact](https://three.ws/avatar-artifact): Standalone Three.js viewer for avatar artifacts — embeddable and shareable without any wrapper page.- [glTF / GLB Viewer](https://three.ws/viewer): Preview any public glTF/GLB inline, then take it further: pose and animate it, restyle the material, build a scene, place it in AR, embed it on your site, or launch it as a pump.fun coin.- [AR Forge](https://three.ws/ar): Type a prompt, get a real 3D model, and place it in your room: free text-to-3D with one-tap AR on any phone (WebXR, Scene Viewer, Quick Look) and a QR handoff from desktop.+- [AR Studio](https://three.ws/ar/studio): A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.- [Spatial MCP — reference renderer](https://three.ws/spatial-mcp): The open standard for returning a live, interactive 3D scene as a first-class MCP tool result, with a framework-free reference renderer that displays any conformant artifact — including ones transformed from other tools.- [Playground](https://three.ws/playground): Sandbox for experimenting with agents, prompts, and 3D scenes.- [Labs Showcase](https://three.ws/labs): A curated gallery of three.ws's most powerful — and most hidden — features. Find and try things you didn't know existed.diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex 77b0f9cf5..bbfe9d5b2 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -58,7 +58,7 @@<main class="sm-wrap"><div class="sm-hero"><h1>Sitemap</h1>- <p>All 464 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>+ <p>All 465 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p><div class="sm-formats"><a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a><a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>@@ -70,7 +70,7 @@</div><div class="sm-filter"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>- <input id="sm-filter-input" type="search" placeholder="Filter 464 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />+ <input id="sm-filter-input" type="search" placeholder="Filter 465 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" /><kbd aria-hidden="true">/</kbd></div><p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>@@ -688,7 +688,7 @@<section class="sm-section" id="labs"><header>- <h2>Labs<span class="sm-count" data-count>13</span></h2>+ <h2>Labs<span class="sm-count" data-count>14</span></h2><p class="sm-section-desc">Experimental features actively shipping. Expect fast iteration.</p></header><ul class="sm-list">@@ -741,6 +741,13 @@<span class="sm-desc">Type a prompt, get a real 3D model, and place it in your room: free text-to-3D with one-tap AR on any phone (WebXR, Scene Viewer, Quick Look) and a QR handoff from desktop.</span></a></li>+ <li>+ <a href="/ar/studio">+ <span class="sm-title">AR Studio</span>+ <span class="sm-path">/ar/studio</span>+ <span class="sm-desc">A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.</span>+ </a>+ </li><li><a href="/spatial-mcp"><span class="sm-title">Spatial MCP — reference renderer</span>diff --git a/src/ar-studio.js b/src/ar-studio.jsindex 15fd04527..f99f8cfa2 100644--- a/src/ar-studio.js+++ b/src/ar-studio.js@@ -38,12 +38,13 @@ import {} from './ar/pinch-scale.js';import {deserializeScene, fitTransform, MAX_PLACEMENTS, normalizeGlbUrl,- parseSrcParams, serializeScene, spawnPointInFront, studioShareUrl,- touchAngle, twistDelta,+ parseSrcParams, serializeScene, SPAWN_DISTANCE_M, spawnPointInFront,+ studioShareUrl, touchAngle, twistDelta,} from './ar/studio-scene.js';import { renderQRToSVG } from './erc8004/qr.js';import { deriveVerticalFovDeg, DEFAULT_DIAG_FOV_DEG } from './irl/camera-fov.js';import { createLoadQueue, sharedGLTFLoader } from './irl/load-queue.js';+import { mountPinIdle } from './irl/pin-idle.js';import { clampPitch, isFiniteReading, resolveLockYaw, screenPitchDeg } from './irl/sensor-fusion.js';import { captureComposite, shareOrDownload } from './irl/share-frame.js';import { createLogger } from './shared/log.js';@@ -322,7 +323,12 @@ function loadTemplate(src) {(box.max.x - box.min.x) * fit.scale,(box.max.z - box.min.z) * fit.scale,) / 2;- return { gltf, skinned, fit, radius: Number.isFinite(radius) ? radius : 0.3 };+ const height = (box.max.y - box.min.y) * fit.scale;+ return {+ gltf, skinned, fit,+ radius: Number.isFinite(radius) ? radius : 0.3,+ height: Number.isFinite(height) ? height : 0.75,+ };});templates.set(src, t);t.then((tpl) => tplReady.set(src, tpl))@@ -334,7 +340,7 @@ function loadTemplate(src) {// Instantiate a template into a floor-ready group. Cloned per placement so ten// copies of one crate are ten independent models; SkeletonUtils handles skinned// avatars (plain .clone() breaks bone bindings).-function instantiate(tpl) {+function instantiate(tpl, src) {const inner = cloneSkinnedScene(tpl.gltf.scene);inner.scale.setScalar(tpl.fit.scale);inner.position.y = tpl.fit.yOffset;@@ -345,7 +351,14 @@ function instantiate(tpl) {mixer = new AnimationMixer(inner);mixer.clipAction(tpl.gltf.animations[0]).play();}- return { group, mixer };+ // A humanoid with no baked clips gets the universal idle retargeted onto its+ // rig (same pipeline as /irl pins) — never a bind-pose T-pose statue. Async+ // and best-effort: props and undriveable rigs resolve null and stay static.+ let idlePromise = null;+ if (!mixer && tpl.skinned) {+ idlePromise = mountPinIdle(inner, { avatarUrl: src }).catch(() => null);+ }+ return { group, mixer, idlePromise };}function makeShadow(radius) {@@ -401,11 +414,14 @@ async function addModel({ src, title = '' }, { x = null, z = null, yaw = null, sreturn null;}- const { group, mixer } = instantiate(tpl);+ const { group, mixer, idlePromise } = instantiate(tpl, url);let px = x, pz = z;if (px === null || pz === null) {+ // Tall models (avatars, statues) land further back so they don't fill+ // the frame the moment they appear.+ const dist = Math.max(SPAWN_DISTANCE_M, (tpl.height || 0) * 1.15);const fwd = camera.getWorldDirection(new Vector3());- const spot = nudgeSpawn(spawnPointInFront(camera.position, fwd));+ const spot = nudgeSpawn(spawnPointInFront(camera.position, fwd, dist));px = spot.x;pz = spot.z;}@@ -430,10 +446,17 @@ async function addModel({ src, title = '' }, { x = null, z = null, yaw = null, sgroup,shadow,mixer,+ idle: null,yaw: yawV,baseRadius: tpl.radius,spawnT: reducedMotion ? 1 : 0,};+ idlePromise?.then((mgr) => {+ if (!mgr) return;+ // Removed before the idle clip arrived → release the manager, not leak it.+ if (placements.includes(placement)) placement.idle = mgr;+ else mgr.detach();+ });group.userData._targetScale = group.scale.x;if (!reducedMotion) group.scale.setScalar(0.001);placements.push(placement);@@ -449,6 +472,8 @@ function removePlacement(p, { persist = true } = {}) {const i = placements.indexOf(p);if (i === -1) return;placements.splice(i, 1);+ p.idle?.detach();+ p.idle = null;xrSession?.release(p.group);scene.remove(p.group);if (p.shadow) {@@ -1134,18 +1159,25 @@ xrBtn?.addEventListener('click', async () => {setStatus('Model is still loading — one moment, then tap again.', { sticky: true });return null;}- const { group, mixer } = instantiate(tpl);- placements.push({+ const { group, mixer, idlePromise } = instantiate(tpl, src);+ const placement = {id: `p-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 7)}`,src,title: armedSrc?.title || '',group,shadow: null,mixer,+ idle: null,yaw: 0,baseRadius: tpl.radius,spawnT: 1,+ };+ idlePromise?.then((mgr) => {+ if (!mgr) return;+ if (placements.includes(placement)) placement.idle = mgr;+ else mgr.detach();});+ placements.push(placement);updateCount();return group;},@@ -1170,7 +1202,10 @@ xrBtn?.addEventListener('click', async () => {else setStatus(null);},onFrame: (dt) => {- for (const p of placements) p.mixer?.update(dt);+ for (const p of placements) {+ p.mixer?.update(dt);+ p.idle?.update(dt);+ }},onEnd: () => {xrSession = null;@@ -1258,6 +1293,7 @@ function tick(t) {for (const p of placements) {p.mixer?.update(dt);+ p.idle?.update(dt);if (p.spawnT < 1) {p.spawnT = Math.min(1, p.spawnT + dt * 3.2);const e = 1 - (1 - p.spawnT) ** 3; // ease-out cubicdiff --git a/tests/ar-studio-scene.test.js b/tests/ar-studio-scene.test.jsnew file mode 100644index 000000000..f6d44df55--- /dev/null+++ b/tests/ar-studio-scene.test.js@@ -0,0 +1,192 @@+// AR Studio scene math + persistence (src/ar/studio-scene.js).+//+// The contract pinned here: models always land at a believable size resting ON+// the floor, gestures never wrap the long way round, and NOTHING hostile — a+// corrupt localStorage blob, a javascript: ?src=, a NaN transform — can reach+// the scene as a loadable URL or a non-finite number. Pure math, no DOM/Three.++import { describe, expect, it } from 'vitest';++import {+ AVATAR_TARGET_HEIGHT_M,+ deserializeScene,+ fitTransform,+ MAX_PLACEMENTS,+ normalizeGlbUrl,+ parseSrcParams,+ PROP_TARGET_SIZE_M,+ SCALE_MAX,+ SCALE_MIN,+ serializeScene,+ spawnPointInFront,+ studioShareUrl,+ touchAngle,+ twistDelta,+} from '../src/ar/studio-scene.js';++const box = (w, h, d, minY = 0) => ({+ min: { x: -w / 2, y: minY, z: -d / 2 },+ max: { x: w / 2, y: minY + h, z: d / 2 },+});++describe('fitTransform', () => {+ it('normalizes a skinned model to standing height', () => {+ const { scale } = fitTransform(box(4, 18, 3), { skinned: true });+ expect(scale * 18).toBeCloseTo(AVATAR_TARGET_HEIGHT_M, 5);+ });++ it('normalizes a giant prop by its longest dimension', () => {+ const { scale } = fitTransform(box(10, 2, 3));+ expect(scale * 10).toBeCloseTo(PROP_TARGET_SIZE_M, 5);+ });++ it('keeps an already real-world-sized model at natural scale', () => {+ // A 1 m crate is within the 0.5–2x band of the 0.75 m target: don't touch it.+ expect(fitTransform(box(1, 1, 1)).scale).toBe(1);+ });++ it('rests the model exactly on the floor after scaling', () => {+ const b = box(10, 2, 3, -4); // lowest point 4 m below origin+ const { scale, yOffset } = fitTransform(b);+ expect(yOffset).toBeCloseTo(4 * scale, 6);+ });++ it('degrades a degenerate or hostile box to identity', () => {+ expect(fitTransform({ min: {}, max: {} })).toEqual({ scale: 1, yOffset: 0 });+ expect(fitTransform(box(0, 0, 0))).toEqual({ scale: 1, yOffset: 0 });+ expect(fitTransform({ min: { x: NaN, y: 0, z: 0 }, max: { x: 1, y: 1, z: 1 } }))+ .toEqual({ scale: 1, yOffset: 0 });+ });+});++describe('spawnPointInFront', () => {+ it('projects the look direction onto the floor at the spawn distance', () => {+ const p = spawnPointInFront({ x: 0, y: 1.5, z: 0 }, { x: 0, y: -0.2, z: -1 }, 2);+ expect(p.x).toBeCloseTo(0, 6);+ expect(p.z).toBeCloseTo(-2, 6);+ });++ it('falls back to straight ahead when looking straight down', () => {+ const p = spawnPointInFront({ x: 3, y: 1.5, z: 5 }, { x: 0, y: -1, z: 0 }, 2);+ expect(p.x).toBeCloseTo(3, 6);+ expect(p.z).toBeCloseTo(3, 6); // -Z heading from the camera position+ });+});++describe('twistDelta / touchAngle', () => {+ it('returns the signed delta for a small twist', () => {+ expect(twistDelta(0.2, 0.5)).toBeCloseTo(0.3, 9);+ expect(twistDelta(0.5, 0.2)).toBeCloseTo(-0.3, 9);+ });++ it('never spins the long way across the ±180° boundary', () => {+ const d = twistDelta(Math.PI - 0.05, -Math.PI + 0.05);+ expect(d).toBeCloseTo(0.1, 9);+ });++ it('collapses non-finite input to no rotation', () => {+ expect(twistDelta(NaN, 1)).toBe(0);+ expect(twistDelta(1, Infinity)).toBe(0);+ });++ it('touchAngle reads the pair orientation', () => {+ const t = [{ clientX: 0, clientY: 0 }, { clientX: 10, clientY: 10 }];+ expect(touchAngle(t)).toBeCloseTo(Math.PI / 4, 9);+ });+});++describe('normalizeGlbUrl', () => {+ it('accepts https URLs and site-relative paths', () => {+ expect(normalizeGlbUrl('https://cdn.three.ws/m.glb')).toBe('https://cdn.three.ws/m.glb');+ expect(normalizeGlbUrl('/avatars/default.glb')).toBe('/avatars/default.glb');+ expect(normalizeGlbUrl(' https://x.co/a.glb ')).toBe('https://x.co/a.glb');+ });++ it('rejects every non-https scheme and malformed input', () => {+ for (const bad of [+ 'http://x.co/a.glb', 'javascript:alert(1)', 'data:model/gltf-binary;base64,AAAA',+ 'blob:https://x.co/uuid', '//x.co/a.glb', 'ftp://x.co/a.glb', '', null, undefined, 42,+ ]) {+ expect(normalizeGlbUrl(bad)).toBe(null);+ }+ });+});++describe('scene (de)serialization', () => {+ const placement = (over = {}) => ({+ src: 'https://cdn.three.ws/m.glb', title: 'crate', x: 1.5, z: -2, yaw: 0.5, scale: 1.2, ...over,+ });++ it('round-trips a valid scene', () => {+ const out = deserializeScene(serializeScene([placement()]));+ expect(out).toEqual([placement()]);+ });++ it('drops entries with rejected sources on both sides', () => {+ const json = serializeScene([placement(), placement({ src: 'javascript:alert(1)' })]);+ expect(deserializeScene(json)).toHaveLength(1);+ const hostile = JSON.stringify({ v: 1, items: [{ src: 'data:x', x: 0, z: 0 }] });+ expect(deserializeScene(hostile)).toEqual([]);+ });++ it('degrades corrupt/foreign payloads to an empty scene', () => {+ expect(deserializeScene('not json {')).toEqual([]);+ expect(deserializeScene(null)).toEqual([]);+ expect(deserializeScene(JSON.stringify({ v: 99, items: [] }))).toEqual([]);+ expect(deserializeScene(JSON.stringify({ v: 1, items: 'x' }))).toEqual([]);+ });++ it('drops NaN transforms and clamps scale + position', () => {+ const raw = JSON.stringify({+ v: 1,+ items: [+ { src: 'https://x.co/a.glb', x: 'nope', z: 0 },+ { src: 'https://x.co/b.glb', x: 999, z: -999, scale: 99, yaw: 'nope' },+ ],+ });+ const out = deserializeScene(raw);+ expect(out).toHaveLength(1);+ expect(out[0]).toMatchObject({ x: 50, z: -50, scale: SCALE_MAX, yaw: 0 });+ expect(out[0].scale).toBeLessThanOrEqual(SCALE_MAX);+ expect(SCALE_MIN).toBeLessThan(SCALE_MAX);+ });++ it('caps the scene at MAX_PLACEMENTS on restore', () => {+ const items = Array.from({ length: MAX_PLACEMENTS + 10 }, (_, i) => ({+ src: `https://x.co/${i}.glb`, x: 0, z: 0,+ }));+ expect(deserializeScene(JSON.stringify({ v: 1, items }))).toHaveLength(MAX_PLACEMENTS);+ });+});++describe('parseSrcParams', () => {+ it('pairs repeated src params with positional titles', () => {+ const q = new URLSearchParams('src=https://x.co/a.glb&title=A&src=https://x.co/b.glb&title=B');+ expect(parseSrcParams(q)).toEqual([+ { src: 'https://x.co/a.glb', title: 'A' },+ { src: 'https://x.co/b.glb', title: 'B' },+ ]);+ });++ it('skips invalid sources without shifting the rest', () => {+ const q = new URLSearchParams('src=javascript:x&src=https://x.co/b.glb');+ expect(parseSrcParams(q)).toEqual([{ src: 'https://x.co/b.glb', title: '' }]);+ });+});++describe('studioShareUrl', () => {+ it('embeds unique sources up to the cap', () => {+ const url = studioShareUrl('https://three.ws', [+ { src: 'https://x.co/a.glb', title: 'A' },+ { src: 'https://x.co/a.glb', title: 'A again' }, // duplicate source+ { src: 'https://x.co/b.glb', title: 'B' },+ ]);+ const q = new URL(url).searchParams;+ expect(q.getAll('src')).toEqual(['https://x.co/a.glb', 'https://x.co/b.glb']);+ });++ it('returns the bare studio URL for an empty or invalid scene', () => {+ expect(studioShareUrl('https://three.ws', [])).toBe('https://three.ws/ar/studio');+ expect(studioShareUrl('https://three.ws', [{ src: 'data:x' }])).toBe('https://three.ws/ar/studio');+ });+});