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: forge lane/tier updates, TRELLIS/TripoSG worker builds, page and viewer polish

nirholase05f74704e0b
diff --git a/.env.example b/.env.example
index c2dfabc24..8ed4ae49c 100644
--- a/.env.example
+++ b/.env.example
@@ -1217,6 +1217,16 @@ GCP_RECONSTRUCTION_KEY=
# Cloud Run service URLs — set after deploying each worker:
# workers/avatar-pipeline-controller → avatar reconstruction (image → GLB)
GCP_RECONSTRUCTION_URL=
+# workers/model-trellis → self-hosted TRELLIS image→3D
+# (forge backend `trellis_selfhost`). Fuses up to 6 turnaround views of one
+# subject into a single textured GLB; unset ⇒ the lane drops out of routing.
+MODEL_TRELLIS_URL=
+# workers/model-hunyuan3d → self-hosted Hunyuan3D-2 image→3D
+# (forge backend `hunyuan3d`, gcp provider mode `hunyuan`). NOT the same as
+# GCP_RECONSTRUCTION_URL — the avatar face pipeline rejects non-face images.
+GCP_HUNYUAN3D_URL=
+# workers/model-triposg → sketch→3D (forge `sketch` path)
+GCP_TRIPOSG_URL=
# workers/unirig → auto-rigging (GLB → rigged GLB).
# Required for /api/forge?action=rig: without it rerig falls back to
# GCP_RECONSTRUCTION_URL, whose deployed service has no /rig endpoint.
diff --git a/api/_lib/forge-failover.js b/api/_lib/forge-failover.js
index 6805b4d4f..a39a96e2d 100644
--- a/api/_lib/forge-failover.js
+++ b/api/_lib/forge-failover.js
@@ -167,15 +167,15 @@ export async function submitFailoverJob({ backend, imageUrl, prompt, tierId, pat
if (backend === 'hunyuan3d') {
const { createRegenProvider } = await import('../_providers/gcp.js');
- const job = await createRegenProvider({ reconstructUrl: process.env.GCP_HUNYUAN3D_URL }).submit({
- mode: 'reconstruct',
+ // The Hunyuan3D worker speaks the standard /infer + /tasks/:id task shape
+ // (gcp provider mode 'hunyuan'), not the avatar controller's /reconstruct.
+ const job = await createRegenProvider().submit({
+ mode: 'hunyuan',
sourceUrl: imageUrl,
params: {
images: [imageUrl],
prompt: prompt || undefined,
target_polycount: tier.polycount,
- tier: tier.id,
- path: path || 'image',
},
});
return { extJobId: job.extJobId, handle: encodeJobToken({ provider: 'gcp', kind: null, taskId: job.extJobId }) };
diff --git a/api/_lib/forge-tiers.js b/api/_lib/forge-tiers.js
index 166844552..5882cb14e 100644
--- a/api/_lib/forge-tiers.js
+++ b/api/_lib/forge-tiers.js
@@ -52,7 +52,8 @@ export const TIERS = Object.freeze({
standard: Object.freeze({
id: 'standard',
label: 'Standard',
- blurb: 'Balanced detail. The default for most assets.',
+ blurb:
+ 'Balanced detail, photoreal reference views fused from multiple angles, 2K textures. The default for most assets.',
polycount: 30_000,
pbr: false,
hd: false,
@@ -62,7 +63,8 @@ export const TIERS = Object.freeze({
high: Object.freeze({
id: 'high',
label: 'High',
- blurb: 'Maximum geometric detail + PBR textures. Slower, pricier.',
+ blurb:
+ 'Maximum geometric detail, multi-view fusion at the deepest sampler budget + PBR textures. Slower, pricier.',
polycount: 200_000,
pbr: true,
hd: true,
diff --git a/api/_mcp3d/text-to-image.js b/api/_mcp3d/text-to-image.js
index c001ee0d2..f29a9ec9b 100644
--- a/api/_mcp3d/text-to-image.js
+++ b/api/_mcp3d/text-to-image.js
@@ -576,3 +576,50 @@ export async function textToImage(prompt, { aspectRatio = '1:1', skipNim = false
}
return logImageProvider({ imageUrl: url, predictionId: data.id, model: modelRef });
}
+
+// Turnaround-view instructions for multi-view 3D conditioning. Each rotates the
+// SAME subject; the identity-preservation phrasing ("this exact same subject,
+// identical materials/wear/lighting") is what keeps the Gemini edit from
+// redesigning the object between views — verified live 2026-07-16 (front/side/
+// back of one worn leather chair kept its chassis, scuffs and lighting).
+const TURNAROUND_VIEW_INSTRUCTIONS = [
+ 'Show this exact same subject in direct left side profile view (rotated 90 degrees). Keep the identical subject with identical materials, colors, wear marks and details, identical lighting, and the identical plain background. Same camera distance and framing.',
+ 'Show this exact same subject from directly behind (rotated 180 degrees). Keep the identical subject with identical materials, colors, wear marks and details, identical lighting, and the identical plain background. Same camera distance and framing.',
+];
+
+// Synthesize additional turnaround views (side, then back) of the subject in
+// `primaryImageUrl` for multi-view 3D reconstruction. The self-host TRELLIS
+// worker fuses up to 6 views of one asset — geometry the primary view can't
+// see (backs, sides) stops being hallucinated when real views cover it.
+//
+// Runs only on the Vertex Gemini edit lane (image+instruction), the same GCP
+// credit pool as the primary reference image; there is no NIM/Replicate
+// fallback for edits. Strictly best-effort: any per-view failure (lane
+// unconfigured, safety block, throttle) just yields fewer views — the primary
+// view alone is always a complete input, so this can only ever add quality.
+export async function synthesizeTurnaroundViews(primaryImageUrl, { count = 2 } = {}) {
+ const wanted = TURNAROUND_VIEW_INSTRUCTIONS.slice(0, Math.max(0, count));
+ if (!wanted.length) return [];
+ let editImage;
+ try {
+ const vertex = await import('./vertex-imagen.js');
+ if (!vertex.isConfigured() || !vertexImagenEnabled()) return [];
+ editImage = vertex.editImage;
+ } catch {
+ return [];
+ }
+ const results = await Promise.allSettled(
+ wanted.map((instruction) =>
+ editImage(primaryImageUrl, instruction).then(persistDataUriImage),
+ ),
+ );
+ const views = [];
+ for (const r of results) {
+ if (r.status === 'fulfilled' && r.value?.imageUrl) {
+ views.push(r.value.imageUrl);
+ } else if (r.status === 'rejected') {
+ console.warn(`[text-to-image] turnaround view failed, continuing: ${r.reason?.message}`);
+ }
+ }
+ return views;
+}
diff --git a/api/_providers/gcp.js b/api/_providers/gcp.js
index f41112bc5..afad9e97a 100644
--- a/api/_providers/gcp.js
+++ b/api/_providers/gcp.js
@@ -12,6 +12,12 @@
// Native single-image→3D via Microsoft TRELLIS. Standard task
// shape: POST /infer → { task_id } GET /tasks/:id → result_gcs_url.
//
+// hunyuan → GCP_HUNYUAN3D_URL (workers/model-hunyuan3d)
+// Image→3D via Tencent Hunyuan3D-2 (shape DiT + multiview
+// paint). Same standard task shape as the TRELLIS worker:
+// POST /infer → { task_id } GET /tasks/:id → result_gcs_url.
+// NOT the avatar controller's /reconstruct + /jobs/:id shape.
+//
// remesh → GCP_REMESH_URL (workers/remesh)
// stylize → GCP_STYLIZE_URL (workers/stylize)
// retex → GCP_TEXTURE_URL (workers/texture)
@@ -82,6 +88,10 @@ function serviceUrlForMode(mode) {
// the avatar pipeline's `reconstruct` (face-only, /reconstruct + /jobs/:id);
// this worker speaks the standard /infer + /tasks/:id task shape.
return readEnv('MODEL_TRELLIS_URL');
+ case 'hunyuan':
+ // Self-hosted Hunyuan3D-2 image→3D worker (workers/model-hunyuan3d).
+ // Same standard /infer + /tasks/:id task shape as the TRELLIS worker.
+ return readEnv('GCP_HUNYUAN3D_URL');
case 'text2motion':
return readEnv('GCP_TEXT2MOTION_URL');
case 'video2scene':
@@ -146,6 +156,30 @@ function buildWorkerRequest(request) {
};
}
+ if (mode === 'hunyuan') {
+ // Self-hosted Hunyuan3D-2 image→3D (workers/model-hunyuan3d). Shape DiT
+ // conditions on the primary reference view; the worker isolates the
+ // subject (rembg), cleans the mesh, decimates to the poly budget, and
+ // paints it with the multiview texture pipeline.
+ const photos = Array.isArray(params?.images) && params.images.length
+ ? params.images
+ : [sourceUrl].filter(Boolean);
+ const body = { images: photos, body_type: params?.bodyType || 'neutral' };
+ if (Number.isFinite(Number(params?.target_polycount))) {
+ body.target_polycount = Math.round(Number(params.target_polycount));
+ }
+ // Tier + path select the worker's per-tier generation budget and record
+ // provenance; absent fields mean its high-quality defaults.
+ if (params?.tier) body.tier = params.tier;
+ if (params?.path) body.path = params.path;
+ if (Number.isFinite(Number(params?.seed))) body.seed = Math.floor(Number(params.seed));
+ return {
+ path: '/infer',
+ resultKey: 'result_gcs_url',
+ body,
+ };
+ }
+
if (mode === 'remesh') {
return {
path: '/process',
@@ -332,6 +366,9 @@ function buildWorkerRequest(request) {
const MODE_ETA = {
reconstruct: 120,
trellis: 60,
+ // 50-step shape diffusion + multiview paint on the L4 — much heavier than
+ // TRELLIS's single pass.
+ hunyuan: 300,
remesh: 30,
stylize: 25,
retex: 180,
@@ -344,10 +381,11 @@ const MODE_ETA = {
video2scene: 240,
};
-// `reconstructUrl` overrides where `reconstruct` jobs go — the forge Hunyuan3D
-// lane runs on its own worker (GCP_HUNYUAN3D_URL), not the avatar pipeline
-// controller, whose face pipeline rejects non-face images. Polling needs no
-// override: the job envelope packs the base URL it was submitted to.
+// `reconstructUrl` overrides where `reconstruct` jobs go. The forge Hunyuan3D
+// lane no longer needs it (it has its own `hunyuan` mode above); this remains
+// as an escape hatch for pointing `reconstruct` at an alternate controller.
+// Polling needs no override: the job envelope packs the base URL it was
+// submitted to.
export function createRegenProvider({ reconstructUrl } = {}) {
const apiKey = readEnv('GCP_RECONSTRUCTION_KEY');
if (!apiKey) {
@@ -425,11 +463,15 @@ export function createRegenProvider({ reconstructUrl } = {}) {
}
// Report how the job was conditioned. For reconstruct the worker fuses
- // every image in the body; other modes are single-source.
+ // every image in the body; the Hunyuan3D worker conditions on the
+ // primary view only (report 1 so a multi-view request is never
+ // silently claimed as fused); other modes are single-source.
const viewsUsed =
- (mode === 'reconstruct' || mode === 'trellis') && Array.isArray(workerReq.body.images)
- ? workerReq.body.images.length
- : 0;
+ mode === 'hunyuan'
+ ? 1
+ : (mode === 'reconstruct' || mode === 'trellis') && Array.isArray(workerReq.body.images)
+ ? workerReq.body.images.length
+ : 0;
return {
extJobId: packJobId({ mode, taskId, baseUrl, resultKey: workerReq.resultKey }),
diff --git a/api/forge.js b/api/forge.js
index cf9772e02..7297c131a 100644
--- a/api/forge.js
+++ b/api/forge.js
@@ -54,7 +54,7 @@
import { randomUUID } from 'node:crypto';
import { cors, json, method, readJson, wrap, rateLimited } from './_lib/http.js';
import { limits, clientIp } from './_lib/rate-limit.js';
-import { textToImage } from './_mcp3d/text-to-image.js';
+import { textToImage, synthesizeTurnaroundViews } from './_mcp3d/text-to-image.js';
import { createRegenProvider } from './_providers/replicate.js';
import { createRegenProvider as createGcpProvider } from './_providers/gcp.js';
import { BYOK_PROVIDER_FACTORIES } from './_providers/byok-registry.js';
@@ -1445,9 +1445,11 @@ async function startJob(req, res) {
let provider;
try {
if (backendId === 'hunyuan3d') {
- const hunyuanUrl = process.env.GCP_HUNYUAN3D_URL;
- if (!hunyuanUrl) throw new Error('GCP_HUNYUAN3D_URL is not set');
- provider = createGcpProvider({ reconstructUrl: hunyuanUrl });
+ // The gcp provider's `hunyuan` mode routes to GCP_HUNYUAN3D_URL
+ // (workers/model-hunyuan3d, /infer + /tasks/:id) — fail here only
+ // so an unconfigured deployment gets the branchable 501 below.
+ if (!process.env.GCP_HUNYUAN3D_URL) throw new Error('GCP_HUNYUAN3D_URL is not set');
+ provider = createGcpProvider();
} else if (backendId === 'replicate_byok') {
provider = createRegenProvider({ apiToken: byokReplicateKey });
} else if (backendId === 'huggingface') {
@@ -1560,6 +1562,17 @@ async function startJob(req, res) {
referenceImageUrl = synthesized.imageUrl;
textToImageModel = synthesized.model;
views = [referenceImageUrl];
+ // Multi-view conditioning: rotate the synthesized reference into side +
+ // back turnaround views (Vertex Gemini edit lane) so the self-host
+ // TRELLIS worker fuses real coverage instead of hallucinating the
+ // subject's unseen sides. Only the fusing lane benefits — every other
+ // reconstruct lane conditions on the primary view alone — and draft
+ // keeps its single-view speed. Best-effort: a failed view just means
+ // fewer views, never a failed generation.
+ if (backendId === 'trellis_selfhost' && tier.id !== 'draft') {
+ const turnaround = await synthesizeTurnaroundViews(referenceImageUrl).catch(() => []);
+ if (turnaround.length) views = [referenceImageUrl, ...turnaround];
+ }
}
// Explicitly chosen free HuggingFace lane. Unlike the trellis free-first
@@ -1681,7 +1694,7 @@ async function startJob(req, res) {
// lane that actually runs, so the failover is never silent.
if (process.env.GCP_HUNYUAN3D_URL && process.env.GCP_RECONSTRUCTION_KEY) {
backendId = 'hunyuan3d';
- provider = createGcpProvider({ reconstructUrl: process.env.GCP_HUNYUAN3D_URL });
+ provider = createGcpProvider();
} else {
backendId = 'trellis';
try {
@@ -1797,7 +1810,10 @@ async function startJob(req, res) {
});
}
job = await provider.submit({
- mode: 'reconstruct',
+ // The self-host Hunyuan3D worker speaks the standard /infer +
+ // /tasks/:id task shape (gcp provider mode 'hunyuan'), not the
+ // avatar controller's /reconstruct + /jobs/:id contract.
+ mode: backendId === 'hunyuan3d' ? 'hunyuan' : 'reconstruct',
sourceUrl: referenceImageUrl,
params: reconstructParams,
});
@@ -1871,14 +1887,14 @@ async function startJob(req, res) {
`[forge] platform TRELLIS lane unavailable (${submitErr?.providerStatus || submitErr?.code}); degrading ${mode3d} to self-hosted Hunyuan3D`,
);
backendId = 'hunyuan3d';
- provider = createGcpProvider({ reconstructUrl: hunyuanUrl });
+ provider = createGcpProvider();
// Hunyuan3D is poly-aware — supply the tier budget the TRELLIS params omit.
reconstructParams.target_polycount = opts.targetPolycount ?? tier.polycount;
reconstructParams.tier = tier.id;
reconstructParams.path = path;
if (opts.textureSize) reconstructParams.texture_size = opts.textureSize;
job = await provider.submit({
- mode: 'reconstruct',
+ mode: 'hunyuan',
sourceUrl: referenceImageUrl,
params: reconstructParams,
});
diff --git a/docs/ops/gcp-model-workers.md b/docs/ops/gcp-model-workers.md
index 5b89ecd29..16147b0c0 100644
--- a/docs/ops/gcp-model-workers.md
+++ b/docs/ops/gcp-model-workers.md
@@ -25,10 +25,19 @@ result_* }` — and authenticate with one shared bearer secret.
| `hunyuan3d` | `workers/model-hunyuan3d`| `model-hunyuan3d`| `image` | High-poly image-conditioned reconstruction (Tencent Hunyuan3D). Poly-budget aware. |
| `triposg` | `workers/model-triposg` | `model-triposg` | `sketch` | Sketch→3D (TripoSG-scribble): a drawing + a prompt naming it → untextured geometry. |
-All three are `provider: 'gcp'`, `free: true`, scale-to-zero
-(`_MIN_INSTANCES: "0"`). Scale-to-zero is why a **cold start** is real: a request
-that lands on a spun-down container pays a one-time model-load before the job
-runs. We surface that honestly (see *Cold start*), never as a fake timer.
+All three are `provider: 'gcp'`, `free: true`. `model-trellis` and
+`model-hunyuan3d` pin one always-warm instance (`_MIN_INSTANCES: "1"`) — a cold
+FUSE-mounted weight load can stall for many minutes, and the GCP credit budget
+covers the standing GPU-hour; `model-triposg` scales to zero. A **cold start**
+on a scale-to-zero worker pays a one-time model-load before the job runs. We
+surface that honestly (see *Cold start*), never as a fake timer.
+
+Wire shapes: `model-trellis` and `model-hunyuan3d` both speak the standard task
+shape (`POST /infer` → `{ task_id }`, `GET /tasks/:id` → `result_gcs_url`) —
+the gcp provider drives them with modes `trellis` and `hunyuan` respectively.
+The Hunyuan worker also aliases `/reconstruct` + `/jobs/:id` (returning
+`glb_url`) for callers still on the avatar-controller contract; new code should
+use the `hunyuan` mode.
The `remesh`, `stylize`, `texture`, `rembg`, `segment` workers back
post-generation tools (Game-Ready export, retexture, etc.), not the primary
@@ -128,6 +137,36 @@ progress still comes from real polling of `GET /api/forge?job=<id>`.
---
+## The realism pipeline (text→3D)
+
+Everything below runs on GCP credits; no third-party API is involved.
+
+1. **Prompt direction.** The Granite art-director pass runs by default on text
+ prompts (`director: false` opts out): it rewrites the raw prompt into a
+ single-subject spec with photoreal-by-default material cues
+ (`api/_lib/forge-director-prompts.js`). Fail-soft — a dead LLM lane keeps
+ the raw prompt.
+2. **Reference image.** `textToImage()` leads with the Vertex Gemini image
+ model (`gemini-2.5-flash-image`) when `GOOGLE_CLOUD_PROJECT` is set —
+ materially more photoreal than 4-step distilled FLUX. `VERTEX_IMAGEN_FIRST=0`
+ restores the legacy NIM-first order. `enhanceFluxPrompt()` appends realism +
+ isolation cues unless the caller named an art style or composition.
+3. **Turnaround views.** For the fusing self-host TRELLIS lane at standard/high
+ tier, `synthesizeTurnaroundViews()` rotates the reference into side + back
+ views via the Vertex Gemini edit lane (identity-preserving instructions).
+ Best-effort: a failed view means fewer views, never a failed job.
+4. **Multi-view fusion.** `workers/model-trellis` fuses all supplied views of
+ one subject (`TrellisImageTo3DPipeline.run_multi_image`) so unseen sides
+ stop being hallucinated. Single view uses the plain `run()` path.
+5. **Per-tier sampler/export budgets.** `SELFHOST_TRELLIS_QUALITY`
+ (`api/_lib/forge-tiers.js`) scales diffusion steps, kept geometry and baked
+ texture size per tier (draft 12 steps/1K, standard 25/2K, high 45/2K); the
+ worker clamps every knob server-side (`_clamped_quality`, defaults 25 steps
+ / 2K texture / 0.90 simplify). The Hunyuan3D worker maps `tier` +
+ `target_polycount` to its own generation budgets.
+
+---
+
## Health & cost observability
- **Live health:** `GET /api/forge?health` probes every lane (auth/quota gates,
diff --git a/pages/clip-director.html b/pages/clip-director.html
index 3ebd11309..fc0fc5ffa 100644
--- a/pages/clip-director.html
+++ b/pages/clip-director.html
@@ -93,7 +93,7 @@
<meta property="og:locale" content="en_US">
<meta property="og:image:alt" content="Clip Director: every trade becomes content — three.ws">
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;amp;t=Clip+Director%3A+every+trade+becomes+content&amp;amp;d=Turn+any+trader+agent%27s+real+closed+pump.fun+trade+into+the+optimal+shareable+card+per+surface+%28X%2C+Telegram%2C+or+the+in-app+Feed%29%3A+an+honest+hook%2C+the+real+numbe&amp;amp;p=%2Fclip-director">
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Clip+Director%3A+every+trade+becomes+content&amp;d=Turn+any+trader+agent%27s+real+closed+pump.fun+trade+into+the+optimal+shareable+card+per+surface+%28X%2C+Telegram%2C+or+the+in-app+Feed%29%3A+an+honest+hook%2C+the+real+numbe&amp;p=%2Fclip-director">
</head>
<body>
<header><div id="nav-container"></div></header>
diff --git a/pages/create-agent.html b/pages/create-agent.html
index 5721c7a33..48c0e825a 100644
--- a/pages/create-agent.html
+++ b/pages/create-agent.html
@@ -538,6 +538,9 @@
margin-right: 1px;
}
.magic-chip {
+ display: inline-flex;
+ align-items: center;
+ min-height: 32px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border-strong);
border-radius: 999px;
diff --git a/pages/irl.html b/pages/irl.html
index c910b6253..077cd6e51 100644
--- a/pages/irl.html
+++ b/pages/irl.html
@@ -2014,6 +2014,7 @@
not a primary action. Sits under the message composer. */
.irl-sheet-report {
display: block;
+ min-height: 32px;
margin: 14px auto 0;
padding: 6px 10px;
background: none;
diff --git a/pages/marketplace.html b/pages/marketplace.html
index d8742d914..2f86a6c93 100644
--- a/pages/marketplace.html
+++ b/pages/marketplace.html
@@ -185,6 +185,9 @@
.market-card-avatar .title-row .title {
flex: 1;
min-width: 0;
+ display: inline-flex;
+ align-items: center;
+ min-height: 32px;
}
.market-card-avatar .desc {
font-size: 12px;
@@ -466,17 +469,28 @@
margin-top: 10px;
}
.market-hero-dots button {
+ /* Visual indicator stays a thin 26x4 bar (background-clip: content-box
+ paints only that area); the invisible padding grows the actual
+ tappable box to the 32px accessibility floor without changing how
+ it looks. box-sizing pinned so the padding math holds regardless
+ of any global reset. */
+ box-sizing: content-box;
width: 26px;
height: 4px;
+ padding: 14px 6px;
+ background-clip: content-box;
border-radius: 2px;
border: 0;
- background: rgba(255, 255, 255, 0.12);
- padding: 0;
+ background-color: rgba(255, 255, 255, 0.12);
cursor: pointer;
transition: background 0.2s ease;
}
.market-hero-dots button.active {
- background: #fafafa;
+ /* background-color, not the shorthand: the shorthand resets
+ background-clip to border-box, which would grow this dot to fill
+ its whole (invisibly padded) tap-target box instead of staying a
+ thin bar. */
+ background-color: #fafafa;
}
.market-hero-dots button:focus-visible {
outline: 2px solid #ffffff;
diff --git a/pages/meta-allocator.html b/pages/meta-allocator.html
index b191fea88..5be6ac44b 100644
--- a/pages/meta-allocator.html
+++ b/pages/meta-allocator.html
@@ -106,7 +106,7 @@
<meta property="og:locale" content="en_US">
<meta property="og:image:alt" content="Meta-Allocator: the ETF of degens — three.ws">
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;amp;t=Meta-Allocator%3A+the+ETF+of+degens&amp;amp;d=Do+not+pick+a+coin%2C+pick+a+basket+of+proven+traders.+The+Meta-Allocator+spreads+a+budget+across+the+top+verified+pump.fun+trader+agents%2C+ranked+by+risk-adjusted&amp;amp;p=%2Fmeta-allocator">
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Meta-Allocator%3A+the+ETF+of+degens&amp;d=Do+not+pick+a+coin%2C+pick+a+basket+of+proven+traders.+The+Meta-Allocator+spreads+a+budget+across+the+top+verified+pump.fun+trader+agents%2C+ranked+by+risk-adjusted&amp;p=%2Fmeta-allocator">
</head>
<body>
<header><div id="nav-container"></div></header>
diff --git a/pages/partners.html b/pages/partners.html
index c6d7e9a7d..8a2330948 100644
--- a/pages/partners.html
+++ b/pages/partners.html
@@ -13,13 +13,13 @@
<meta property="og:title" content="Partner Ecosystem — three.ws" />
<meta property="og:description" content="The cloud and AI platforms powering 3D AI agents at enterprise scale." />
<meta property="og:url" content="https://three.ws/partners" />
- <meta property="og:image" content="https://three.ws/api/page-og?s=main&amp;t=Partner+Ecosystem&amp;d=three.ws+partner+ecosystem+%E2%80%94+AWS%2C+IBM%2C+Google+Cloud%2C+Alibaba+Cloud%2C+Intel%2C+NVIDIA%2C+Microsoft%2C+Oracle.+The+cloud+and+AI+platforms+powering+3D+AI+agents+at+enterp&amp;p=%2Fpartners" />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=main&amp;t=Partner+Ecosystem&amp;d=three.ws+partner+ecosystem+%E2%80%94+AWS%2C+IBM%2C+Google+Cloud%2C+Alibaba+Cloud%2C+Intel%2C+NVIDIA%2C+Microsoft%2C+Oracle%2C+QuickNode.+The+cloud%2C+AI%2C+and+blockchain+infrastructure+pl&amp;p=%2Fpartners" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Partner Ecosystem — three.ws" />
<meta name="twitter:description" content="The cloud and AI platforms powering 3D AI agents at enterprise scale." />
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&amp;t=Partner+Ecosystem&amp;d=three.ws+partner+ecosystem+%E2%80%94+AWS%2C+IBM%2C+Google+Cloud%2C+Alibaba+Cloud%2C+Intel%2C+NVIDIA%2C+Microsoft%2C+Oracle.+The+cloud+and+AI+platforms+powering+3D+AI+agents+at+enterp&amp;p=%2Fpartners" />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&amp;t=Partner+Ecosystem&amp;d=three.ws+partner+ecosystem+%E2%80%94+AWS%2C+IBM%2C+Google+Cloud%2C+Alibaba+Cloud%2C+Intel%2C+NVIDIA%2C+Microsoft%2C+Oracle%2C+QuickNode.+The+cloud%2C+AI%2C+and+blockchain+infrastructure+pl&amp;p=%2Fpartners" />
<meta name="twitter:site" content="@trythreews" />
<link rel="canonical" href="https://three.ws/partners" />
<link rel="icon" href="/favicon.ico" sizes="any" />
diff --git a/scripts/audit-links.mjs b/scripts/audit-links.mjs
index 9a1efe8ac..7a18a6fdb 100644
--- a/scripts/audit-links.mjs
+++ b/scripts/audit-links.mjs
@@ -268,7 +268,14 @@ function danglingRoutes() {
if (!dest.endsWith('.html')) continue;
if (dest.includes('$')) continue; // dest uses a capture group — resolved per-request
const p = dest.replace(/^\/+/, '');
- const exists = fileExists(join(ROOT, 'pages', p)) || fileExists(join(ROOT, 'public', p));
+ // pages/ and public/ cover most dests, but a few top-level content trees
+ // (docs/, blog/) sit directly at the repo root as siblings of pages/ —
+ // check there too, or every one of their vercel.json routes false-positives
+ // as dangling despite serving real 200s in production.
+ const exists =
+ fileExists(join(ROOT, 'pages', p)) ||
+ fileExists(join(ROOT, 'public', p)) ||
+ fileExists(join(ROOT, p));
if (!exists) out.push({ src: r.src, dest: r.dest });
}
return out;
diff --git a/src/animations-live-preview.js b/src/animations-live-preview.js
index edc371ca8..ff22dad5d 100644
--- a/src/animations-live-preview.js
+++ b/src/animations-live-preview.js
@@ -68,7 +68,10 @@ export class AnimationLivePreview {
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2));
renderer.shadowMap.enabled = true;
- renderer.shadowMap.type = THREE.PCFSoftShadowMap;
+ // PCFSoftShadowMap is deprecated and silently downgrades to hard
+ // PCFShadowMap at runtime (console warning, worse shadow edges).
+ // VSMShadowMap is the still-supported soft-shadow type.
+ renderer.shadowMap.type = THREE.VSMShadowMap;
renderer.toneMapping = THREE.ACESFilmicToneMapping;
renderer.toneMappingExposure = 1.05;
renderer.domElement.className = 'alp-canvas';
diff --git a/src/genome.js b/src/genome.js
index 738221930..c4285a61c 100644
--- a/src/genome.js
+++ b/src/genome.js
@@ -304,8 +304,8 @@ function renderBorn(data) {
banner.className = 'gn-note';
banner.dataset.kind = 'success';
banner.innerHTML = `🧬 <strong>${escapeHtml(child.name || 'Offspring')}</strong> was born — a generation ${child.generation} ${escapeHtml(child.pedigree?.tier || 'common')} agent with its own fresh wallet.
- <a class="gn-hero-link" href="/agent-detail?id=${escapeAttr(child.id)}">Open agent →</a>
- · <a class="gn-hero-link" href="/agent-detail?id=${escapeAttr(child.id)}" data-verify="${escapeAttr(child.id)}">Verify lineage</a>`;
+ <a class="gn-hero-link" href="/agents/${escapeAttr(child.id)}">Open agent →</a>
+ · <a class="gn-hero-link" href="/agents/${escapeAttr(child.id)}" data-verify="${escapeAttr(child.id)}">Verify lineage</a>`;
el.prepend(banner);
banner.querySelector('[data-verify]').addEventListener('click', (e) => { e.preventDefault(); verifyLineage(child.id); });
// Refresh studs (a notable birth may shift the rarest-first ordering).
diff --git a/src/irl.js b/src/irl.js
index a716fca7d..9b5c1dbaf 100644
--- a/src/irl.js
+++ b/src/irl.js
@@ -20,7 +20,6 @@ import {
MeshStandardMaterial,
OctahedronGeometry,
OrthographicCamera,
- PCFSoftShadowMap,
PerspectiveCamera,
PlaneGeometry,
PMREMGenerator,
@@ -36,6 +35,7 @@ import {
TorusGeometry,
Vector2,
Vector3,
+ VSMShadowMap,
WebGLRenderer,
WebGLRenderTarget,
} from 'three';
@@ -204,7 +204,10 @@ renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
renderer.setSize(window.innerWidth, window.innerHeight, false);
renderer.setClearColor(0x000000, 0);
renderer.shadowMap.enabled = true;
-renderer.shadowMap.type = PCFSoftShadowMap;
+// PCFSoftShadowMap is deprecated in three.js and silently downgrades to hard
+// PCFShadowMap at runtime (console warning, worse shadow edges). VSMShadowMap
+// is the still-supported soft-shadow type — same intent, actually honored.
+renderer.shadowMap.type = VSMShadowMap;
// Filmic tone mapping is what separates "sticker pasted on the camera feed"
// from "object standing in the room" — highlight rolloff + midtone contrast,
// the same treatment Quick Look applies to a USDZ. Exposure compensates for
diff --git a/src/irl/onboarding.js b/src/irl/onboarding.js
index 669ead2cf..5c1cc44d4 100644
--- a/src/irl/onboarding.js
+++ b/src/irl/onboarding.js
@@ -555,7 +555,7 @@ const ONBOARD_CSS = `
.irl-ob-sub { margin: 0; font-size: 13px; line-height: 1.5; color: #93a1b5; }
.irl-ob-learn {
display: inline-flex; align-items: center; gap: 5px;
- margin-top: 9px;
+ min-height: 32px; margin: 5px -6px 0; padding: 0 6px;
font: 500 12px/1 var(--font-body, system-ui, sans-serif);
color: #7dd3fc; text-decoration: none;
transition: color .15s;
diff --git a/workers/model-trellis/Dockerfile b/workers/model-trellis/Dockerfile
index 180d36bd2..8500595fe 100644
--- a/workers/model-trellis/Dockerfile
+++ b/workers/model-trellis/Dockerfile
@@ -80,7 +80,12 @@ RUN pip install \
# plain clone leaves that dir a bare gitlink, so `from .flexicubes.flexicubes
# import FlexiCubes` fails at model load with ModuleNotFoundError and the worker
# crashes on startup before binding the port.
-RUN git clone --recurse-submodules https://github.com/microsoft/TRELLIS.git /app/TRELLIS
+# Pinned (2026-07-16): a moving `main` broke this worker's rebuild once already
+# (the transformers pin below exists for the same reason). This sha is verified
+# to carry run_multi_image, which main.py uses for multi-view fusion.
+RUN git clone --recurse-submodules https://github.com/microsoft/TRELLIS.git /app/TRELLIS \
+ && git -C /app/TRELLIS checkout 442aa1e1afb9014e80681d3bf604e8d728a86ee7 \
+ && git -C /app/TRELLIS submodule update --init --recursive
WORKDIR /app
COPY worker_security.py /app/worker_security.py
diff --git a/workers/model-trellis/main.py b/workers/model-trellis/main.py
index a558fd00e..859965c9d 100644
--- a/workers/model-trellis/main.py
+++ b/workers/model-trellis/main.py
@@ -3,9 +3,14 @@ TRELLIS inference service — single-image to textured 3D mesh via structured
latent representations (Microsoft, MIT license).
API contract (consumed by the Pipeline Controller):
- POST /infer { images: [data-uri|url, ...], body_type?: str, job_id?: str }
+ POST /infer { images: [data-uri|url, ...], body_type?: str, job_id?: str,
+ seed?: int, quality?: {…} }
→ 202 { task_id, status: "queued" }
+ Multiple images are FUSED as multi-view conditioning of one asset
+ (TrellisImageTo3DPipeline.run_multi_image): send turnaround views
+ (front/side/back) of the same subject, not unrelated photos.
+
GET /tasks/:id → { task_id, status, result_gcs_url?, error? }
GET /health → { ok, model, gpu_available }
@@ -281,7 +286,11 @@ def _clamped_quality(q: dict | None) -> dict:
async def _run_inference(
- task_id: str, images: list[str], body_type: str, quality: dict | None = None
+ task_id: str,
+ images: list[str],
+ body_type: str,
+ quality: dict | None = None,
+ seed: int | None = None,
) -> None:
# Wait for the background pipeline load before touching the GPU. Warm
# instances pass instantly; a cold one waits out the load rather than
@@ -305,7 +314,7 @@ async def _run_inference(
loop = asyncio.get_event_loop()
t0 = time.time()
try:
- img = await loop.run_in_executor(None, _decode_image, images[0])
+ imgs = [await loop.run_in_executor(None, _decode_image, src) for src in images]
def _generate():
# GLB export lives in trellis.utils.postprocessing_utils.to_glb —
@@ -314,14 +323,21 @@ async def _run_inference(
# the structured-latent generation).
from trellis.utils import postprocessing_utils
- outputs = _pipeline.run(
- img,
- seed=42,
+ sampler_kwargs = dict(
+ seed=seed if seed is not None else 42,
formats=["gaussian", "mesh"],
preprocess_image=True,
sparse_structure_sampler_params={"steps": q["ss_steps"], "cfg_strength": q["ss_cfg"]},
slat_sampler_params={"steps": q["slat_steps"], "cfg_strength": q["slat_cfg"]},
)
+ if len(imgs) > 1:
+ # Turnaround views of one subject fuse into a single asset —
+ # geometry the primary view can't see (backs, sides) stops
+ # being hallucinated. 'stochastic' is upstream's default and
+ # the cheaper of the two fusion modes.
+ outputs = _pipeline.run_multi_image(imgs, mode="stochastic", **sampler_kwargs)
+ else:
+ outputs = _pipeline.run(imgs[0], **sampler_kwargs)
glb = postprocessing_utils.to_glb(
outputs["gaussian"][0],
outputs["mesh"][0],
@@ -345,6 +361,7 @@ async def _run_inference(
task_id,
status="done",
result_gcs_url=gcs_url,
+ views_used=len(imgs),
elapsed_ms=int(elapsed * 1000),
)
log.info("[%s] done in %.1fs — %d bytes → %s", task_id, elapsed, len(glb_bytes), gcs_url)
@@ -366,6 +383,8 @@ class InferRequest(BaseModel):
# ss_cfg, slat_cfg, simplify, texture_size) — see _clamped_quality. Omitted
# or partial fields fall back to the platform quality-bar defaults.
quality: dict | None = None
+ # Deterministic sampling seed; omitted keeps the historical default (42).
+ seed: int | None = None
@app.post("/infer", status_code=202)
@@ -380,7 +399,9 @@ async def infer(
# different instance than this one the moment the 202 lands, and that
# instance has nothing in its local `_tasks` dict to fall back on.
await _update_task(task_id, status="queued", model="trellis-large")
- background_tasks.add_task(_run_inference, task_id, body.images, body.body_type, body.quality)
+ background_tasks.add_task(
+ _run_inference, task_id, body.images, body.body_type, body.quality, body.seed
+ )
return {"task_id": task_id, "status": "queued"}
diff --git a/workers/model-triposg/Dockerfile b/workers/model-triposg/Dockerfile
index 45fdb04fd..26534e926 100644
--- a/workers/model-triposg/Dockerfile
+++ b/workers/model-triposg/Dockerfile
@@ -26,8 +26,13 @@ RUN pip install torch==2.3.1 torchvision==0.18.1 --index-url https://download.py
# TripoSG is not a pip package (no setup.py/pyproject) — clone it, install its
# own deps (incl. diso, which compiles here), and put it on PYTHONPATH.
+# --no-build-isolation: diso's sdist build needs torch (already installed
+# above) visible to detect CUDA capability; pip's default isolated build env
+# hides it, failing with "ModuleNotFoundError: No module named 'torch'".
+# Every other requirement here resolves to a prebuilt wheel (no build step),
+# so this only changes behavior for the one package that needs it.
RUN git clone --depth 1 https://github.com/VAST-AI-Research/TripoSG.git /opt/triposg \
- && pip install -r /opt/triposg/requirements.txt
+ && pip install --no-build-isolation -r /opt/triposg/requirements.txt
COPY requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt