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: add new MCP server for Omniology contests and update changelog
udvkba03bf7489ba
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex dfcf603e9..9ed242907 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-06-25+- **New MCP server: enter Omniology contests from any AI agent** — We shipped @three-ws/omniology-mcp — a Model Context Protocol server that opens Omniology's fast-paced AI-agent contests to any MCP client or agent, not just the 3D world. Three free tools read the live feed: list the running contest, pull a contest's details, and fetch its leaderboard. A fourth tool, submit_entry, lets an agent enter a contest and pays the entry fee in USDC on Solana automatically through the x402 payment protocol — and if the contest rejects the entry, the payment is cancelled so you're never charged for a submission that didn't land. Listing it this way also makes Omniology discoverable in the x402 Bazaar, so other agents can find and enter contests on their own. Install with npx @three-ws/omniology-mcp. `[sdk]`- **Production error sweep: tier page, image understanding, and on-chain indexing** — We pulled a full day of production logs and fixed what was actually failing. The $THREE tier page sometimes flashed a blank screen on a fast or cached load — a startup step ran a moment before it was ready; it now loads reliably every time. Image understanding (the vision service behind Forge upload checks, the fact checker, and gallery alt text) could hang until the request was force-killed with no answer; it now works through its models within a fixed time budget and always returns either a result or a clear error. Behind the scenes, delegation indexing and agent-reputation reads were leaning on public Ethereum RPC nodes that have since gone behind bot-walls or started refusing datacenter traffic, which meant on-chain permissions and ERC-8004 reputation kept failing to resolve; we replaced the entire fallback set with providers verified to answer reliably. We also fixed a crash in the guided feature tour when it launched before a page finished loading, and the fullscreen button in the scene editor on Safari and in-app browsers. No action needed. `[fix, infra]`- **Pump dashboard now loads inside X/Twitter's in-app browser** — Opening the Pump trading desk from a link tapped inside X/Twitter (or a similar embedded mobile browser) showed a blank page. Those in-app browsers block local storage entirely, and the dashboard read its saved settings the instant it loaded — so the page crashed before it could draw anything. It now detects a blocked store and falls back to sensible defaults in memory, so the desk loads everywhere; your saved config still persists normally in a regular browser. No action needed. (`/pump-dashboard`) `[fix]`- **Stability sweep: live page, dashboards, and the galaxy feed never hard-fail** — A second pass on the day's production logs, this time on resilience. The $THREE Live page crashed for visitors running privacy or anti-popup browser extensions — those tools strip the on-screen stats overlays, and a missing panel was taking the whole 3D scene down with it; the visualization now keeps rendering no matter what the page chrome looks like. Opening a dashboard could occasionally throw an error instead of loading when the sign-in check hit a momentary hiccup; it now retries cleanly through the login flow. The live Galaxy money-feed and the $THREE holder leaderboard used to return an error page when a database query ran long under load — they now serve the last good snapshot (or an honestly-empty view) instantly instead. We also stopped a slow cache server, a slow payment partner, or a heavy background job from ever stalling a request to the point of a timeout, and quieted a wave of harmless noise in our error logs so real issues stand out. No action needed. `[fix, improvement]`diff --git a/data/changelog.json b/data/changelog.jsonindex be6fb7e3d..03f1ca9fc 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,14 @@{"$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-06-25",+ "title": "New MCP server: enter Omniology contests from any AI agent",+ "summary": "We shipped @three-ws/omniology-mcp — a Model Context Protocol server that opens Omniology's fast-paced AI-agent contests to any MCP client or agent, not just the 3D world. Three free tools read the live feed: list the running contest, pull a contest's details, and fetch its leaderboard. A fourth tool, submit_entry, lets an agent enter a contest and pays the entry fee in USDC on Solana automatically through the x402 payment protocol — and if the contest rejects the entry, the payment is cancelled so you're never charged for a submission that didn't land. Listing it this way also makes Omniology discoverable in the x402 Bazaar, so other agents can find and enter contests on their own. Install with npx @three-ws/omniology-mcp.",+ "tags": [+ "sdk"+ ]+ },{"date": "2026-06-25","title": "Pump dashboard now loads inside X/Twitter's in-app browser",diff --git a/packages/omniology-mcp/README.md b/packages/omniology-mcp/README.mdnew file mode 100644index 000000000..7e8318c1e--- /dev/null+++ b/packages/omniology-mcp/README.md@@ -0,0 +1,131 @@+<p align="center">+ <a href="https://three.ws"><img src="https://three.ws/three-ws-mcp-icon.svg" alt="three.ws" width="88" height="88"></a>+</p>++<h1 align="center">@three-ws/omniology-mcp</h1>++<p align="center"><strong>Read and enter <a href="https://omniology.ai">Omniology</a> AI-agent contests from any MCP client — leaderboards free, entries paid in USDC on Solana via x402.</strong></p>++<p align="center">+ <a href="https://www.npmjs.com/package/@three-ws/omniology-mcp"><img alt="npm" src="https://img.shields.io/npm/v/@three-ws/omniology-mcp?logo=npm&color=cb3837"></a>+ <img alt="license" src="https://img.shields.io/npm/l/@three-ws/omniology-mcp?color=3b82f6">+ <img alt="node" src="https://img.shields.io/node/v/@three-ws/omniology-mcp?color=339933&logo=node.js">+ <a href="https://registry.modelcontextprotocol.io/?q=io.github.nirholas"><img alt="MCP Registry" src="https://img.shields.io/badge/MCP%20Registry-io.github.nirholas%2Fomniology--mcp-6e56cf"></a>+ <a href="https://three.ws"><img alt="three.ws" src="https://img.shields.io/badge/built%20by-three.ws-000"></a>+</p>++<p align="center">+ <a href="#install">Install</a> ·+ <a href="#tools">Tools</a> ·+ <a href="#payment-flow">Payment flow</a> ·+ <a href="#requirements">Requirements</a> ·+ <a href="https://three.ws">three.ws</a>+</p>++---++> A [Model Context Protocol](https://modelcontextprotocol.io) server that exposes [Omniology](https://omniology.ai)'s ~88-second AI-agent contests as agent-callable tools. Reading the live feed (`list_contests`, `get_contest`, `get_leaderboard`) is **free**. Submitting an entry (`submit_entry`) is priced in **USDC on Solana** via the [x402](https://x402.org) protocol — this server is Omniology's x402 front door: it settles the payment, then forwards the entry to Omniology's real API. No mocks; every call hits the live Omniology service at `OMNIOLOGY_BASE_URL`.++> Built by [three.ws](https://three.ws). Community-built; Omniology contests are operated by Omniology.++## How it works++1. An MCP client (Claude Desktop, Claude Code, Cursor, or an agent) connects to this server over stdio.+2. The client calls a **read** tool — `list_contests` / `get_contest` / `get_leaderboard` — and gets live contest data back immediately, no payment.+3. The client calls **`submit_entry`**. Without an x402 payment payload, the server returns a `402 PaymentRequired` envelope quoting the USDC price and the Solana receiving address.+4. The client signs a Solana USDC transfer and retries with the payment in `_meta["x402/payment"]`.+5. The server verifies the payment, forwards the entry to Omniology's submit endpoint, settles, and returns the acceptance (`entry_id`, `status`, `round`, `position`) with a receipt in `_meta["x402/payment-response"]`. If Omniology rejects the entry, the payment is **cancelled** — the caller is never charged for a rejected submission.++## Install++```bash+npx @three-ws/omniology-mcp+```++Or wire it into an MCP host. Claude Desktop / Claude Code (`claude_desktop_config.json` or `.mcp.json`):++```json+{+ "mcpServers": {+ "omniology": {+ "command": "npx",+ "args": ["-y", "@three-ws/omniology-mcp"],+ "env": {+ "OMNIOLOGY_BASE_URL": "https://api.omniology.ai",+ "MCP_SVM_PAYMENT_ADDRESS": "<your-solana-wallet>"+ }+ }+ }+}+```++Inspect the tool surface with the MCP Inspector:++```bash+npx -y @modelcontextprotocol/inspector npx @three-ws/omniology-mcp+```++## Tools++| Tool | Price | What it does |+|---|---|---|+| `list_contests` | free | The running round + when the next round opens + recent winners. Filter by `status` (`all` \| `live` \| `upcoming`). |+| `get_contest` | free | One contest's detail (`contestId`) plus its leaderboard and recent entries. |+| `get_leaderboard` | free | A contest's ranked leaderboard (`contestId`): rank, entry id, agent, score, thumbnail. |+| `submit_entry` | $0.05 USDC | Settle USDC, then forward an entry (`contestId`, `entry`, optional `agent`) to Omniology. |++The read tools are thin, normalized wrappers over Omniology's live feed (`GET /v1/contests/live`); `submit_entry` forwards to `POST /v1/contests/{id}/entries`. `submit_entry`'s price is configurable via `OMNIOLOGY_SUBMIT_PRICE_USD`.++### Usage example++```jsonc+// 1) See what's running (free)+list_contests { "status": "live" }+// → { "ok": true, "serverNowMs": 1719259200000,+// "contests": [{ "id": "rnd_1421", "title": "Neon Koi", "round": 1421,+// "closesMs": 1719259200000, "prizeUsdc": 12.5, "status": "live" }] }++// 2) Check the leaderboard (free)+get_leaderboard { "contestId": "rnd_1421" }+// → { "ok": true, "round": 1421, "count": 2,+// "leaderboard": [{ "rank": 1, "agent": "Reef", "score": 0.92, ... }] }++// 3) Enter the contest (paid — your x402 client signs the USDC payment)+submit_entry {+ "contestId": "rnd_1421",+ "entry": { "prompt": "a neon koi swimming through circuitry" },+ "agent": "Reef"+}+// → { "ok": true, "entryId": "ent_8c12e0f9", "status": "accepted",+// "round": 1421, "position": 38 }+```++## Payment flow++`submit_entry` settles **USDC on Solana mainnet** with the `exact` scheme through PayAI's x402 facilitator, per the [@x402/mcp](https://x402.org) transport spec. x402-capable MCP clients perform the sign-and-retry automatically; clients without a wallet still get a clear `402 PaymentRequired` envelope describing exactly what to pay. The read tools never charge.++## Requirements++| Variable | Required | Purpose |+|---|---|---|+| `OMNIOLOGY_BASE_URL` | ✅ | Base URL of the Omniology contest API. |+| `MCP_SVM_PAYMENT_ADDRESS` | ✅ | Solana wallet that receives USDC from `submit_entry`. |+| `OMNIOLOGY_API_KEY` | optional | Bearer token sent to Omniology when forwarding a paid entry. |+| `OMNIOLOGY_SUBMIT_PRICE_USD` | optional | Override the submit price (default `$0.05`). |+| `OMNIOLOGY_TIMEOUT_MS` | optional | Per-request timeout to Omniology (default `20000`). |+| `X402_FEE_PAYER_SOLANA` | optional | Fee payer for Solana settlement (defaults to the three.ws fee payer). |+| `X402_FACILITATOR_URL` | optional | x402 facilitator endpoint (defaults to PayAI). |++Node ≥ 20.++## Development++```bash+npm test --workspace=@three-ws/omniology-mcp # node --test, no network+```++Tests inject a fake `fetch` into the `OmniologyClient`, so request building, parsing, normalization, and error sanitization are exercised end to end with no live-network dependency.++## License++Apache-2.0 © [three.ws](https://three.ws)diff --git a/public/changelog.json b/public/changelog.jsonindex 9c030ce91..4fe647251 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-25T21:00:11.813Z",+ "generated_at": "2026-06-25T21:09:40.074Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -16,6 +16,16 @@"feature"]},+ {+ "date": "2026-06-25",+ "type": "update",+ "title": "New MCP server: enter Omniology contests from any AI agent",+ "summary": "We shipped @three-ws/omniology-mcp — a Model Context Protocol server that opens Omniology's fast-paced AI-agent contests to any MCP client or agent, not just the 3D world. Three free tools read the live feed: list the running contest, pull a contest's details, and fetch its leaderboard. A fourth tool, submit_entry, lets an agent enter a contest and pays the entry fee in USDC on Solana automatically through the x402 payment protocol — and if the contest rejects the entry, the payment is cancelled so you're never charged for a submission that didn't land. Listing it this way also makes Omniology discoverable in the x402 Bazaar, so other agents can find and enter contests on their own. Install with npx @three-ws/omniology-mcp.",+ "link": null,+ "tags": [+ "sdk"+ ]+ },{"date": "2026-06-25","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 210c5716c..82f96d23f 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -14,6 +14,14 @@<category>feature</category><description>A new way to trade together. Create a swarm and a dedicated treasury wallet is provisioned on-chain; you and other agents fund it with real SOL. The swarm only buys a coin when enough of its members' verified track records already agree on it — a reputation-weighted consensus, not one agent's hunch — and every trade still passes the same safety firewall and spend limits as a solo snipe. When a position closes in profit, the gain is paid back to every member pro-rata by their share, on-chain and fully auditable, minus an optional creator fee. You can see the live vote on every decision, the treasury balance, each member's share, and the full payout ledger. Exit and redeem your share any time, no single member can capture the treasury, and any qualifying member can hit the kill switch. Find it under Discover → Trading Swarms.</description></item>+ <item>+ <title>New MCP server: enter Omniology contests from any AI agent</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-25:New MCP server: enter Omniology contests from any AI agent</guid>+ <pubDate>Thu, 25 Jun 2026 12:00:00 GMT</pubDate>+ <category>sdk</category>+ <description>We shipped @three-ws/omniology-mcp — a Model Context Protocol server that opens Omniology's fast-paced AI-agent contests to any MCP client or agent, not just the 3D world. Three free tools read the live feed: list the running contest, pull a contest's details, and fetch its leaderboard. A fourth tool, submit_entry, lets an agent enter a contest and pays the entry fee in USDC on Solana automatically through the x402 payment protocol — and if the contest rejects the entry, the payment is cancelled so you're never charged for a submission that didn't land. Listing it this way also makes Omniology discoverable in the x402 Bazaar, so other agents can find and enter contests on their own. Install with npx @three-ws/omniology-mcp.</description>+ </item><item><title>Production error sweep: tier page, image understanding, and on-chain indexing</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex b9a46f307..4c9e7f71a 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-25T21:00:11.789Z",+ "generated_at": "2026-06-25T21:09:40.028Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/game/arena/arena-environment.js b/src/game/arena/arena-environment.jsnew file mode 100644index 000000000..3c5813641--- /dev/null+++ b/src/game/arena/arena-environment.js@@ -0,0 +1,271 @@+// Omniology Arena — venue environment loader + mount.+//+// This is the heart of prompt 02: it turns the authored venue GLB + HDRI into+// a lit, bounded, post-processed room and hands back the resolved anchor+// contract the bootstrap (and prompts 03/04) build on. It is deliberately+// decoupled from the bootstrap so the multiplayer/camera/movement layer can+// stay in src/game/arena/arena.js and call this once.+//+// What it does, mirroring /club's proven pipeline (src/club.js):+// 1. Pick a perf profile from real capability signals (src/club-perf.js) and+// apply it to the renderer (pixel ratio, shadow map).+// 2. Load venue.glb + hdri.hdr IN PARALLEL, forwarding real load progress to+// the caller's overlay (no fake timers).+// 3. Pre-filter the HDRI through PMREMGenerator → scene.environment for PBR+// reflections (background stays the dark arena fog colour).+// 4. Opt meshes into shadow casting/receiving and add the venue to the scene.+// 5. Run collectArenaEmpties + resolveArenaAnchors (throws loudly on a+// missing anchor — no silent fallback) and derive the walkable bounds.+// 6. Build the lighting rig from the light anchors (one shadow key, the rest+// cheap) and a bloom + ACES + vignette post pipeline gated by the profile.+//+// Returns everything the bootstrap needs and nothing it doesn't.++import {+ Color,+ Fog,+ Vector3,+ AmbientLight,+ HemisphereLight,+ DirectionalLight,+ PointLight,+ EquirectangularReflectionMapping,+ PMREMGenerator,+ SRGBColorSpace,+ NoToneMapping,+ ACESFilmicToneMapping,+} from 'three';+import {+ EffectComposer,+ RenderPass,+ EffectPass,+ BloomEffect,+ ToneMappingEffect,+ ToneMappingMode,+ VignetteEffect,+ SMAAEffect,+} from 'postprocessing';+import { HDRLoader } from 'three/addons/loaders/HDRLoader.js';++import { gltfLoader } from '../../loaders/gltf.js';+import { detectProfile, PROFILES } from '../../club-perf.js';+import {+ ARENA_REQUIRED_EMPTIES,+ collectArenaEmpties,+ resolveArenaAnchors,+ arenaBounds,+} from './arena-venue.js';+import { log } from '../../shared/log.js';++const VENUE_GLB_URL = '/arena/omniology/venue.glb';+const VENUE_HDRI_URL = '/arena/omniology/hdri.hdr';++// The dark hall colour: scene.background + fog. Reflections come from the HDRI.+const ARENA_BG = 0x05060a;++// Approx interior height — used to seat the hemisphere/fill lights when the+// anchors don't dictate it. Kept in sync with ROOM_HEIGHT in the build script.+const ROOM_TOP = 7;++// Meshes whose names match this cast shadows (props that read in silhouette).+// Everything receives shadows; only this small set casts, to protect the+// single key light's shadow budget — same discipline as /club.+const CASTS_SHADOW = /desk|bezel|bay|panel/i;+const NO_RECEIVE = /ceiling/i; // the ceiling needn't catch the floor's shadow++/**+ * Promise wrapper around a three loader's callback `.load()` that forwards+ * progress as a 0..1 fraction. `loadAsync` swallows progress, leaving the user+ * staring at a frozen overlay for a multi-hundred-kB venue.+ */+function loadWithProgress(loader, url, onFraction) {+ return new Promise((resolve, reject) => {+ loader.load(+ url,+ resolve,+ (e) => {+ if (e && e.total > 0) onFraction?.(Math.min(1, e.loaded / e.total));+ },+ (err) => reject(new Error(`Failed to load ${url}: ${err?.message || err?.statusText || err}`)),+ );+ });+}++/**+ * Load + mount the arena environment.+ *+ * @param {import('three').Scene} scene+ * @param {import('three').WebGLRenderer} renderer+ * @param {import('three').Camera} camera+ * @param {object} [opts]+ * @param {(fraction: number, label: string) => void} [opts.onProgress] — 0..1 progress.+ * @returns {Promise<{+ * anchors: ReturnType<typeof resolveArenaAnchors>,+ * bounds: ReturnType<typeof arenaBounds>,+ * profile: typeof PROFILES['high'],+ * composer: import('postprocessing').EffectComposer | null,+ * lights: import('three').Light[],+ * venue: import('three').Object3D,+ * dispose: () => void,+ * }>}+ */+export async function createArenaEnvironment(scene, renderer, camera, { onProgress } = {}) {+ const profile = PROFILES[detectProfile()];++ // ── Renderer ──────────────────────────────────────────────────────────+ renderer.setPixelRatio(profile.pixelRatio);+ renderer.outputColorSpace = SRGBColorSpace;+ // Tone mapping happens in the post pipeline (ACES) when bloom is on; the+ // renderer itself stays neutral so we don't double-map. On the low tier+ // (no composer) we let the renderer do ACES so colour still reads right.+ renderer.toneMapping = NoToneMapping;+ renderer.shadowMap.enabled = profile.shadows;++ // ── Scene shell ───────────────────────────────────────────────────────+ scene.background = new Color(ARENA_BG);+ scene.fog = new Fog(ARENA_BG, 12, 46);+ // Low ambient + hemisphere so nothing is pitch black before the rig loads;+ // the authored lights do the real shaping.+ scene.add(new AmbientLight(0x141a26, 0.6));+ const hemi = new HemisphereLight(0x6f8cff, 0x0a0a12, 0.4);+ hemi.position.set(0, ROOM_TOP, 0);+ scene.add(hemi);++ // ── Load venue + HDRI in parallel with real progress ──────────────────+ const loader = gltfLoader(renderer);+ const rgbe = new HDRLoader();+ let venueFrac = 0;+ let hdriFrac = 0;+ const report = () => onProgress?.((venueFrac + hdriFrac) / 2, 'Loading arena…');++ const [venueGltf, hdrTexture] = await Promise.all([+ loadWithProgress(loader, VENUE_GLB_URL, (f) => {+ venueFrac = f;+ report();+ }),+ loadWithProgress(rgbe, VENUE_HDRI_URL, (f) => {+ hdriFrac = f;+ report();+ }),+ ]);+ onProgress?.(1, 'Loading arena…');++ // ── HDRI → pre-filtered env map for PBR reflections ───────────────────+ hdrTexture.mapping = EquirectangularReflectionMapping;+ const pmrem = new PMREMGenerator(renderer);+ pmrem.compileEquirectangularShader();+ const envRT = pmrem.fromEquirectangular(hdrTexture);+ scene.environment = envRT.texture;+ hdrTexture.dispose();+ pmrem.dispose();++ // ── Venue geometry — shadow opt-in, then add to the scene ─────────────+ const venue = venueGltf.scene;+ venue.traverse((n) => {+ if (!n.isMesh) return;+ n.receiveShadow = profile.shadows && !NO_RECEIVE.test(n.name);+ n.castShadow = profile.shadows && CASTS_SHADOW.test(n.name);+ });+ scene.add(venue);++ // ── Anchors (throws a named error if any are missing) ─────────────────+ venue.updateMatrixWorld(true);+ const empties = collectArenaEmpties(venue, ARENA_REQUIRED_EMPTIES);+ const anchors = resolveArenaAnchors(empties);+ const bounds = arenaBounds(anchors);++ // ── Lighting rig from the light anchors ───────────────────────────────+ const lights = buildLightingRig(scene, anchors, bounds, profile);++ // ── Post pipeline (bloom + ACES + vignette), gated by perf ────────────+ let composer = null;+ if (profile.bloom) {+ composer = new EffectComposer(renderer);+ composer.addPass(new RenderPass(scene, camera));+ const bloom = new BloomEffect({+ intensity: 1.0,+ luminanceThreshold: 0.35,+ luminanceSmoothing: 0.1,+ mipmapBlur: true,+ });+ const tone = new ToneMappingEffect({ mode: ToneMappingMode.ACES_FILMIC });+ const vignette = new VignetteEffect({ darkness: 0.5, offset: 0.32 });+ composer.addPass(new EffectPass(camera, bloom, tone, vignette));+ // SMAA only where there's budget for a second full-screen pass.+ if (profile.tier === 'high') composer.addPass(new EffectPass(camera, new SMAAEffect()));+ } else {+ // No composer on the low tier — let the renderer apply ACES directly so+ // the room doesn't render washed-out without the tone-mapping pass.+ renderer.toneMapping = ACESFilmicToneMapping;+ renderer.toneMappingExposure = 1.0;+ }++ const dispose = () => {+ composer?.dispose?.();+ envRT?.dispose?.();+ venue.traverse((n) => {+ if (n.isMesh) {+ n.geometry?.dispose?.();+ const m = n.material;+ if (Array.isArray(m)) m.forEach((mm) => mm.dispose?.());+ else m?.dispose?.();+ }+ });+ scene.environment = null;+ };++ log.info?.('[arena] venue mounted', {+ tier: profile.tier,+ screens: anchors.screens.length,+ lights: lights.length,+ bounds: { halfX: +bounds.halfX.toFixed(1), halfZ: +bounds.halfZ.toFixed(1) },+ });++ return { anchors, bounds, profile, composer, lights, venue, dispose };+}++/**+ * Build the authored lighting rig: one shadow-casting key (DirectionalLight,+ * aimed at room centre), a soft non-shadow fill, and cheap PointLight rims for+ * the contest-wall colour wash. Reads each light's color/intensity/distance/+ * shadow from the resolved anchor (which itself reads the GLB extras).+ */+function buildLightingRig(scene, anchors, bounds, profile) {+ const out = [];+ const centre = new Vector3(bounds.center.x, 1.2, bounds.center.z);++ for (const a of anchors.lights) {+ if (a.kind === 'rim') {+ const p = new PointLight(a.color, a.intensity, a.distance || 0, 1.6);+ p.position.copy(a.pos);+ scene.add(p);+ out.push(p);+ continue;+ }++ // key + fill are directional so they shape the whole room evenly.+ const d = new DirectionalLight(a.color, a.intensity);+ d.position.copy(a.pos);+ d.target.position.copy(centre);+ scene.add(d.target);++ if (a.kind === 'key' && profile.shadows && a.castShadow) {+ d.castShadow = true;+ const s = profile.shadowMapSize || 1024;+ d.shadow.mapSize.set(s, s);+ d.shadow.bias = -0.0009;+ d.shadow.normalBias = 0.02;+ const cam = d.shadow.camera;+ cam.near = 0.5;+ cam.far = 40;+ cam.left = -14;+ cam.right = 14;+ cam.top = 14;+ cam.bottom = -14;+ cam.updateProjectionMatrix();+ }+ scene.add(d);+ out.push(d);+ }+ return out;+}diff --git a/src/game/arena/omniology.js b/src/game/arena/omniology.jsindex 4d22fd813..ae67c9011 100644--- a/src/game/arena/omniology.js+++ b/src/game/arena/omniology.js@@ -187,6 +187,14 @@ async function start(canvas) {log.warn('[omniology] avatar failed to load — using stand-in:', url);}+ // Live contest screens (03) — one per venue screen anchor, all fed by a single+ // shared Omniology poller (no duplicate requests, pauses when the tab is+ // hidden). Reads whatever anchors are current, so it works against the authored+ // defaults now and the venue GLB's resolved anchors once prompt 02 calls+ // setAnchors before this. pushEntry is handed to the entry desk (04) so a+ // settled submission lands on every screen the instant it confirms.+ const contestScreens = mountContestScreens(arena);+// Display name — reuse /play's persisted name (cc-name); mint a stable guest// name if blank, and persist it so it sticks across worlds.let name = '';@@ -254,6 +262,7 @@ async function start(canvas) {torn = true;try { net.destroy(); } catch {}for (const id of [...remotes.keys()]) removeRemote(id);+ try { contestScreens.dispose(); } catch {}try {localRig.traverse((n) => {n.geometry?.dispose?.();@@ -267,7 +276,11 @@ async function start(canvas) {window.addEventListener('beforeunload', teardown);// Expose for debugging + future HUD prompts (mirrors window.__CC__).- if (typeof window !== 'undefined') window.__ARENA__ = { arena, net, remotes, teardown };+ if (typeof window !== 'undefined') {+ // contestScreens.pushEntry is the hand-off the entry desk (04) wires to its+ // onSubmitted callback so a confirmed entry shows on the screens immediately.+ window.__ARENA__ = { arena, net, remotes, teardown, contestScreens, pushEntry: contestScreens.pushEntry };+ }}// Swap the boot loader for an actionable error state when the world can't start