Skip to content

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.

feat(tour): enhance guide avatar locomotion for realistic movement and pacing

fudjia9800af7c3aef
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 74e3261d1..dcf9afa1a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -54,7 +54,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **The 3D asset pipeline is now purchasable stage-by-stage** — Every working stage of the platform's 3D pipeline is now its own pay-per-call x402 endpoint, so an agent can buy exactly the step it needs and get a finished asset URL back in one call — no account, no API key. Rig a static model into an animation-ready one ($0.05), remesh or retopologize to a clean topology ($0.03), make a mesh game-ready to a poly budget ($0.03), geometrically restyle it — voxel, brick, voronoi, low-poly ($0.03), or strip an image's background to a transparent PNG for image→3D ($0.01). Each call validates your input, runs the real worker, checks the output is a valid asset, and hands back a durable first-party URL — and if anything fails, you're never charged. Nobody else in the x402 ecosystem sells a 3D asset pipeline. (`/docs/3d-pipeline`) `[feature]`
- **The animation library API now pages, so it stays fast as the catalog grows** — The motion library is heading past its current 2,800+ clips as we add generatively-produced animations. Its public API (GET /api/animations/library) can now return the catalog in bounded pages — pass ?limit and ?offset and page until there's no next_offset — so a single response never balloons no matter how large the library gets. The /animations gallery already fetches the catalog this way. Calling it with no parameters still returns the whole list exactly as before, so nothing built on the old behavior breaks. (`/animations`) `[improvement, infra]`
- **The free 3D Studio in ChatGPT stays up even when our rate-limiter has a blip** — The free 3D Studio generates entirely on no-cost engines, so there's no spend to protect by shutting it off. We fixed a case where a hiccup in the rate-limiting backend could make the studio refuse every generation with a "try again shortly" — an outage of a free feature for no reason. Its usage caps now stay enforced when everything is healthy but step aside during a backend blip, so a prompt still returns your model. Nothing about paid features changed: those still stop safely if the same backend is unavailable. `[fix]`
-- **The tour guide now turns to face wherever it walks** — The guide avatar in the product tour used to only tilt slightly left or right. Now it turns in every direction — facing left, right, toward you, or away — as it walks across the page to point at each feature, the same all-directions turning the robot already had in Walk, Stroll, and Platformer modes. It reads as a character genuinely walking to its next spot instead of sliding there. (`/tour`) `[improvement]`
+- **The tour guide now turns and walks like a real character** — Two fixes to the guide avatar in the product tour. It now turns in every direction — facing left, right, toward you, or away — as it walks to each feature, the same all-directions turning the robot already had in Walk, Stroll, and Platformer modes, instead of the old slight left/right tilt. And its stride now keeps pace with its steps: the walk animation speeds up or slows to match how fast it's actually moving, so its feet plant on the ground instead of gliding. It reads as a character genuinely walking to its next spot rather than sliding there. (`/tour`) `[improvement]`
- **three.ws 3D API: free text→3D + inspection for AI agents, with pro tiers** — One URL now discovers the whole free, keyless 3D API for agents. GET /api/3d returns every free endpoint — turn a text prompt into a real GLB (/api/3d/generate) and validate/optimize any glTF/GLB (/api/3d/inspect) — with a live example each, plus the paid ladder it graduates to. GET /api/3d/openapi.json is a real OpenAPI 3.1 spec generated straight from the catalog, so LangChain, openapi-generator, and Swagger UI get typed tools with no key and no account. A new docs page at /3d shows a hero, a live endpoint table, a runnable quickstart with a "run it live" inspection console, an embedded 3D viewer of a real model, and a clear free→paid path: free draft + inspect → Forge Pro quality tiers → animation-ready Rigged Avatars. No other agent-payments platform gives away 3D generation and inspection. (`/3d`) `[feature, docs]`
- **three.ws 3D Studio for the GPT Store — generate 3D models in ChatGPT, free** — You can now turn a text prompt into a real, downloadable 3D model right inside ChatGPT. The three.ws 3D Studio custom GPT is backed by a free, keyless REST endpoint — describe something like "a low-poly fox" or "a ceramic robot figurine" and get back a GLB you can open in Blender, Unity, Godot, or three.js, plus a browser viewer link. No account, no key, no cost. Every prompt is screened by a content-safety filter so it stays appropriate for all ages, and the model file is served from a public URL so it's easy to download and share. `[feature]`
- **three.ws 3D Studio prepped for the OpenAI ChatGPT App Directory** — We assembled the submission package for our free 3D Studio as a ChatGPT app: text-to-3D, avatars, and one-step rigged characters that render in an interactive viewer right in the chat — no account, no key, no payment. A full policy audit confirmed the app is crypto-free, collects no personal data, ships correct tool labels, and stays age-appropriate with a content-safety filter on every generation. `[docs, security]`
diff --git a/data/changelog.json b/data/changelog.json
index 51037d4b0..b5895ec7f 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -21,8 +21,8 @@
},
{
"date": "2026-07-07",
- "title": "The tour guide now turns to face wherever it walks",
- "summary": "The guide avatar in the product tour used to only tilt slightly left or right. Now it turns in every direction — facing left, right, toward you, or away — as it walks across the page to point at each feature, the same all-directions turning the robot already had in Walk, Stroll, and Platformer modes. It reads as a character genuinely walking to its next spot instead of sliding there.",
+ "title": "The tour guide now turns and walks like a real character",
+ "summary": "Two fixes to the guide avatar in the product tour. It now turns in every direction — facing left, right, toward you, or away — as it walks to each feature, the same all-directions turning the robot already had in Walk, Stroll, and Platformer modes, instead of the old slight left/right tilt. And its stride now keeps pace with its steps: the walk animation speeds up or slows to match how fast it's actually moving, so its feet plant on the ground instead of gliding. It reads as a character genuinely walking to its next spot rather than sliding there.",
"tags": [
"improvement"
],
diff --git a/public/changelog.json b/public/changelog.json
index b724da46d..9046d983b 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-07T22:24:56.382Z",
+ "generated_at": "2026-07-07T23:03:57.701Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -506,8 +506,8 @@
{
"date": "2026-07-07",
"type": "update",
- "title": "The tour guide now turns to face wherever it walks",
- "summary": "The guide avatar in the product tour used to only tilt slightly left or right. Now it turns in every direction — facing left, right, toward you, or away — as it walks across the page to point at each feature, the same all-directions turning the robot already had in Walk, Stroll, and Platformer modes. It reads as a character genuinely walking to its next spot instead of sliding there.",
+ "title": "The tour guide now turns and walks like a real character",
+ "summary": "Two fixes to the guide avatar in the product tour. It now turns in every direction — facing left, right, toward you, or away — as it walks to each feature, the same all-directions turning the robot already had in Walk, Stroll, and Platformer modes, instead of the old slight left/right tilt. And its stride now keeps pace with its steps: the walk animation speeds up or slows to match how fast it's actually moving, so its feet plant on the ground instead of gliding. It reads as a character genuinely walking to its next spot rather than sliding there.",
"link": "/tour",
"tags": [
"improvement"
diff --git a/public/changelog.xml b/public/changelog.xml
index cab7350ba..f7cdd2298 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -391,12 +391,12 @@
<description>The free 3D Studio generates entirely on no-cost engines, so there's no spend to protect by shutting it off. We fixed a case where a hiccup in the rate-limiting backend could make the studio refuse every generation with a &quot;try again shortly&quot; — an outage of a free feature for no reason. Its usage caps now stay enforced when everything is healthy but step aside during a backend blip, so a prompt still returns your model. Nothing about paid features changed: those still stop safely if the same backend is unavailable.</description>
</item>
<item>
- <title>The tour guide now turns to face wherever it walks</title>
+ <title>The tour guide now turns and walks like a real character</title>
<link>https://three.ws/tour</link>
- <guid isPermaLink="false">2026-07-07:The tour guide now turns to face wherever it walks</guid>
+ <guid isPermaLink="false">2026-07-07:The tour guide now turns and walks like a real character</guid>
<pubDate>Tue, 07 Jul 2026 12:00:00 GMT</pubDate>
<category>improvement</category>
- <description>The guide avatar in the product tour used to only tilt slightly left or right. Now it turns in every direction — facing left, right, toward you, or away — as it walks across the page to point at each feature, the same all-directions turning the robot already had in Walk, Stroll, and Platformer modes. It reads as a character genuinely walking to its next spot instead of sliding there.</description>
+ <description>Two fixes to the guide avatar in the product tour. It now turns in every direction — facing left, right, toward you, or away — as it walks to each feature, the same all-directions turning the robot already had in Walk, Stroll, and Platformer modes, instead of the old slight left/right tilt. And its stride now keeps pace with its steps: the walk animation speeds up or slows to match how fast it's actually moving, so its feet plant on the ground instead of gliding. It reads as a character genuinely walking to its next spot rather than sliding there.</description>
</item>
<item>
<title>three.ws 3D API: free text→3D + inspection for AI agents, with pro tiers</title>
diff --git a/public/features.json b/public/features.json
index f038b8302..1ae070079 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-07T22:24:56.370Z",
+ "generated_at": "2026-07-07T23:03:57.686Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/feature-tour/guide-avatar.js b/src/feature-tour/guide-avatar.js
index 34807623c..21006da2f 100644
--- a/src/feature-tour/guide-avatar.js
+++ b/src/feature-tour/guide-avatar.js
@@ -27,10 +27,24 @@ const CANVAS_H = 240;
const MARGIN = 16;
const Z_AVATAR = 2147483300;
-// Screen-space walking pace in px/second, matched to free-roam's WALK_SPEED so a
-// click-to-walk advances the body in lockstep with the foot cycle — the guide
-// reads as genuinely walking there, never gliding/teleporting across the page.
-const WALK_SPEED = 460;
+// Locomotion is tuned in real-world m/s — like the walk world (src/walk.js) — and
+// converted to on-screen px/second at runtime using the avatar's measured
+// pixels-per-meter (see _frame). This lets the walk clip's playback rate be scaled
+// to actual travel so the feet plant instead of skating: at 85 px/m a naive
+// 460 px/s glide is ~5.4 m/s (a sprint) against a clip authored for 1.5 m/s, which
+// is exactly the mismatch that made the guide moon-walk.
+// WALK_MPS/RUN_MPS — target ground speeds; NATURAL_* — the shared clips' authored
+// ground speed at timeScale 1 (same numbers/clip as src/walk.js). The playback
+// timeScale is target ÷ natural, so stride cadence tracks travel by construction.
+const WALK_MPS = 2.7;
+const RUN_MPS = 4.2;
+const NATURAL_WALK_MPS = 1.5;
+const NATURAL_RUN_MPS = 3.4;
+const WALK_TIMESCALE = WALK_MPS / NATURAL_WALK_MPS;
+const RUN_TIMESCALE = RUN_MPS / NATURAL_RUN_MPS;
+// Fallback screen pace (px/s) used only until the avatar is framed and its real
+// pixels-per-meter is known — then _walkPx/_runPx take over.
+const WALK_SPEED = 200;
// Gravity, mirrored from the walk platformer (src/walk.js GRAVITY = -14) so the
// guide obeys the same physics the visitor sees there: it falls onto the ground
@@ -67,6 +81,11 @@ export class GuideAvatar {
this.controller = null;
this.clock = null;
this._raf = 0;
+ // Screen travel pace in px/s, derived from the avatar's on-screen scale in
+ // _frame; the fallback holds until the first framing measures it.
+ this._pxPerMeter = 0;
+ this._walkPx = WALK_SPEED;
+ this._runPx = WALK_SPEED * (RUN_MPS / WALK_MPS);
this._yaw = 0;
this._targetYaw = 0;
this._walking = false;
@@ -240,6 +259,18 @@ export class GuideAvatar {
const height = Math.max(0.6, size.y);
camera.position.set(0, height * 0.62, height * 2.2);
camera.lookAt(0, height * 0.52, 0);
+ // Measure how many on-screen pixels one world meter spans at the avatar's
+ // depth, so px/s travel can be tied to the clip's m/s cadence. The visible
+ // world height at the look-at distance maps to the displayed canvas height
+ // (getBoundingClientRect, so CSS-scaled mobile sizing is handled too).
+ const camDist = camera.position.distanceTo(new Vector3(0, height * 0.52, 0));
+ const visibleWorldH = 2 * camDist * Math.tan((camera.fov * Math.PI) / 180 / 2);
+ const displayH = this.size().h || CANVAS_H;
+ this._pxPerMeter = visibleWorldH > 0 ? displayH / visibleWorldH : 0;
+ if (this._pxPerMeter > 0) {
+ this._walkPx = WALK_MPS * this._pxPerMeter;
+ this._runPx = RUN_MPS * this._pxPerMeter;
+ }
// Feet rest at rig-local y = 0; gravity in _tick drives rig.position.y down
// to the ground plane. Spawn a touch above it so the guide drops and settles
// onto the floor when it first appears — the same fall the walk platformer
@@ -290,7 +321,7 @@ export class GuideAvatar {
const step = (now) => {
const dt = Math.min((now - last) / 1000, 0.05);
last = now;
- traveled = Math.min(dist, traveled + WALK_SPEED * dt);
+ traveled = Math.min(dist, traveled + (this._walkPx || WALK_SPEED) * dt);
this.place({ x: from.x + ux * traveled, y: from.y + uy * traveled });
if (traveled >= dist) {
this._walkRaf = 0;
@@ -360,6 +391,9 @@ export class GuideAvatar {
// toward the camera, or away — instead of the old ±40° horizontal tilt.
if (Math.hypot(dx, dy) > 1) this._targetYaw = Math.atan2(dx, dy);
this.controller?.setState(running ? 'run' : 'walk');
+ // Match clip cadence to travel so the stride ground-speed equals the body's
+ // and the feet plant (the walk world's mixer.timeScale = speed/natural trick).
+ this.controller?.setSpeed?.(running ? RUN_TIMESCALE : WALK_TIMESCALE);
this._walking = true;
clearTimeout(this._settleTimer);
this._settleTimer = setTimeout(() => this.settle(), 180);
@@ -371,6 +405,7 @@ export class GuideAvatar {
this._walking = false;
this._targetYaw = 0;
this.controller?.setState('idle');
+ this.controller?.setSpeed?.(1); // idle plays at its authored cadence
}
_spotBeside(rect) {
diff --git a/tour-sdk/src/guide-avatar.js b/tour-sdk/src/guide-avatar.js
index 2ca577d18..61b399069 100644
--- a/tour-sdk/src/guide-avatar.js
+++ b/tour-sdk/src/guide-avatar.js
@@ -28,10 +28,24 @@ const CANVAS_H = 240;
const MARGIN = 16;
const Z_AVATAR = 2147483300;
-// Screen-space walking pace in px/second, matched to free-roam's WALK_SPEED so a
-// click-to-walk advances the body in lockstep with the foot cycle — the guide
-// reads as genuinely walking there, never gliding/teleporting across the page.
-const WALK_SPEED = 460;
+// Locomotion is tuned in real-world m/s — like the walk world (src/walk.js) — and
+// converted to on-screen px/second at runtime using the avatar's measured
+// pixels-per-meter (see _frame). This lets the walk clip's playback rate be scaled
+// to actual travel so the feet plant instead of skating: at ~85 px/m a naive
+// 460 px/s glide is ~5.4 m/s (a sprint) against a clip authored for 1.5 m/s, which
+// is exactly the mismatch that made the guide moon-walk.
+// WALK_MPS/RUN_MPS — target ground speeds; NATURAL_* — the shared clips' authored
+// ground speed at timeScale 1 (same numbers/clip as src/walk.js). The playback
+// timeScale is target ÷ natural, so stride cadence tracks travel by construction.
+const WALK_MPS = 2.7;
+const RUN_MPS = 4.2;
+const NATURAL_WALK_MPS = 1.5;
+const NATURAL_RUN_MPS = 3.4;
+const WALK_TIMESCALE = WALK_MPS / NATURAL_WALK_MPS;
+const RUN_TIMESCALE = RUN_MPS / NATURAL_RUN_MPS;
+// Fallback screen pace (px/s) used only until the avatar is framed and its real
+// pixels-per-meter is known — then _walkPx/_runPx take over.
+const WALK_SPEED = 200;
// Gravity, mirrored from the walk platformer so the guide obeys the same physics
// the visitor sees there: it falls onto the ground plane and stays planted,
@@ -67,6 +81,11 @@ export class GuideAvatar {
this.controller = null;
this.clock = null;
this._raf = 0;
+ // Screen travel pace in px/s, derived from the avatar's on-screen scale in
+ // _frame; the fallback holds until the first framing measures it.
+ this._pxPerMeter = 0;
+ this._walkPx = WALK_SPEED;
+ this._runPx = WALK_SPEED * (RUN_MPS / WALK_MPS);
this._yaw = 0;
this._targetYaw = 0;
this._walking = false;
@@ -163,6 +182,18 @@ export class GuideAvatar {
const height = Math.max(0.6, size.y);
camera.position.set(0, height * 0.62, height * 2.2);
camera.lookAt(0, height * 0.52, 0);
+ // Measure how many on-screen pixels one world meter spans at the avatar's
+ // depth, so px/s travel can be tied to the clip's m/s cadence. The visible
+ // world height at the look-at distance maps to the displayed canvas height
+ // (getBoundingClientRect, so CSS-scaled mobile sizing is handled too).
+ const camDist = camera.position.distanceTo(new Vector3(0, height * 0.52, 0));
+ const visibleWorldH = 2 * camDist * Math.tan((camera.fov * Math.PI) / 180 / 2);
+ const displayH = this.size().h || CANVAS_H;
+ this._pxPerMeter = visibleWorldH > 0 ? displayH / visibleWorldH : 0;
+ if (this._pxPerMeter > 0) {
+ this._walkPx = WALK_MPS * this._pxPerMeter;
+ this._runPx = RUN_MPS * this._pxPerMeter;
+ }
// Feet rest at rig-local y = 0; gravity in _tick drives rig.position.y down
// to the ground plane. Spawn a touch above it so the guide drops and settles
// onto the floor when it first appears — the same fall the walk platformer
@@ -205,7 +236,7 @@ export class GuideAvatar {
const step = (now) => {
const dt = Math.min((now - last) / 1000, 0.05);
last = now;
- traveled = Math.min(dist, traveled + WALK_SPEED * dt);
+ traveled = Math.min(dist, traveled + (this._walkPx || WALK_SPEED) * dt);
this.place({ x: from.x + ux * traveled, y: from.y + uy * traveled });
if (traveled >= dist) {
this._walkRaf = 0;
@@ -273,6 +304,9 @@ export class GuideAvatar {
// toward the camera, or away — instead of the old ±40° horizontal tilt.
if (Math.hypot(dx, dy) > 1) this._targetYaw = Math.atan2(dx, dy);
this.controller?.setState('walk');
+ // Match clip cadence to travel so the stride ground-speed equals the body's
+ // and the feet plant (the walk world's mixer.timeScale = speed/natural trick).
+ this.controller?.setSpeed?.(WALK_TIMESCALE);
this._walking = true;
clearTimeout(this._settleTimer);
this._settleTimer = setTimeout(() => this.settle(), 180);
@@ -284,6 +318,7 @@ export class GuideAvatar {
this._walking = false;
this._targetYaw = 0;
this.controller?.setState('idle');
+ this.controller?.setSpeed?.(1); // idle plays at its authored cadence
}
_spotBeside(rect) {
diff --git a/vite.config.js b/vite.config.js
index 0d57fa8ff..486a04655 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -734,6 +734,28 @@ support: resolve(__dirname, 'pages/support.html'),
return res.end(readFileSync(file));
});
},
+ // Vite's dev-server warmup (server.preTransformRequests, on by default)
+ // crawls <script type="module"> URLs found in HTML entry points and
+ // resolves/loads/transforms them in-process via environment.warmupRequest,
+ // which never touches the connect middleware above (that middleware only
+ // intercepts real browser HTTP requests, which it does successfully).
+ // Two problems for the warmup path specifically:
+ // 1. No resolveId/load hook -> falls through to Vite's fs resolver,
+ // which can't find this virtual path on disk -> "Pre-transform
+ // error ... Does the file exist?".
+ // 2. Loading the real dist-lib bundle lets Vite's import-analysis
+ // parse it, which chokes on the bundle's own internal
+ // dynamic import("/risk-ack.js") of a /public asset (not
+ // analyzable as an ES import per Vite's rules).
+ // Neither affects real page loads (already served above), so for
+ // warmup purposes only, resolve to a no-op stub that satisfies the
+ // warmup without Vite ever parsing the real bundle.
+ resolveId(id) {
+ return /^\/agent-3d\/[^/]+\/agent-3d\.(js|umd\.cjs)$/.test(id) ? id : null;
+ },
+ load(id) {
+ return /^\/agent-3d\/[^/]+\/agent-3d\.(js|umd\.cjs)$/.test(id) ? 'export {};' : null;
+ },
transformIndexHtml: {
order: 'pre',
handler(html) {
diff --git a/walk-sdk/src/internal/load-avatar.js b/walk-sdk/src/internal/load-avatar.js
index 4d929b92c..df6bffc30 100644
--- a/walk-sdk/src/internal/load-avatar.js
+++ b/walk-sdk/src/internal/load-avatar.js
@@ -234,6 +234,12 @@ function makeEmbeddedController(root, clips, overrides, { waveMs }) {
}
}, len + 250);
},
+ // Scale playback rate of every action (global mixer multiplier) so a walk
+ // cycle can be sped up/slowed to match actual travel speed and keep feet
+ // planted instead of skating. 1 = authored cadence. Survives crossfades.
+ setSpeed(scale) {
+ mixer.timeScale = scale > 0 ? scale : 1;
+ },
update(dt) {
mixer.update(dt);
},
@@ -312,6 +318,12 @@ async function buildSharedController(model, clips, { manifestUrl, waveMs }) {
fade(clipFor(base), 0.3);
}, waveMs);
},
+ // Scale playback rate of the active clip (global mixer multiplier) so a walk
+ // cycle can be sped up/slowed to match actual travel speed and keep feet
+ // planted instead of skating. 1 = authored cadence. Survives crossfades.
+ setSpeed(scale) {
+ if (manager.mixer) manager.mixer.timeScale = scale > 0 ? scale : 1;
+ },
update(dt) {
manager.update(dt);
},