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.

fix: mark subproject commits as dirty for worktree consistency

nirholas27b341fec084
diff --git a/home.css b/home.css
index 83faafc04..637689633 100644
--- a/home.css
+++ b/home.css
@@ -903,9 +903,10 @@
.h-layer-bg--mint {
background:
- radial-gradient(ellipse at 30% 40%, rgba(110, 231, 183, 0.15) 0%, transparent 55%),
- radial-gradient(ellipse at 80% 75%, rgba(255, 215, 106, 0.06) 0%, transparent 55%),
- linear-gradient(180deg, #06120e 0%, #06070b 100%);
+ radial-gradient(ellipse at 30% 40%, rgba(110, 231, 183, 0.12) 0%, transparent 55%),
+ radial-gradient(ellipse at 70% 60%, rgba(56, 189, 248, 0.10) 0%, transparent 50%),
+ radial-gradient(ellipse at 80% 75%, rgba(255, 215, 106, 0.04) 0%, transparent 55%),
+ linear-gradient(180deg, #060e14 0%, #06070b 100%);
}
/* ── Act depth orbs ──────────────────────────────────────────────────────── */
@@ -926,7 +927,7 @@
}
.h-layer-orb--mint {
- background: radial-gradient(circle, #6ee7b7, transparent 70%);
+ background: radial-gradient(circle, color-mix(in srgb, #6ee7b7 60%, #38bdf8 40%), transparent 70%);
top: 18%;
right: 8%;
}
@@ -974,9 +975,9 @@
inset: -2rem -2rem -2rem -2rem;
background: linear-gradient(
100deg,
- rgba(6, 18, 14, 0.92) 0%,
- rgba(6, 18, 14, 0.78) 45%,
- rgba(6, 18, 14, 0.35) 75%,
+ rgba(4, 12, 20, 0.96) 0%,
+ rgba(4, 12, 20, 0.88) 45%,
+ rgba(4, 12, 20, 0.45) 75%,
transparent 100%
);
z-index: -1;
@@ -987,11 +988,31 @@
/* ── Ghost avatar (Act 3, depth 1) ──────────────────────────────────────── */
.h-avatar-wrap--ghost {
- opacity: 0.15;
- filter: blur(0.5px) hue-rotate(130deg) saturate(0.4);
+ opacity: 0.18;
+ filter: blur(0.5px) hue-rotate(150deg) saturate(0.5);
pointer-events: none;
}
+.h-avatar-stage--trio {
+ flex-direction: row;
+ align-items: flex-end;
+ justify-content: center;
+ gap: 4vw;
+ padding-bottom: 4vh;
+}
+
+.h-avatar-wrap--trio {
+ width: clamp(140px, 20vw, 300px);
+ aspect-ratio: 2 / 3;
+}
+
+.h-avatar-viewer--tall {
+ border-radius: 8px;
+ display: block;
+ width: 100%;
+ height: 100%;
+}
+
/* ── Sticky act text (same as h-hero-text but for acts 2/3) ─────────────── */
.h-act-text {
diff --git a/home.html b/home.html
index c72fd2b44..e69dd1d56 100644
--- a/home.html
+++ b/home.html
@@ -252,24 +252,15 @@
<div class="h-layer-orb h-layer-orb--mint"></div>
</div>
<div class="h-layer" style="--depth: 1" aria-hidden="true">
- <div class="h-avatar-stage">
- <div class="h-avatar-wrap h-avatar-wrap--ghost">
- <model-viewer
- class="h-avatar-viewer"
- src="/avatars/cz.glb"
- auto-rotate
- auto-rotate-delay="0"
- rotation-per-second="8deg"
- interaction-prompt="none"
- camera-controls="false"
- disable-zoom
- shadow-intensity="0"
- exposure="0.6"
- environment-image="neutral"
- camera-orbit="0deg 75deg 3.5m"
- field-of-view="30deg"
- loading="lazy"
- ></model-viewer>
+ <div class="h-avatar-stage h-avatar-stage--trio">
+ <div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
+ <canvas id="act3-avatar-a" class="h-avatar-viewer h-avatar-viewer--tall"></canvas>
+ </div>
+ <div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
+ <canvas id="act3-avatar-b" class="h-avatar-viewer h-avatar-viewer--tall"></canvas>
+ </div>
+ <div class="h-avatar-wrap h-avatar-wrap--ghost h-avatar-wrap--trio">
+ <canvas id="act3-avatar-c" class="h-avatar-viewer h-avatar-viewer--tall"></canvas>
</div>
</div>
</div>
@@ -479,12 +470,13 @@
</div>
<nav class="h-footer-links" aria-label="Footer">
<a href="https://github.com/nirholas/3D" target="_blank" rel="noopener">GitHub</a>
- <a href="/features">Features</a>
+ <a href="/create">Create</a>
+ <a href="/studio">Studio</a>
<a href="/widgets">Widgets</a>
+ <a href="/features">Features</a>
<a href="/discover">Discover</a>
+ <a href="/docs/widgets">Docs</a>
<a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a>
- <a href="/legal/privacy">Privacy</a>
- <a href="/legal/tos">Terms</a>
</nav>
<p class="h-footer-copy">Open source · MIT license</p>
</div>
@@ -571,10 +563,15 @@
requestAnimationFrame(tick);
})();
- viewer.loadModel('/avatars/cz.glb').catch(console.error);
+ viewer.loadModel('/avatars/cz.glb')
+ .then(async () => {
+ await viewer.playClip('falling').catch(() => {});
+ setTimeout(() => viewer.playClip('dance').catch(() => {}), 2600);
+ })
+ .catch(console.error);
- /* click → random manifest animation; non-looping ones return to idle */
- const FUN = ['wave', 'dance', 'celebrate', 'jump', 'silly', 'rumba', 'capoeira', 'thriller'];
+ /* click → random manifest animation; non-looping ones return to dance */
+ const FUN = ['falling', 'wave', 'dance', 'celebrate', 'jump', 'rumba', 'capoeira', 'thriller', 'kiss', 'taunt', 'pray'];
let lastAnim = null;
canvas.style.cursor = 'pointer';
canvas.addEventListener('click', async () => {
@@ -585,7 +582,7 @@
await viewer.playClip(name);
const def = viewer._manifest.find(d => d.name === name);
if (def && !def.loop) {
- setTimeout(() => viewer.playClip('idle').catch(() => {}), 2600);
+ setTimeout(() => viewer.playClip('dance').catch(() => {}), 2600);
}
} catch (_) {}
});
@@ -712,7 +709,9 @@
}
viewer.onClipsReady = buildButtons;
- viewer.loadModel('/avatars/cz.glb').catch(console.error);
+ viewer.loadModel('/avatars/cz.glb')
+ .then(() => viewer.playClip('capoeira').catch(() => {}))
+ .catch(console.error);
if (stopBtn) {
stopBtn.addEventListener('click', () => {
@@ -728,7 +727,7 @@
(function () {
const ribbon = document.querySelector('[data-role="home-chain-ribbon"]');
if (!ribbon) return;
- const labels = ['Solana','Base','Ethereum','Optimism','Polygon','Avalanche','Celo','Linea','zkSync','Scroll','Blast','Mode'];
+ const labels = ['Solana','Base','Ethereum','BSC','Arbitrum','Avalanche','Celo','Linea','zkSync','Scroll','Optimism','Mode'];
ribbon.replaceChildren(...labels.map(l => {
const s = document.createElement('span');
s.className = 'chain-pill';
@@ -757,6 +756,31 @@
})();
})();
+ // Act 3 — animated trio of ghost avatars (robot, CZ, soldier)
+ (function () {
+ const configs = [
+ { id: 'act3-avatar-a', src: '/animations/robotexpressive.glb', anim: 'capoeira' },
+ { id: 'act3-avatar-b', src: '/avatars/cz.glb', anim: 'rumba' },
+ { id: 'act3-avatar-c', src: '/animations/soldier.glb', anim: 'wave' },
+ ];
+
+ function whenReady(cb) {
+ if (window.Act2Viewer) return cb();
+ setTimeout(() => whenReady(cb), 60);
+ }
+
+ whenReady(() => {
+ configs.forEach(({ id, src, anim }) => {
+ const canvas = document.getElementById(id);
+ if (!canvas) return;
+ const viewer = new window.Act2Viewer(canvas, { fov: 22 });
+ viewer.loadModel(src)
+ .then(() => viewer.playClip(anim).catch(() => {}))
+ .catch(() => {});
+ });
+ });
+ })();
+
// Star field canvas
(function () {
for (const canvas of document.querySelectorAll('[data-role="star-canvas"]')) {
diff --git a/index.html b/index.html
index 6556a4463..a0cebe99e 100644
--- a/index.html
+++ b/index.html
@@ -1167,14 +1167,16 @@
<footer class="features-footer">
<p>
three.ws ·
- <a href="https://github.com/nirholas/3D" target="_blank" rel="noopener"
- >GitHub</a
- >
- · <a href="/docs/widgets">Docs</a> · <a href="/deploy">Deploy on-chain</a> ·
- <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener"
- >ERC-8004</a
- >
- · <a href="/legal/privacy">Privacy</a> · <a href="/legal/tos">Terms</a>
+ <a href="https://github.com/nirholas/3D" target="_blank" rel="noopener">GitHub</a> ·
+ <a href="/create">Create</a> ·
+ <a href="/studio">Studio</a> ·
+ <a href="/widgets">Widgets</a> ·
+ <a href="/features">Features</a> ·
+ <a href="/discover">Discover</a> ·
+ <a href="/docs/widgets">Docs</a> ·
+ <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a> ·
+ <a href="/legal/privacy">Privacy</a> ·
+ <a href="/legal/tos">Terms</a>
</p>
</footer>
</main>
diff --git a/public/features/features.css b/public/features/features.css
index e871864ea..a15d9ca96 100644
--- a/public/features/features.css
+++ b/public/features/features.css
@@ -78,8 +78,6 @@
display: block;
height: var(--features-act-height);
transform-style: preserve-3d;
- overflow: hidden;
- isolation: isolate;
}
.parallax-act + .parallax-act {
diff --git a/public/features/index.html b/public/features/index.html
index b1fc8ec4a..7c054d481 100644
--- a/public/features/index.html
+++ b/public/features/index.html
@@ -438,21 +438,16 @@
<footer class="features-footer">
<p>
three.ws ·
- <a
- href="https://github.com/nirholas/3D"
- target="_blank"
- rel="noopener"
- aria-label="three.ws on GitHub (opens in a new tab)"
- >GitHub</a
- >
- · Built on
- <a
- href="https://eips.ethereum.org/EIPS/eip-8004"
- target="_blank"
- rel="noopener"
- aria-label="ERC-8004 specification (opens in a new tab)"
- >ERC-8004</a
- >
+ <a href="https://github.com/nirholas/3D" target="_blank" rel="noopener">GitHub</a> ·
+ <a href="/create">Create</a> ·
+ <a href="/studio">Studio</a> ·
+ <a href="/widgets">Widgets</a> ·
+ <a href="/features">Features</a> ·
+ <a href="/discover">Discover</a> ·
+ <a href="/docs/widgets">Docs</a> ·
+ <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a> ·
+ <a href="/legal/privacy">Privacy</a> ·
+ <a href="/legal/tos">Terms</a>
</p>
</footer>
</section>
diff --git a/public/widgets-gallery/index.html b/public/widgets-gallery/index.html
index b9e32ac76..ad168e791 100644
--- a/public/widgets-gallery/index.html
+++ b/public/widgets-gallery/index.html
@@ -80,9 +80,17 @@
<footer class="gallery-footer">
<p>
- three.ws · <a href="/">Viewer</a> · <a href="/widgets">Widgets</a> ·
+ three.ws ·
+ <a href="https://github.com/nirholas/3D" target="_blank" rel="noopener">GitHub</a> ·
+ <a href="/create">Create</a> ·
+ <a href="/studio">Studio</a> ·
+ <a href="/widgets">Widgets</a> ·
+ <a href="/features">Features</a> ·
+ <a href="/discover">Discover</a> ·
<a href="/docs/widgets">Docs</a> ·
- <a href="https://github.com/nirholas/3D">GitHub</a>
+ <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a> ·
+ <a href="/legal/privacy">Privacy</a> ·
+ <a href="/legal/tos">Terms</a>
</p>
</footer>
diff --git a/src/home-act2-viewer.js b/src/home-act2-viewer.js
index 12a29b64a..f98d9c6aa 100644
--- a/src/home-act2-viewer.js
+++ b/src/home-act2-viewer.js
@@ -205,14 +205,13 @@ export class Act2Viewer {
}
_pickStartName() {
- /* prefer 'idle', then anything matching 'Idle*', then first manifest entry,
- then first baked clip */
+ const SKIP = ['idle', 'silly'];
const all = this.listAvailableClips();
- const idle = all.find((c) => c.name.toLowerCase() === 'idle');
- if (idle) return idle.name;
- const idleish = all.find((c) => c.name.toLowerCase().includes('idle'));
- if (idleish) return idleish.name;
- return all[0]?.name || null;
+ for (const preferred of ['dance', 'rumba', 'capoeira', 'wave', 'thriller']) {
+ const match = all.find((c) => c.name === preferred);
+ if (match) return match.name;
+ }
+ return all.find((c) => !SKIP.some(s => c.name.toLowerCase().includes(s)))?.name || all[0]?.name || null;
}
async playClip(name) {