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(viewer): stop auto-playing first animation on model load

nirholas5bd0a435b309
diff --git a/public/discover/index.html b/public/my-agents/index.html
similarity index 100%
rename from public/discover/index.html
rename to public/my-agents/index.html
diff --git a/public/discover/discover.css b/public/my-agents/my-agents.css
similarity index 100%
rename from public/discover/discover.css
rename to public/my-agents/my-agents.css
diff --git a/public/discover/discover.js b/public/my-agents/my-agents.js
similarity index 100%
rename from public/discover/discover.js
rename to public/my-agents/my-agents.js
diff --git a/src/viewer.js b/src/viewer.js
index f02266a93..548c6670a 100644
--- a/src/viewer.js
+++ b/src/viewer.js
@@ -896,20 +896,14 @@ export class Viewer {
// Render buttons
this._renderAnimButtons();
- // Load all animations in background
+ // Load all animations in background. We deliberately do NOT auto-play
+ // the first animation: external Mixamo-rigged FBX clips often retarget
+ // imperfectly onto Ready Player Me / Avaturn avatars, which collapses
+ // the rig and makes the model look "disappeared" on first load. Show
+ // the authored pose instead and let the user pick an animation when
+ // they want one.
this.animationManager.loadAll().then(() => {
this._renderAnimButtons();
- // Auto-play the first animation if nothing is playing
- if (!this.animationManager.currentName && defs.length > 0) {
- const firstName = defs[0].name;
- if (this.animationManager.isLoaded(firstName)) {
- this.animationManager.play(firstName);
- this._renderAnimButtons();
- this.invalidate();
- this._recomputeAnimating();
- this._updateRenderLoop();
- }
- }
});
// Stop button