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.

Land pending quality-bar changes: OKX 3D director wiring, frame-governor pauses, cinematic-render doc entry, changelog

nirholase2f11344590d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9c42b7cfe..8b846f845 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,7 +13,9 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Agent wallet and portfolio views stay reliable when an RPC provider is capped** — Agent portfolio and wallet-balance reads no longer fail when a Solana RPC provider hits its daily request limit. Balance lookups now fall back across several free, unthrottled Solana nodes, so net-worth snapshots and holdings keep loading during provider throttling instead of erroring out. `[fix, infra]`
- **All 90 trades from the autonomous fleet, published and graded** — The autonomous sniper fleet has closed 90 real-money trades across 8 strategies and 8 wallets, and we published every single one: entry thesis, exit, on-chain receipts, and an honest grade per trade. The deep dive also audits everything the fleet did not do: the 83,000 launches it observed and declined, proof the conviction scorer’s top band hits 77.5% winners at scale (and why zero of those coins were bought), the missed monsters that were invisible at minute zero, and a paperhands check showing every one of the 90 sells was vindicated. Full dataset downloadable as JSON. (`/blog/autonomous-trading-experiment`) `[docs, feature]`
- **Avatars now generate on our strongest 3D lane by default** — Every avatar made through the avatar tools (forge_avatar, text_to_avatar, and the /forge web page's avatar mode) now requests our highest-fidelity generation tier automatically, which routes people/character prompts to our self-hosted Hunyuan3D lane instead of the faster draft lane. That means better proportions, cleaner hands, and less texture warping at the neck and hairline, at no extra cost or extra steps. We also tuned the avatar prompt director to always ask for relaxed, open hands with fingers visible, since closed fists and hidden hands were the single biggest source of mangled-hand meshes. If auto-rigging ever fails after a great mesh generates, you still keep the finished mesh, rigging alone, and can retry rigging separately. (`/forge`) `[improvement]`
+- **Every 3D view on the site now renders film-quality** — We audited every 3D viewer on the platform, from the IRL AR placer and avatar talk mode to the marketplace lobby, the coin snapshot view, the trading floor, the demo pages, and the embeddable avatar widget, and brought them all up to one cinematic bar: filmic tone mapping, correct color management, and real photographic HDRI lighting (not a flat studio guess) reflecting off skin, chrome, and fabric alike. A model now looks the same whether you're seeing it on your own profile, in a marketplace card, embedded on someone else's site, or standing on a street corner in AR. Lower-end phones automatically get a lighter version (capped resolution, simplified lighting) so nothing chugs or overheats. (`/irl`) `[improvement]`
- **Fixed: wallets showing $0 of $THREE on the tiers page** — Holders reported the site not recognising their $THREE balance: /three showed "You hold $0" (Member tier) for wallets with real bags, across Phantom, Solflare, and Brave Wallet. Root cause: when our primary balance provider ran out of quota, the backup on-chain read only queried the classic SPL token program, and $THREE (like all pump.fun coins) lives on Token-2022, so it was invisible. The backup path now reads both token programs and rides the same deep multi-provider RPC failover as the rest of the platform, so holder tiers, fee discounts, and quota boosts resolve correctly even when individual RPC providers are down. (`/three`) `[fix]`
+- **Forge results now come with a full next-step toolkit** — Every model you forge now lands with four new one-click follow-ups right in the result bar. Rig for animation adds a humanoid skeleton and hands you straight to Pose Studio or IRL placement. Restyle materials re-skins the surface (chrome, wood, gold, cyberpunk neon, marble, rust, or your own description) without touching the shape. Iterate makes a real shape-changing edit from a plain sentence, like "make the helmet red" or "add a backpack", and keeps every version in a branchable history you can jump back to. And Place IRL sends the model straight into the AR pin-placement flow so you can anchor it somewhere real. The empty state also grew from three starter prompts to six, so there's more to try with zero typing. (`/forge`) `[feature, improvement]`
- **Opening a 3D object gives you a viewer, not a chatbot** — Previewing a prop from the CC0 object library (a wrench, a vase, an ammo box) used to drop you into the embodied-agent surface, complete with an "Ask the agent" box and prompts like "Why are you embodied?" that make no sense for an inanimate object. Objects now open in a dedicated viewer mode: the agent chat and avatar controls are gone, replaced by the things you actually want for a 3D thing — Restyle to recolor or AI-restyle its materials, View in AR to place it in your room, and Download the CC0 GLB. Avatars are untouched and still open with the full agent experience. (`/objects`) `[improvement]`
- **Real materials: skin, glass, and car paint that actually behave like the real thing** — Avatars now get a subtle skin sheen, wet-looking corneas, and double-sided hair automatically the moment a humanoid model loads in any three.ws viewer, no extra step needed. Restyle Studio's material presets grew a real-physics tier alongside the classic looks: skin, car paint with a genuine clearcoat layer, brushed steel with directional anisotropic highlights, and a real-glass preset that actually refracts (KHR_materials_transmission) instead of faking transparency. The AI restyle tool ("make it chrome", "cyberpunk neon") can now propose clearcoat, transmission, and sheen too when an instruction calls for it. The text-guided texture worker also gained an optional material_class hint (person/metal/wood/fabric/plastic/glass) that bakes measured real-world roughness values instead of one flat guess for every material. (`/restyle`) `[feature, improvement]`
- **Restyled models now show up on your creator portfolio** — Your public portfolio at /u/:username (and /profile for yourself) already collected your forged 3D models and saved worlds into one "Creations" feed alongside your avatars, agents, launched coins, skills, and plugins. Restyled models were the missing piece: an AI material restyle ("make it chrome", "cyberpunk neon") or a seeded colorway variant fan-out from the Restyle Studio now records to your account when you're signed in, and shows up in Creations with a live 3D thumbnail, the instruction or preset used, and a link to the viewer, right next to your other work. (`/profile`) `[feature]`
diff --git a/STRUCTURE.md b/STRUCTURE.md
index b0ff60208..5c68a9a48 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -64,6 +64,7 @@ bottom.
| `/play` combat & weapons (server-authoritative, danger zones, wanted, tombstones) | Client: [src/game/combat-system.js](src/game/combat-system.js) `→ /play` (vitals HUD wiring, danger-zone ground, tombstone loot, hit feedback, the `window.twsCombat` bridge into W08's `MobSystem`), HUD [src/game/hud/world-hud.js](src/game/hud/world-hud.js). Server: [multiplayer/src/combat-handlers.js](multiplayer/src/combat-handlers.js) (mob AI, attack/loot intents, death + respawn), pure math [multiplayer/src/combat.js](multiplayer/src/combat.js), weapon/mob/loot tables [multiplayer/src/items.js](multiplayer/src/items.js), zone geometry [multiplayer/src/world-features.js](multiplayer/src/world-features.js), handlers wired in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) | In-repo | W07 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). Equip a sword/bat/pistol/bow from the hotbar and press `X` (or tap the touch Attack button) to fight — but only inside one of three named danger zones (Southern Wilds, Northern Wilds, Eastern Marches); town stays lawful by construction. PvE mobs chase and swing back through the same server-side damage path a player's attack uses; a kill (mob or PvP) spills a lootable tombstone, PvP raises the attacker's wanted/heat stars (visible on `WorldHud` and a downed peer's nameplate), and death drops carried cash/pack before an automatic respawn in town. |
| `/play` NPCs & world life (traffic, vendors, quest-givers, mobs) | Manager [src/game/npc/world-life.js](src/game/npc/world-life.js), nav graph [src/game/npc/nav-graph.js](src/game/npc/nav-graph.js), ambient crowd/traffic [src/game/npc/ambient-life.js](src/game/npc/ambient-life.js), quest-giver NPCs [src/game/npc/quest-npcs.js](src/game/npc/quest-npcs.js), quest-zone waypoints [src/game/npc/quest-markers.js](src/game/npc/quest-markers.js), Jobs Board UI [src/game/quests-ui.js](src/game/quests-ui.js), W07-gated mobs [src/game/npc/mobs.js](src/game/npc/mobs.js). Server: quest engine [multiplayer/src/quests.js](multiplayer/src/quests.js), quest zones [multiplayer/src/quest-zones.js](multiplayer/src/quest-zones.js), handlers in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) | In-repo | W08 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). A deterministic nav graph drives client-side ambient pedestrians + ring-road traffic that read identically for every player without a single packet — real gameplay stays server-authoritative. Five quest-giver NPCs (Dockmaster Reyes, Warden Okoro, Cook Mara, Foreman Dell, The Fixer) front the jobs board the quest engine (W05) already ran server-side but no client ever reached; pressing E opens the real board, accepting a job drops a waypoint at its objective (goto zones auto-complete by walking there, interact zones get their own "press E"), and finishing pays real cash server-side. Hostile mobs are live: W07's `CombatSystem` ([src/game/combat-system.js](src/game/combat-system.js)) installs the `window.twsCombat` contract this module's mobs were built against, so `MobSystem` renders real server-authoritative PvE hostiles with zero changes here. Two jobs — `cross-town-delivery` (North↔South) and `east-west-express` (East↔West) — are real driving missions: each `goto` leg is flagged `vehicle: true` and only completes off the authoritative vehicle-driver map ([multiplayer/src/vehicles.js](multiplayer/src/vehicles.js)), so walking through a depot never counts, only driving through it does. Depots sit on the avenue vehicle spawns, so a car is always parked at the start. Tests: [tests/quests-vehicle-delivery.test.js](tests/quests-vehicle-delivery.test.js). |
| Frame governor & power saver (`/play`, `/club`) | [src/shared/frame-governor.js](src/shared/frame-governor.js), wired in [src/game/coincommunities.js](src/game/coincommunities.js), [src/club.js](src/club.js), [src/club-entrance.js](src/club-entrance.js); toggle UI in [src/game/coincommunities-ui.js](src/game/coincommunities-ui.js) | Live | Shared frame-rate governor for the heavy 3D surfaces: 60fps while active, 30fps when idle or unfocused, plus a user-facing Power-saver mode (30fps + lighter rendering, "for a cooler, quieter machine") persisted in localStorage `tws-power-saver` and shared across surfaces (`getPowerSaver`/`setPowerSaver`/`onPowerSaverChange`, `trackWindowFocus`). Tests: [tests/frame-governor.test.js](tests/frame-governor.test.js) |
+| Cinematic rendering (shared 3D quality bar) | [src/shared/cinematic-render.js](src/shared/cinematic-render.js) — `applyCinematicDefaults()`, `loadEnvironment()`, `detectQualityTier()`, `updateGroundContactShadow()`; curated HDRIs in [public/hdri/](public/hdri) (CC0, Poly Haven) | Live, wired into every three.js viewer on the platform (`/irl`, talk mode, `/play`, `/club`, `/ar`, `/xr`, `/walk`, `/coin3d`, marketplace lobby, demo pages, the `<agent-3d>`/`<page-agent>` embeds, and more) | One module every WebGLRenderer-based viewer calls into instead of re-deriving ACES tone mapping, sRGB output color space, HDRI image-based lighting, and soft VSM shadows per file. `detectQualityTier()` picks high/medium/mobile from real device signals and caps pixel ratio + disables shadows/HDRI accordingly; `loadEnvironment()` fetches a real photographic HDRI (`studio`/`outdoor`/`sunset`) and falls back to a procedural room environment on mobile tier or fetch failure (including cross-origin embed contexts where the absolute `/hdri/*.hdr` URL can't resolve). `/walk` keeps its own richer per-biome HDR system ([src/walk-environments.js](src/walk-environments.js)); surfaces already running a postprocessing tone-mapping pass (`/oracle-graph`, `/club-entrance`) only take the sRGB/HDRI half to avoid double-applying the curve. |
| `/play` Wheel of Fortune (Fortune's Folly — free/paid $THREE spins) | Client: [src/game/wheel-station.js](src/game/wheel-station.js) (the plaza landmark, proximity prompt, `E` to spin — lazy-imports the actual UI on first interact), spin UI [src/game/spin-wheel-ui.js](src/game/spin-wheel-ui.js) (20-segment wheel, free/paid flow, wallet signing). Server: [multiplayer/src/spin-wheel.js](multiplayer/src/spin-wheel.js) (paytable, RNG, level/cooldown/pack gates, handlers), split-payment settlement [multiplayer/src/game-token.js](multiplayer/src/game-token.js) (`buildSpinPayment`/`verifySpinPayment` — the same primitives the $THREE boutique uses), wheel location [multiplayer/src/world-features.js](multiplayer/src/world-features.js) `WHEEL`, persisted cooldown field in [multiplayer/src/economy.js](multiplayer/src/economy.js), handlers wired in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) | In-repo | W09 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). Walk up to the wheel in the plaza and press `E`: one free spin every 12h (a real persisted cooldown — survives a disconnect, unlike the ephemeral per-action cooldowns everything else on this row's neighbors use), or pay $3 in `$THREE` — split 50% to the holder-rewards pool / 50% to the treasury, verified on-chain before any prize is granted, mirroring the boutique's proven settlement pattern exactly. Gated behind an average skill level of 3 (a light anti-farm floor, not a grind) and never lets a won prize get lost to a full pack — room for at least one possible item prize is checked before a spin is even offered, paid or free. All 20 wedges are equal-odds by design, matching the client's fixed-angle wheel rendering exactly (see the header note in `spin-wheel.js` on why that must never drift). Tests: [tests/spin-wheel.test.js](tests/spin-wheel.test.js). |
| `/play` friends & presence (drawer, cross-world DMs) | Client: [src/game/friends-panel.js](src/game/friends-panel.js) (shared with `/walk`), mounted in [src/game/coincommunities.js](src/game/coincommunities.js) `_openFriends()`/`_closeFriends()`, HUD button + unread badge in [src/game/coincommunities-ui.js](src/game/coincommunities-ui.js), account-level state/polling in [src/friends.js](src/friends.js). Server: signed ticket verify + `socialHub` registration in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js), hub in [multiplayer/src/social-hub.js](multiplayer/src/social-hub.js) | In-repo | W09 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). Press `J` or the HUD `Friends` button to open a right-docked drawer showing your account's friend graph — live online/offline presence per coin world, requests, and DM threads — the same graph and threads `/walk` and the standalone `/friends` page already share. `community-net.js` now carries a signed presence ticket into every `walk_world` join and forwards the server's `social` push onto its own event bus, which is what actually makes a `/play` player visible to friends and able to receive a live DM — previously `/play` joined anonymously to the social graph even when signed in, so every player showed offline and DMs were dropped. Tests: [tests/play-friends-presence.test.js](tests/play-friends-presence.test.js). |
| `/play` Robinhood Chain worlds (NOXA + The Odyssey coins, live-trade animation) | Firehose worker [workers/robinhood-feed/](workers/robinhood-feed) (watches NOXA + Odyssey launchpads + their Uniswap v3 pools, normalizes to the pump-compatible event shape, serves SSE/WS/REST). API bridge: [api/robinhood/coin-trades.js](api/robinhood/coin-trades.js) (the in-world chart-screen's trade feed), [api/robinhood/play-worlds.js](api/robinhood/play-worlds.js) (the `/worlds` lobby's Robinhood Chain tab). Client: chain-flavored biome `hoodchain` in [src/game/world-env.js](src/game/world-env.js) (auto-pinned in [src/game/coincommunities.js](src/game/coincommunities.js) `isRobinhoodCoin()`), trade-feed endpoint routing in [src/game/chart-screen.js](src/game/chart-screen.js), lobby tab + EVM-address support in [src/worlds-lobby.js](src/worlds-lobby.js) (routes Robinhood coins to `/play`, unchanged pump.fun coins stay on `/temporary`) | In-repo | Every Robinhood Chain memecoin (chain 4663) gets the same treatment pump.fun coins already have: a deterministic 3D world seeded by its contract address, in a distinct dark ticker-tape palette, with real launchpad/Uniswap-v3 trades rippling the space live via `MarketReactor`. Multiplayer (`walk_world`, filtered by `coin`+`tier`) needed zero code changes — it already keys rooms by an opaque coin id string. `isValidToken()` in [api/_lib/coin-communities.js](api/_lib/coin-communities.js) was widened to accept EVM addresses (it previously 400'd every EVM-chain world's Town chat, even though the CHAINS list already declared ethereum/base/bsc support). Tests: [workers/robinhood-feed/tests/normalize.test.js](workers/robinhood-feed/tests/normalize.test.js) (against real captured on-chain logs). |
diff --git a/api/_okx3d/rest-services.js b/api/_okx3d/rest-services.js
index 5a394896b..ca981d0d5 100644
--- a/api/_okx3d/rest-services.js
+++ b/api/_okx3d/rest-services.js
@@ -26,7 +26,13 @@ import Ajv from 'ajv';
import addFormats from 'ajv-formats';
import { catalogEntry } from '../_lib/okx-catalog.js';
-import { meshDirectorFor, meshSubjectClass, resolveLogoPrompt } from '../_lib/forge-director-prompts.js';
+import {
+ meshDirectorFor,
+ meshSubjectClass,
+ avatarDirectorFor,
+ classifySubject,
+ resolveLogoPrompt,
+} from '../_lib/forge-director-prompts.js';
import {
originFromReq,
viewerUrl,
@@ -122,12 +128,14 @@ async function callStudioTool(name, args, { req, payer }) {
}
const HANDLERS = {
- // $0.01, the free NVIDIA NIM TRELLIS lane, draft tier, submit-then-poll.
+ // $0.01, the free draft-tier lane, submit-then-poll. No backend pin: the
+ // draft default now resolves to the photoreal image-intermediate pipeline
+ // (self-host TRELLIS → Hunyuan3D → HuggingFace → NVIDIA NIM last resort —
+ // see forge-tiers.js FREE_DEFAULT_FOR_TIERS), still zero vendor cost.
async 'text-to-3d'(args, ctx) {
const job = await startForge(ctx.base, {
prompt: args.prompt,
aspect: args.aspect_ratio,
- backend: 'nvidia',
path: 'image',
});
return queuedResponse(job, { mode: 'text_to_3d', tier: 'draft' });
@@ -142,7 +150,7 @@ const HANDLERS = {
if (knownMark) {
effective = knownMark.prompt;
} else {
- const directed = await directPrompt(MESH_DIRECTOR, args.prompt);
+ const directed = await directPrompt(meshDirectorFor(meshSubjectClass(args.prompt)), args.prompt);
if (directed) effective = directed;
}
const job = await startForge(ctx.base, {
@@ -181,10 +189,19 @@ const HANDLERS = {
'That looks like an object rather than a character. Auto-rigging needs a humanoid figure, use text-to-3d for objects, or set allow_non_humanoid to override.',
);
}
+ // Granite avatar director (text mode only, fail-soft) — without it this
+ // paid lane reconstructed straight from the raw words with no photoreal
+ // reference-image briefing at all.
+ let effectivePrompt = args.prompt;
+ if (args.prompt && !args.image_url) {
+ const subject = classifySubject(args.prompt) === 'animal' ? 'animal' : 'person';
+ const directed = await directPrompt(avatarDirectorFor(subject), args.prompt);
+ if (directed) effectivePrompt = directed;
+ }
const gen = await generate(
ctx.base,
{
- prompt: args.prompt || undefined,
+ prompt: effectivePrompt || undefined,
imageUrls: args.image_url ? [args.image_url] : undefined,
aspect: '1:1',
},
diff --git a/data/changelog.json b/data/changelog.json
index 6c9ce5c23..79b083de9 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -9,6 +9,25 @@
"security"
]
},
+ {
+ "date": "2026-07-23",
+ "title": "Forge results now come with a full next-step toolkit",
+ "summary": "Every model you forge now lands with four new one-click follow-ups right in the result bar. Rig for animation adds a humanoid skeleton and hands you straight to Pose Studio or IRL placement. Restyle materials re-skins the surface (chrome, wood, gold, cyberpunk neon, marble, rust, or your own description) without touching the shape. Iterate makes a real shape-changing edit from a plain sentence, like \"make the helmet red\" or \"add a backpack\", and keeps every version in a branchable history you can jump back to. And Place IRL sends the model straight into the AR pin-placement flow so you can anchor it somewhere real. The empty state also grew from three starter prompts to six, so there's more to try with zero typing.",
+ "tags": [
+ "feature",
+ "improvement"
+ ],
+ "link": "/forge"
+ },
+ {
+ "date": "2026-07-23",
+ "title": "Every 3D view on the site now renders film-quality",
+ "summary": "We audited every 3D viewer on the platform, from the IRL AR placer and avatar talk mode to the marketplace lobby, the coin snapshot view, the trading floor, the demo pages, and the embeddable avatar widget, and brought them all up to one cinematic bar: filmic tone mapping, correct color management, and real photographic HDRI lighting (not a flat studio guess) reflecting off skin, chrome, and fabric alike. A model now looks the same whether you're seeing it on your own profile, in a marketplace card, embedded on someone else's site, or standing on a street corner in AR. Lower-end phones automatically get a lighter version (capped resolution, simplified lighting) so nothing chugs or overheats.",
+ "tags": [
+ "improvement"
+ ],
+ "link": "/irl"
+ },
{
"date": "2026-07-23",
"title": "A full notification center, plus two new things it tells you about",
diff --git a/docs/forge.md b/docs/forge.md
index f84348c3f..b7061c78a 100644
--- a/docs/forge.md
+++ b/docs/forge.md
@@ -58,6 +58,7 @@ Generation is a job. `POST /api/forge` returns a `job_id`; the client polls `GET
4. Optionally open the quality controls and pick a tier (Draft, Standard, High) and an engine. The default engine carries a **FREE** pill. Down lanes are disabled with the reason shown.
5. Click Generate. A real elapsed-driven progress line runs against the catalog's ETA estimate for the chosen path, tier, and engine.
6. When the model lands, orbit it in the viewer, view it in AR, download the GLB, or run the post-generation tools (stylize, optimize, Game-Ready retopology, split).
+7. Keep going on the same result: **Rig for animation** adds a humanoid skeleton (POST `/api/forge?action=rig`) and hands off to Pose Studio or IRL placement; **Restyle materials** re-skins the surface with a free-text instruction or a preset chip (chrome, wood, gold, neon, marble, rust) via `/api/material-studio`, keeping the mesh untouched; **Iterate** makes a shape-changing edit from a plain-language instruction ("make the helmet red", "add a backpack") via `/api/forge-iterate` — the same conversational core the `refine_model` MCP tool uses — and keeps every version in a branchable lineage strip; **Place IRL** opens `/irl?avatar=<glb_url>` to anchor the model in AR at a real-world location.
## Examples
diff --git a/mcp-server/src/tools/_studio-core.js b/mcp-server/src/tools/_studio-core.js
index 4580b2e5d..3597ef762 100644
--- a/mcp-server/src/tools/_studio-core.js
+++ b/mcp-server/src/tools/_studio-core.js
@@ -262,21 +262,80 @@ function normalizeViews({ image_url, image_urls }) {
return views;
}
-const MESH_DIRECTOR_INSTRUCTION =
- "You are a 3D asset art director. Rewrite the user's idea into ONE concise prompt for a " +
- 'text-to-3D generator. Describe a SINGLE isolated subject on a plain background, naming form, ' +
- 'materials, color, and surface detail. No scenes, no multiple objects, no rendered text, no ' +
- 'background environment. ' +
- BRAND_MARK_DIRECTIVE +
- 'Output ONLY the rewritten prompt as a single line — no preamble, no quotes.';
-
-const AVATAR_DIRECTOR_INSTRUCTION =
- "You are a 3D character art director. Rewrite the user's idea into ONE concise prompt for a text-to-3D " +
- 'generator that will be auto-rigged. Describe a SINGLE full-body humanoid character standing in a relaxed ' +
- 'neutral pose with arms slightly away from the body, hands open and fingers separated and clearly visible ' +
- '(never a closed fist, never a hand hidden behind the body or in a pocket), on a plain background. Name the ' +
- 'body type, outfit, materials, colors, and key features. No scene, no props held across the body, no multiple ' +
- 'characters, no text or logos. Output ONLY the rewritten prompt as a single line — no preamble, no quotes.';
+// Photoreal cue block shared by both directors below — mirrors the wording in
+// api/_lib/forge-director-prompts.js's PHOTOREAL_CUES so this published,
+// independently-deployed mcp-server package produces the same realism bar as
+// the platform's own /api/forge director. Duplicated rather than imported: this
+// package ships standalone (npm), so it cannot reach into the api/ tree.
+const PHOTOREAL_CUES =
+ 'shot like a real photograph, not a render or illustration: natural soft studio lighting with gentle wrapping ' +
+ 'shadows, true-to-life color response, and visible micro-detail — fabric weave, skin pores and fine creases, ' +
+ 'brushed-metal grain, natural wear — because nothing in the real world is perfectly clean or perfectly smooth';
+
+// Lightweight subject classifier so this lane can pick a subject-aware cue
+// without importing across the api/ package boundary. Whole-word matching so
+// "manatee" never reads as "man".
+const PERSON_RE = /\b(person|human|man|woman|guy|girl|boy|lady|character|hero|warrior|knight|wizard|ninja|astronaut|robot|android|mascot)\b/i;
+const ANIMAL_RE = /\b(animal|creature|dragon|dog|cat|horse|bird|dinosaur|beast|wolf|fox|lion|tiger|bear|monster)\b/i;
+const VEHICLE_RE = /\b(car|truck|van|bus|motorcycle|bike|plane|jet|boat|ship|train|tank|spaceship|rocket|vehicle)\b/i;
+const FOOD_RE = /\b(food|fruit|vegetable|burger|pizza|cake|bread|sushi|sandwich|donut|cookie|meal|dish|coffee)\b/i;
+function classifySubjectLite(text) {
+ const t = String(text || '');
+ if (PERSON_RE.test(t)) return 'person';
+ if (ANIMAL_RE.test(t)) return 'animal';
+ if (VEHICLE_RE.test(t)) return 'vehicle';
+ if (FOOD_RE.test(t)) return 'object';
+ return 'object';
+}
+
+const MESH_SUBJECT_CUES = {
+ person: 'real skin with visible pores and subtle asymmetry, individual hair strands, ordinary human proportions',
+ animal: 'real fur/feathers/scales with natural directional flow, correct species anatomy, a moist natural nose or beak',
+ vehicle: 'correct wheel count and panel symmetry, real painted or brushed-metal body panels, rubber tread',
+ object: "the object's real material, finish, and surface micro-detail (grain, brush marks, wear, weave)",
+};
+
+function meshDirectorInstruction(prompt) {
+ const cue = MESH_SUBJECT_CUES[classifySubjectLite(prompt)] || MESH_SUBJECT_CUES.object;
+ return (
+ "You are a 3D asset art director. Rewrite the user's idea into ONE concise prompt for a " +
+ 'text-to-3D generator. Describe a SINGLE isolated subject on a plain background, naming form, ' +
+ 'materials, color, and surface detail. Default to photoreal — an actual photograph of the physical thing, ' +
+ 'not a render or game asset — unless the user clearly asked for a different style (cartoon, low-poly, toy, ' +
+ 'anime, etc.). When photoreal, weave in: ' + PHOTOREAL_CUES + '; specifically call out ' + cue + '. No ' +
+ 'scenes, no multiple objects, no rendered text, no background environment. ' +
+ BRAND_MARK_DIRECTIVE +
+ 'Output ONLY the rewritten prompt as a single line — no preamble, no quotes.'
+ );
+}
+
+// Back-compat constant (subject-agnostic) for any caller still importing it
+// directly; runMeshForge below now calls meshDirectorInstruction(prompt).
+const MESH_DIRECTOR_INSTRUCTION = meshDirectorInstruction('');
+
+function avatarDirectorInstruction(prompt) {
+ const subject = classifySubjectLite(prompt) === 'animal' ? 'animal' : 'person';
+ const subjectCue =
+ subject === 'animal'
+ ? 'real fur/feathers/scales with natural directional flow, correct species anatomy, lifelike eyes with a catchlight'
+ : 'real skin with visible pores and subtle asymmetry, hair as many fine individual strands, natural catchlights in the eyes';
+ return (
+ "You are a 3D character art director. Rewrite the user's idea into ONE concise prompt for a text-to-3D " +
+ 'generator that will be auto-rigged. Describe a SINGLE full-body humanoid character standing in a relaxed ' +
+ 'neutral pose with arms slightly away from the body, hands open and fingers separated and clearly visible ' +
+ '(never a closed fist, never a hand hidden behind the body or in a pocket), on a plain background. Default ' +
+ 'to photoreal — a real person (or, for a creature/beast character, a real animal) photographed, not a game ' +
+ "character or a toy — unless the user's words clearly call for something else (anime, cartoon, chibi, " +
+ 'voxel, toy, low-poly, etc.). When photoreal, weave in: ' + PHOTOREAL_CUES + '; specifically: ' + subjectCue +
+ '. Name the body type, outfit, materials, colors, and key features. No scene, no props held across the ' +
+ 'body, no multiple characters, no text or logos. Output ONLY the rewritten prompt as a single line — no ' +
+ 'preamble, no quotes.'
+ );
+}
+
+// Back-compat constant (person default) for any caller still importing it
+// directly; runForgeAvatar/runTextToAvatar below now call avatarDirectorInstruction(prompt).
+const AVATAR_DIRECTOR_INSTRUCTION = avatarDirectorInstruction('');
// ---------------------------------------------------------------------------
// forge_free — text → textured 3D GLB on the FREE NVIDIA NIM (TRELLIS) lane.
@@ -398,18 +457,21 @@ export async function runForgeFree({ prompt, tier }) {
);
}
-// One forge_free generation attempt: submit to the pinned free NVIDIA NIM lane,
-// then (when queued) poll to a terminal state. Returns { data, jobId } or throws
-// a coded error (with optional `.extra`/`.retryAfter`) the retry loop acts on.
+// One forge_free generation attempt: submit to the free draft-tier lane, then
+// (when queued) poll to a terminal state. Returns { data, jobId } or throws a
+// coded error (with optional `.extra`/`.retryAfter`) the retry loop acts on.
async function forgeFreeOnce({ base, prompt, tierId, imageUrls }) {
const job = await submitForge({
base,
- // Pin the free NVIDIA NIM (TRELLIS) lane so the happy path is always the
- // zero-cost engine; path:"image" is the only path NVIDIA serves. NVCF can
- // finish inside the generous submit window, so accept a synchronous done.
- // With a reference view (known brand marks) the submit goes image→3D
- // unpinned: the forge router owns image-mode engine selection, and the
- // prompt rides along as the caption.
+ // No backend pin: the forge router's own free-lane resolver picks the
+ // zero-cost engine (self-host TRELLIS → Hunyuan3D → HuggingFace → NVIDIA
+ // NIM last resort, see forge-tiers.js FREE_DEFAULT_FOR_TIERS) so this free
+ // lane gets the photoreal image-intermediate pipeline by default instead
+ // of forcing NVIDIA's native text-only preview, which skips it entirely.
+ // path:"image" still applies for a bare text prompt. With a reference
+ // view (known brand marks) the submit goes image→3D unpinned the same way:
+ // the forge router owns image-mode engine selection, and the prompt rides
+ // along as the caption.
payload:
Array.isArray(imageUrls) && imageUrls.length
? { image_urls: imageUrls, prompt: prompt || undefined, tier: tierId }
diff --git a/public/ar-forge.html b/public/ar-forge.html
index e99a3b400..e89b26662 100644
--- a/public/ar-forge.html
+++ b/public/ar-forge.html
@@ -330,7 +330,10 @@
throw new Error(data.message || ('The forge is busy. Try again in about ' + secs + ' seconds.'));
}
if (!res.ok) throw new Error(data.message || ('The generator returned ' + res.status + '.'));
- return data; // {status:'done', glb_url} or {job_id, status:'queued'}
+ // {status:'done', glb_url} or {job_id, status:'queued', eta_seconds, cold_start}
+ if (Number(data.eta_seconds) > 0) etaSeconds = Math.round(Number(data.eta_seconds));
+ coldStart = Boolean(data.cold_start);
+ return data;
});
});
}
@@ -348,7 +351,7 @@
if (seq !== runSeq) return null;
if (data.status === 'done' && data.glb_url) return data;
if (data.status === 'failed') throw new Error(data.error || 'Generation failed. Try rephrasing the prompt.');
- if (data.status === 'running') workMsg.textContent = 'Sculpting geometry and painting textures. Usually under a minute.';
+ if (data.status === 'running') setStage('running');
return tick();
});
});
@@ -360,29 +363,34 @@
prompt = String(prompt || '').trim();
if (prompt.length < 3) { input.focus(); return; }
var seq = ++runSeq;
+ etaSeconds = null;
+ coldStart = false;
setBusy(true);
mv.classList.add('veiled');
actions.classList.add('hidden');
handoff.classList.remove('show');
+ skeletonEl.classList.add('show');
workTitle.textContent = 'Forging "' + (prompt.length > 60 ? prompt.slice(0, 57) + '…' : prompt) + '"';
workMsg.textContent = 'Sending your prompt to the forge.';
overlay(working);
- startElapsed();
+ startElapsed('submitting');
startJob(prompt).then(function (job) {
if (seq !== runSeq) return null;
if (job.status === 'done' && job.glb_url) return job;
if (!job.job_id) throw new Error('The forge did not accept the job. Try again.');
- workMsg.textContent = 'Queued. Sculpting starts in a moment.';
+ setStage('queued');
return pollUntilDone(job.job_id, seq);
}).then(function (done) {
if (!done || seq !== runSeq) return;
stopElapsed();
+ skeletonEl.classList.remove('show');
remember(prompt, done.glb_url);
showResult(done.glb_url, prompt);
}).catch(function (err) {
if (seq !== runSeq) return;
stopElapsed();
+ skeletonEl.classList.remove('show');
setBusy(false);
failMsg.textContent = (err && err.message) || 'Generation failed.';
overlay(failed);
diff --git a/public/changelog.json b/public/changelog.json
index c2416d585..41a2fecb9 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-23T13:42:42.342Z",
+ "generated_at": "2026-07-23T13:45:06.563Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -78,6 +78,16 @@
"improvement"
]
},
+ {
+ "date": "2026-07-23",
+ "type": "update",
+ "title": "Every 3D view on the site now renders film-quality",
+ "summary": "We audited every 3D viewer on the platform, from the IRL AR placer and avatar talk mode to the marketplace lobby, the coin snapshot view, the trading floor, the demo pages, and the embeddable avatar widget, and brought them all up to one cinematic bar: filmic tone mapping, correct color management, and real photographic HDRI lighting (not a flat studio guess) reflecting off skin, chrome, and fabric alike. A model now looks the same whether you're seeing it on your own profile, in a marketplace card, embedded on someone else's site, or standing on a street corner in AR. Lower-end phones automatically get a lighter version (capped resolution, simplified lighting) so nothing chugs or overheats.",
+ "link": "/irl",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-07-23",
"type": "update",
@@ -88,6 +98,17 @@
"fix"
]
},
+ {
+ "date": "2026-07-23",
+ "type": "update",
+ "title": "Forge results now come with a full next-step toolkit",
+ "summary": "Every model you forge now lands with four new one-click follow-ups right in the result bar. Rig for animation adds a humanoid skeleton and hands you straight to Pose Studio or IRL placement. Restyle materials re-skins the surface (chrome, wood, gold, cyberpunk neon, marble, rust, or your own description) without touching the shape. Iterate makes a real shape-changing edit from a plain sentence, like \"make the helmet red\" or \"add a backpack\", and keeps every version in a branchable history you can jump back to. And Place IRL sends the model straight into the AR pin-placement flow so you can anchor it somewhere real. The empty state also grew from three starter prompts to six, so there's more to try with zero typing.",
+ "link": "/forge",
+ "tags": [
+ "feature",
+ "improvement"
+ ]
+ },
{
"date": "2026-07-23",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index b6300dda5..661a76b75 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -62,6 +62,14 @@
<category>improvement</category>
<description>Every avatar made through the avatar tools (forge_avatar, text_to_avatar, and the /forge web page's avatar mode) now requests our highest-fidelity generation tier automatically, which routes people/character prompts to our self-hosted Hunyuan3D lane instead of the faster draft lane. That means better proportions, cleaner hands, and less texture warping at the neck and hairline, at no extra cost or extra steps. We also tuned the avatar prompt director to always ask for relaxed, open hands with fingers visible, since closed fists and hidden hands were the single biggest source of mangled-hand meshes. If auto-rigging ever fails after a great mesh generates, you still keep the finished mesh, rigging alone, and can retry rigging separately.</description>
</item>
+ <item>
+ <title>Every 3D view on the site now renders film-quality</title>
+ <link>https://three.ws/irl</link>
+ <guid isPermaLink="false">2026-07-23:Every 3D view on the site now renders film-quality</guid>
+ <pubDate>Thu, 23 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>We audited every 3D viewer on the platform, from the IRL AR placer and avatar talk mode to the marketplace lobby, the coin snapshot view, the trading floor, the demo pages, and the embeddable avatar widget, and brought them all up to one cinematic bar: filmic tone mapping, correct color management, and real photographic HDRI lighting (not a flat studio guess) reflecting off skin, chrome, and fabric alike. A model now looks the same whether you're seeing it on your own profile, in a marketplace card, embedded on someone else's site, or standing on a street corner in AR. Lower-end phones automatically get a lighter version (capped resolution, simplified lighting) so nothing chugs or overheats.</description>
+ </item>
<item>
<title>Fixed: wallets showing $0 of $THREE on the tiers page</title>
<link>https://three.ws/three</link>
@@ -70,6 +78,14 @@
<category>fix</category>
<description>Holders reported the site not recognising their $THREE balance: /three showed &quot;You hold $0&quot; (Member tier) for wallets with real bags, across Phantom, Solflare, and Brave Wallet. Root cause: when our primary balance provider ran out of quota, the backup on-chain read only queried the classic SPL token program, and $THREE (like all pump.fun coins) lives on Token-2022, so it was invisible. The backup path now reads both token programs and rides the same deep multi-provider RPC failover as the rest of the platform, so holder tiers, fee discounts, and quota boosts resolve correctly even when individual RPC providers are down.</description>
</item>
+ <item>
+ <title>Forge results now come with a full next-step toolkit</title>
+ <link>https://three.ws/forge</link>
+ <guid isPermaLink="false">2026-07-23:Forge results now come with a full next-step toolkit</guid>
+ <pubDate>Thu, 23 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Every model you forge now lands with four new one-click follow-ups right in the result bar. Rig for animation adds a humanoid skeleton and hands you straight to Pose Studio or IRL placement. Restyle materials re-skins the surface (chrome, wood, gold, cyberpunk neon, marble, rust, or your own description) without touching the shape. Iterate makes a real shape-changing edit from a plain sentence, like &quot;make the helmet red&quot; or &quot;add a backpack&quot;, and keeps every version in a branchable history you can jump back to. And Place IRL sends the model straight into the AR pin-placement flow so you can anchor it somewhere real. The empty state also grew from three starter prompts to six, so there's more to try with zero typing.</description>
+ </item>
<item>
<title>Opening a 3D object gives you a viewer, not a chatbot</title>
<link>https://three.ws/objects</link>
diff --git a/public/features.json b/public/features.json
index 084030b9c..c7aba4cb1 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-23T13:42:42.333Z",
+ "generated_at": "2026-07-23T13:45:06.555Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/agi.css b/src/agi.css
index 8f9eb24c0..5689123ff 100644
--- a/src/agi.css
+++ b/src/agi.css
@@ -3,6 +3,15 @@
* the mood aura around the embodied body, whose hue is set at runtime from the
* live cognition vector (--agi-aura). Semantic green/red only ever mark P&L. */
+/* This page doesn't load /style.css, so the near-black canvas isn't painted
+ by default — without this, every --ink/--ink-dim token here renders against
+ the browser's white default background instead of --bg-0. */
+body {
+ background: var(--bg-0);
+ color: var(--ink);
+ min-height: 100vh;
+}
+
.agi-shell {
max-width: 1180px;
margin: 0 auto;
diff --git a/src/constellation/main.js b/src/constellation/main.js
index ae1b044f5..111a170fb 100644
--- a/src/constellation/main.js
+++ b/src/constellation/main.js
@@ -403,6 +403,7 @@ function safeMsg(data) { try { return JSON.parse(data).message || data; } catch
// ---- render loop ----------------------------------------------------------
function animate() {
requestAnimationFrame(animate);
+ if (document.visibilityState === 'hidden') return; // pause rendering on a backgrounded tab
for (const node of nodes) {
node.mesh.position.lerp(node.target, 0.06);
node.glow.position.copy(node.mesh.position);
diff --git a/src/oracle-graph.js b/src/oracle-graph.js
index c9e84604d..6e7e527db 100644
--- a/src/oracle-graph.js
+++ b/src/oracle-graph.js
@@ -280,6 +280,7 @@ export function mountOracleGraph(canvas, labelContainer) {
let raf = 0;
function frame() {
+ if (document.visibilityState === 'hidden') { raf = requestAnimationFrame(frame); return; } // pause on a backgrounded tab
controls.update();
stepPhysics(0.016);
diff --git a/src/pointcloud-viewer.js b/src/pointcloud-viewer.js
index 54cdcdba6..c29f9d0ec 100644
--- a/src/pointcloud-viewer.js
+++ b/src/pointcloud-viewer.js
@@ -86,6 +86,7 @@ export class PointCloudViewer {
_tick() {
if (this._disposed) return;
requestAnimationFrame(this._loop);
+ if (document.visibilityState === 'hidden') return; // pause rendering on a backgrounded tab
const now = performance.now();
const damping = this.controls.enableDamping && now < this._settleUntil;
if (this._autoRotate && this.points) {
diff --git a/src/sentiment-heatmap-3d.js b/src/sentiment-heatmap-3d.js
index 7741cb9fd..2f4a55a1c 100644
--- a/src/sentiment-heatmap-3d.js
+++ b/src/sentiment-heatmap-3d.js
@@ -328,6 +328,7 @@ export class SentimentHeatmap3D {
_loop() {
if (this.disposed) return;
this.raf = requestAnimationFrame(this._loop);
+ if (document.visibilityState === 'hidden') return; // pause rendering on a backgrounded tab
// Camera drift / focus tween.
this.focusT = lerp(this.focusT, this.focusTarget, 0.08);
diff --git a/tests/api/okx-3d-services.test.js b/tests/api/okx-3d-services.test.js
index 89c26f498..941d501e8 100644
--- a/tests/api/okx-3d-services.test.js
+++ b/tests/api/okx-3d-services.test.js
@@ -262,7 +262,7 @@ describe('paid dispatch — verify → engine → settle', () => {
return makeReq({ service, body, headers: { 'payment-signature': 'c2ln' } });
}
- it('text-to-3d runs the free NVIDIA NIM lane (draft) and returns a pollable job', async () => {
+ it('text-to-3d runs the free draft-tier lane (no backend pin) and returns a pollable job', async () => {
const res = makeRes();
await handler(paidReq('text-to-3d', VALID_INPUT['text-to-3d']), res);
expect(res.statusCode).toBe(200);
@@ -270,7 +270,11 @@ describe('paid dispatch — verify → engine → settle', () => {
expect(body).toMatchObject({ service: 'text-to-3d', price_usd: '0.01', status: 'queued', job_id: 'forge-gen-1' });
expect(body.poll_url).toContain('/api/forge?job=');
const submit = globalThis.fetch.mock.calls.find(([u]) => String(u).endsWith('/api/forge'));
- expect(JSON.parse(submit[1].body)).toMatchObject({ backend: 'nvidia', path: 'image' });
+ // No backend pin: the draft default now resolves to the photoreal
+ // image-intermediate pipeline (see forge-tiers.js FREE_DEFAULT_FOR_TIERS)
+ // instead of forcing NVIDIA's native text-only preview.
+ expect(JSON.parse(submit[1].body)).toMatchObject({ path: 'image' });
+ expect(JSON.parse(submit[1].body).backend).toBeUndefined();
expect(settlePaymentMock).toHaveBeenCalledTimes(1);
expect(res.headers['payment-response']).toBeTruthy();
expect(res.headers['x-payment-response']).toBe(res.headers['payment-response']);