@fleox/agent3d 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +350 -126
- package/changelog.json +12 -0
- package/dist/agent/agent3d.mjs +16 -16
- package/dist/agent/chunks/{cdp-CaKRRzMX.mjs → cdp-Bdtm4fBN.mjs} +3 -2
- package/dist/agent/chunks/{imageCodec-BpDU9Lsq.mjs → imageCodec-Dz9PFxi9.mjs} +1 -1
- package/dist/agent/chunks/{package-Ck7_Nszg.mjs → package-BOIyp_2B.mjs} +1 -1
- package/dist/agent/chunks/{render-Cbuhz5uW.mjs → render-CN4mgGLQ.mjs} +2 -2
- package/dist/runtime/agent3d-runtime.js +23 -23
- package/dist/runtime/agent3d-runtime.single.js +2 -2
- package/dist/runtime/chunks/{BufferGeometryUtils-Re3wQkXp.js → BufferGeometryUtils-XmME4f7Z.js} +1 -1
- package/dist/runtime/chunks/{EXRLoader-Bzm84si5.js → EXRLoader-CBdIpBMT.js} +1 -1
- package/dist/runtime/chunks/{FontLoader-BocwqK8V.js → FontLoader-dVu9WH2X.js} +1 -1
- package/dist/runtime/chunks/GLTFLoader-Z9Inv-Xm.js +1 -0
- package/dist/runtime/chunks/{GroundedSkybox-esvlRCO0.js → GroundedSkybox-g1ASZWNu.js} +1 -1
- package/dist/runtime/chunks/{HDRLoader-DHrHp8fs.js → HDRLoader-DBOMWa7O.js} +2 -2
- package/dist/{studio/assets/OrbitControls-fcOgB96a.js → runtime/chunks/OrbitControls-BIpWXK4x.js} +1 -1
- package/dist/runtime/chunks/{RectAreaLightUniformsLib-_mZ62yWn.js → RectAreaLightUniformsLib-4ZzgX9vp.js} +1 -1
- package/dist/runtime/chunks/{RoomEnvironment-CL4UR6ZW.js → RoomEnvironment-CXgfLJdO.js} +1 -1
- package/dist/runtime/chunks/{RoundedBoxGeometry-x-ot8ZSh.js → RoundedBoxGeometry-BViRogcJ.js} +1 -1
- package/dist/runtime/chunks/{SVGLoader-hRF0EwD-.js → SVGLoader-CV0U1EIF.js} +1 -1
- package/dist/runtime/chunks/{Sky-BrLN9Fk5.js → Sky-DGJXlPb_.js} +1 -1
- package/dist/runtime/chunks/{extrude-m04mghOS.js → extrude-D6WnITQq.js} +1 -1
- package/dist/runtime/chunks/{game-BoG2S6g4.js → game-BoEiyZrL.js} +3 -3
- package/dist/runtime/chunks/generators-D5JUo0jp.js +331 -0
- package/dist/runtime/chunks/{materials-C2uffFEd.js → materials-Dn-bYrZd.js} +5 -5
- package/dist/runtime/chunks/{model-D-4xZz21.js → model-BCVF3QzB.js} +1 -1
- package/dist/runtime/chunks/{params-DdApDOBw.js → params-C2uoUDJ0.js} +1 -1
- package/dist/runtime/chunks/{physicsHost-DPaVdM0R.js → physicsHost-ChPgysMQ.js} +1 -1
- package/dist/runtime/chunks/{postfx-BpBXjLX3.js → postfx-UgKCbmZs.js} +29 -29
- package/dist/{studio/assets/shaders-BEznGIct.js → runtime/chunks/shaders-Dw6zHdu_.js} +3 -3
- package/dist/runtime/chunks/svg-CmlFY_8O.js +1 -0
- package/dist/runtime/chunks/{text-CmkU-b0C.js → text-D1EQpdSU.js} +2 -2
- package/dist/runtime/chunks/{three.module-W4hp4qHb.js → three.module-DnaBiDAJ.js} +31 -31
- package/dist/runtime/chunks/{toon-B5Jhf37V.js → toon-BsvVk_nK.js} +1 -1
- package/dist/runtime/chunks/{util-THUewKBk.js → util-CyaW1fcW.js} +1 -1
- package/dist/studio/assets/{BufferGeometryUtils-wW9vV1l2.js → BufferGeometryUtils-CAlXAboW.js} +1 -1
- package/dist/studio/assets/{EXRLoader-f8U8jnlr.js → EXRLoader-BKkzlNd8.js} +1 -1
- package/dist/studio/assets/{FontLoader-9sHudKzD.js → FontLoader-Bzjx8mXt.js} +2 -2
- package/dist/studio/assets/GLTFLoader-1Zd9N406.js +1 -0
- package/dist/studio/assets/GroundedSkybox-BEMqNCBD.js +1 -0
- package/dist/studio/assets/{HDRLoader-CkQyrTWY.js → HDRLoader-DxB0kxPH.js} +2 -2
- package/dist/{runtime/chunks/OrbitControls-sjN2MF0e.js → studio/assets/OrbitControls-MlE9XiCg.js} +1 -1
- package/dist/studio/assets/{RectAreaLightUniformsLib-CZHWO9xf.js → RectAreaLightUniformsLib-ClHrtYY6.js} +1 -1
- package/dist/studio/assets/{RoomEnvironment-BsISzuCp.js → RoomEnvironment-MJ-jIEC8.js} +1 -1
- package/dist/studio/assets/{SVGLoader-BIkQDT66.js → SVGLoader-CIYl0nEy.js} +1 -1
- package/dist/studio/assets/{Sky-C282PFL1.js → Sky-DNMfpp92.js} +1 -1
- package/dist/studio/assets/{camera-BhKdE9ej.js → camera-7sEn13L-.js} +2 -2
- package/dist/studio/assets/editor-CnbvVkhU.js +53 -0
- package/dist/studio/assets/{extrude-CnayHczh.js → extrude-9bG8hr2C.js} +1 -1
- package/dist/studio/assets/{game-Dv5s4eMN.js → game-B04KGAK0.js} +3 -3
- package/dist/studio/assets/generators-LSni1Yfc.js +331 -0
- package/dist/studio/assets/{index-Dh-2Y34U.js → index-3LL5NEIH.js} +8 -8
- package/dist/studio/assets/{model-XZSP52pV.js → model-CNddhwmA.js} +2 -2
- package/dist/studio/assets/{physicsHost-C84FddIe.js → physicsHost-hMU_SDiX.js} +1 -1
- package/dist/studio/assets/{postfx-BWWXb8i8.js → postfx-BcCZS0Bq.js} +27 -27
- package/dist/studio/assets/runtime-DY_KqD1x.js +572 -0
- package/dist/{runtime/chunks/shaders-CmeJRio1.js → studio/assets/shaders-BhMCstyv.js} +3 -3
- package/dist/studio/assets/svg-CNKK-h7H.js +2 -0
- package/dist/studio/assets/{text-5DsJJHcj.js → text-BSPI7dk1.js} +3 -3
- package/dist/studio/assets/{three.module-ByMn_ZTv.js → three.module-CnI50X0U.js} +31 -31
- package/dist/studio/index.html +3 -3
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +2 -2
- package/plugin/skills/agent3d-assets/SKILL.md +24 -24
- package/plugin/skills/agent3d-create/SKILL.md +20 -20
- package/plugin/skills/agent3d-create/references/art-direction.md +3 -3
- package/plugin/skills/agent3d-create/references/recipes.md +6 -6
- package/plugin/skills/agent3d-edit/SKILL.md +22 -22
- package/plugin/skills/agent3d-edit/references/patch-ops.md +2 -2
- package/plugin/skills/agent3d-game/SKILL.md +7 -7
- package/plugin/skills/agent3d-publish/SKILL.md +21 -21
- package/plugin/skills/agent3d-publish/references/integrations.md +1 -1
- package/dist/runtime/chunks/GLTFLoader-DHp1wv6J.js +0 -1
- package/dist/runtime/chunks/generators-OHhFCc2E.js +0 -331
- package/dist/runtime/chunks/svg-B3nZaQFD.js +0 -1
- package/dist/studio/assets/GLTFLoader-C3C_3K62.js +0 -1
- package/dist/studio/assets/GroundedSkybox-BTqmv4fv.js +0 -1
- package/dist/studio/assets/editor-BgY_RoRd.js +0 -1
- package/dist/studio/assets/generators-DVX3bAxe.js +0 -331
- package/dist/studio/assets/runtime-k_MFerbJ.js +0 -572
- package/dist/studio/assets/svg-DT8kx37i.js +0 -2
package/README.md
CHANGED
|
@@ -1,173 +1,397 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/logo.png" width="160" height="160" alt="Agent3D">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">Agent3D</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<strong>The 3D studio your AI agent can run.</strong><br>
|
|
9
|
+
Banners, heroes, product shots, characters, landscapes and mini games for any website.<br>
|
|
10
|
+
Everything runs locally: no server, no account, nothing that phones home.
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<a href="https://www.npmjs.com/package/@fleox/agent3d"><img src="https://img.shields.io/npm/v/@fleox/agent3d?color=3d6bff&label=npm" alt="npm version"></a>
|
|
15
|
+
<a href="https://github.com/fleox/agent3d/actions/workflows/ci.yml"><img src="https://github.com/fleox/agent3d/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
16
|
+
<a href="https://www.npmjs.com/package/@fleox/agent3d"><img src="https://img.shields.io/node/v/@fleox/agent3d?color=339933" alt="Node.js version"></a>
|
|
17
|
+
<a href="#claude-code"><img src="https://img.shields.io/badge/Claude%20Code-plugin-d97757" alt="Claude Code plugin"></a>
|
|
18
|
+
<a href="#mcp-server"><img src="https://img.shields.io/badge/MCP-server-0ea5e9" alt="MCP server"></a>
|
|
19
|
+
<a href="https://github.com/fleox/agent3d/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-PolyForm%20Noncommercial-6b7280" alt="License"></a>
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
<p align="center">
|
|
23
|
+
<a href="#quick-start">Quick start</a> ·
|
|
24
|
+
<a href="#features">Features</a> ·
|
|
25
|
+
<a href="#the-studio">Studio</a> ·
|
|
26
|
+
<a href="#templates">Templates</a> ·
|
|
27
|
+
<a href="#how-it-works">How it works</a> ·
|
|
28
|
+
<a href="#the-agent3d-cli">CLI</a> ·
|
|
29
|
+
<a href="#mcp-server">MCP</a> ·
|
|
30
|
+
<a href="https://github.com/fleox/agent3d/blob/main/docs/README.md">Docs</a> ·
|
|
31
|
+
<a href="https://github.com/fleox/agent3d/blob/main/changelog.json">Changelog</a>
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
<p align="center">
|
|
35
|
+
<a href="https://cdn.jsdelivr.net/gh/fleox/agent3d@main/.github/assets/agent3d-demo.mp4">
|
|
36
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/video-poster.jpg" width="900" alt="Watch the demo: real Claude Code sessions create a 3D banner, edit it and build a mini game, then a tour of the templates and the Studio">
|
|
37
|
+
</a>
|
|
38
|
+
<br><sub>▶️ <a href="https://cdn.jsdelivr.net/gh/fleox/agent3d@main/.github/assets/agent3d-demo.mp4">Watch the demo</a> (2 min 11 s): real Claude Code sessions build a 3D hero banner from one sentence, edit it and make a mini game (the agent's work sped up, labelled on screen), then live templates, the Studio and the export.</sub>
|
|
39
|
+
</p>
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Why Agent3D
|
|
44
|
+
|
|
45
|
+
<table>
|
|
46
|
+
<tr>
|
|
47
|
+
<td width="33%" valign="top">
|
|
48
|
+
<h3>🎬 Stunning by default</h3>
|
|
49
|
+
<p>One-line light rigs, physical skies, contact shadows, physically based materials (car paint, ceramic, glass, diamond…) and cinematic <b>looks</b> (bloom, ambient occlusion, depth of field, grading). Agents start from 31 templates and validated recipes, with art direction built into the skills.</p>
|
|
50
|
+
</td>
|
|
51
|
+
<td width="33%" valign="top">
|
|
52
|
+
<h3>🤖 Agent-native</h3>
|
|
53
|
+
<p>A scene is one JSON file, validated against a catalog with "did you mean" hints and edited with small atomic patches. The agent <b>renders it headless</b> with your own Chrome, <b>looks at the screenshots</b>, fixes what it sees and runs <code>check</code> on budgets and accessibility. Every action is a CLI command with JSON output, an MCP tool and a Studio action.</p>
|
|
54
|
+
</td>
|
|
55
|
+
<td width="33%" valign="top">
|
|
56
|
+
<h3>🌐 Made for the web, nothing to run</h3>
|
|
57
|
+
<p>The output is a Web Component and a few static files (or one HTML file) for any site: lazy start, pause off-screen, reduced motion, a poster without WebGL, no layout shift. No Agent3D server, account or subscription; no CDN, web fonts or analytics in the exports.</p>
|
|
58
|
+
</td>
|
|
59
|
+
</tr>
|
|
60
|
+
</table>
|
|
61
|
+
|
|
62
|
+
## Quick start
|
|
63
|
+
|
|
64
|
+
### With an AI agent
|
|
65
|
+
|
|
66
|
+
<a id="claude-code"></a>**Claude Code**
|
|
2
67
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
68
|
+
```text
|
|
69
|
+
/plugin marketplace add fleox/agent3d
|
|
70
|
+
/plugin install agent3d@agent3d
|
|
71
|
+
```
|
|
6
72
|
|
|
7
|
-
|
|
8
|
-
|---|---|---|
|
|
9
|
-
|  |  |  |
|
|
10
|
-
| Landscape: physical sky, mirror lake, birds (21:9) | Neon title: panel lights, volumetric beam, bloom | Scroll story: camera shots driven by the page scroll |
|
|
11
|
-
|  |  |  |
|
|
12
|
-
| Product packshot: softbox rig, contact shadow, drag to orbit | Character card: procedural mascot, eyes follow the pointer | Click-to-shop shelf: hover and link interactions |
|
|
13
|
-
|  |  |  |
|
|
14
|
-
| Lane runner: a playable game with attract mode | Can toss: real rigid-body physics | Letter-by-letter headline reveal |
|
|
73
|
+
Then just ask:
|
|
15
74
|
|
|
16
|
-
|
|
75
|
+
> *Create an animated 3D hero banner for my bakery "Maison Lune": warm colours, a croissant, the title, subtle motion. Render it so I can see it, then export it for my website.*<br>
|
|
76
|
+
> *Make it more premium: golden-hour lighting, gold letters revealed one by one, and a click on the croissant that opens /shop.*<br>
|
|
77
|
+
> *Make a small 3D mini game for my sports brand site: an endless runner in black and neon yellow, playable on mobile.*
|
|
17
78
|
|
|
18
|
-
|
|
79
|
+
The agent picks a template or a starter, writes the scene, renders it, looks at the frames, fixes framing, colours and motion, checks budgets and exports the embed with the snippet to paste.
|
|
19
80
|
|
|
20
|
-
|
|
81
|
+
<p align="center">
|
|
82
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-create.gif" width="820" alt="A real Claude Code session: from one request, the agent builds a 3D hero banner for the Maison Lune bakery, renders it, looks at the frames, fixes the scene, checks it and exports the embed; it ends on the agent's own render">
|
|
83
|
+
<br><sub>A real, unedited Claude Code session. The agent's work (about 5 minutes) is sped up ×32 (labelled); typing and the answer play in real time. It ends on the agent's own final render.</sub>
|
|
84
|
+
</p>
|
|
21
85
|
|
|
22
|
-
|
|
23
|
-
- **Characters and products** — a procedural character generator (humanoids, robots, animals, astronauts…, with animations and eyes that follow the pointer), ~130 built-in models (rigged characters with clips, photoreal products and props) and 38 material presets from car paint and ceramic to diamond and soap bubble.
|
|
24
|
-
- **Landscapes and dioramas** — 22 procedural generators: terrain (mountains, basins, valleys, islands, snow lines), forests, rocks, grass, flowers, water with foam and mirror reflections, clouds, flocks of birds, cities, floating islands, globes, galaxies, 3D bar charts — all zero bytes, deterministic from a seed.
|
|
25
|
-
- **Motion** — 29 behaviours (float, follow the pointer, tilt, hover lift, scroll parallax…), a keyframe timeline with every easing, springs, staggered multi-target tracks and perceptual (OKLCh) colour blends, cinematic camera shots, scroll-driven stories, hover / click / key interactions that play segments or open links — no code needed.
|
|
26
|
-
- **Mini games** — sandboxed scripts with keyboard, pointer and touch-swipe input, rigid-body physics (real shapes, joints, a character controller, moving platforms), spawning by cloning, a themable HUD, synth sounds, best scores, and an attract mode so the embed is alive before anyone plays.
|
|
86
|
+
Once the scene exists, changing it is a conversation:
|
|
27
87
|
|
|
28
|
-
|
|
88
|
+
<p align="center">
|
|
89
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-edit.gif" width="820" alt="A real Claude Code session: the agent makes the same banner more premium with golden-hour lighting, gold letters revealed one by one and a click on the croissant that opens /shop, renders it again and re-exports it">
|
|
90
|
+
<br><sub>Same project, a second request: lighting, a letter reveal and a click interaction, then a new render the agent looks at and a re-export. Sped up ×16 while the agent works (labelled).</sub>
|
|
91
|
+
</p>
|
|
29
92
|
|
|
30
|
-
|
|
31
|
-
|
|
93
|
+
<details>
|
|
94
|
+
<summary><b>And a third one: <i>"Make a small 3D mini game…"</i></b></summary>
|
|
95
|
+
<p align="center">
|
|
96
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-game.gif" width="820" alt="A real Claude Code session: the agent builds an endless runner in black and neon yellow, playable on mobile, play-tests it headlessly with simulated input and exports it">
|
|
97
|
+
<br><sub>A playable game from one request: sandboxed script, HUD, touch controls, play-tested headlessly with simulated input. Sped up ×16 while the agent works (labelled).</sub>
|
|
98
|
+
</p>
|
|
99
|
+
</details>
|
|
32
100
|
|
|
33
|
-
|
|
101
|
+
| Agent | Setup |
|
|
102
|
+
|---|---|
|
|
103
|
+
| **Claude Code** | the plugin above: skills `agent3d-create`, `agent3d-edit`, `agent3d-assets`, `agent3d-game`, `agent3d-publish` |
|
|
104
|
+
| **Claude Desktop, Cursor, any MCP client** | the [MCP server](#mcp-server): `agent3d mcp --project <dir>` |
|
|
105
|
+
| **Hermes Agent** / Python agents | generated skills with a Python wrapper, see [hermes/](https://github.com/fleox/agent3d/tree/main/hermes) |
|
|
106
|
+
| **Codex, Windsurf, any other agent** | point it at [AGENTS.md](https://github.com/fleox/agent3d/blob/main/AGENTS.md) and the Markdown skills in [plugin/skills/](https://github.com/fleox/agent3d/tree/main/plugin/skills) |
|
|
34
107
|
|
|
35
|
-
|
|
36
|
-
4. **`export`** writes the embed and reports the real **page weight** (`pageKb` / gzip: the runtime chunks this scene loads plus its files), or a single HTML file, a poster, an MP4 / WebM video or a GIF.
|
|
108
|
+
### Without an agent
|
|
37
109
|
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
|
|
110
|
+
```bash
|
|
111
|
+
npx -y @fleox/agent3d@0.2.1 new bakery --target banner --title "Golden Crust"
|
|
112
|
+
npx -y @fleox/agent3d@0.2.1 studio --project bakery
|
|
41
113
|
```
|
|
42
114
|
|
|
43
|
-
|
|
115
|
+
The first command creates a project folder with an attractive starter scene for its target (banner, hero, card, square, fullscreen, inline or game); add `--template <id>` to start from one of the [templates](#templates). The second opens the [Studio](#the-studio) on it. You need **Node.js 22+** and **Google Chrome** (or Chromium / Edge / Brave) for renders; `npx -y @fleox/agent3d@0.2.1 doctor` checks your setup with a test render.
|
|
116
|
+
|
|
117
|
+
The whole loop from a terminal:
|
|
44
118
|
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
119
|
+
```bash
|
|
120
|
+
npx -y @fleox/agent3d@0.2.1 scene patch --project bakery '[{"op":"set","path":"objects#title.material","value":{"preset":"gold"}}]'
|
|
121
|
+
npx -y @fleox/agent3d@0.2.1 render --project bakery --sheet # → renders/…-sheet.png
|
|
122
|
+
npx -y @fleox/agent3d@0.2.1 check --project bakery
|
|
123
|
+
npx -y @fleox/agent3d@0.2.1 export --project bakery # → dist/embed/ + the snippet
|
|
124
|
+
```
|
|
49
125
|
|
|
50
|
-
|
|
126
|
+
Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/main/docs/getting-started.md).
|
|
127
|
+
|
|
128
|
+
## Features
|
|
129
|
+
|
|
130
|
+
<table>
|
|
131
|
+
<tr>
|
|
132
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-landscape-valley-sunset.jpg" alt="A low-poly mountain valley under a golden-hour sky, with a lake, a pine forest, god rays and fog"><p align="center"><b>Mountain valley at sunset</b>: physical sky, mirror lake, height fog</p></td>
|
|
133
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-hero-perfume-luxury.jpg" alt="An amber glass perfume bottle with a gold cap on a marble pedestal, surrounded by diamonds"><p align="center"><b>Luxury perfume hero</b>: refractive glass, gems, rack focus</p></td>
|
|
134
|
+
</tr>
|
|
135
|
+
<tr>
|
|
136
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-banner-neon-title.jpg" alt="A synthwave banner: a sunset-gradient 3D headline over a neon grid floor with bloom"><p align="center"><b>Neon title banner</b>: kerned 3D type, letter reveal, bloom</p></td>
|
|
137
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-hero-sneaker-showcase.jpg" alt="A sneaker on a ceramic pedestal on a coral backdrop with a title, a price and a Shop now button"><p align="center"><b>Sneaker showcase</b>: product lighting, data-bound price, click to a detail view</p></td>
|
|
138
|
+
</tr>
|
|
139
|
+
<tr>
|
|
140
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-character-mascot-hero.jpg" alt="A procedural fox mascot waving on a pastel pedestal next to a 3D speech bubble"><p align="center"><b>Mascot hero</b>: procedural character, eyes follow the pointer</p></td>
|
|
141
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-diorama-city.jpg" alt="An isometric pastel city block on a floating slab with cars, trees and tilt-shift blur"><p align="center"><b>Isometric city diorama</b>: generators, tilt-shift, long shadows</p></td>
|
|
142
|
+
</tr>
|
|
143
|
+
<tr>
|
|
144
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-game-basket.jpg" alt="A basketball game in a spotlit night arena with a hoop, a ball and a score HUD"><p align="center"><b>Hoop shot</b>: a playable game on rigid-body physics</p></td>
|
|
145
|
+
<td width="50%"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-hero-saas-globe.jpg" alt="A dotted-continent globe with glowing arcs between cities on a dark background"><p align="center"><b>SaaS globe hero</b>: globe generator, arcs, room for your headline</p></td>
|
|
146
|
+
</tr>
|
|
147
|
+
</table>
|
|
148
|
+
|
|
149
|
+
<p align="center">
|
|
150
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/showcase-loop.gif" width="900" alt="A loop of several Agent3D templates in motion: banners, heroes, a landscape, a product and a game">
|
|
151
|
+
<br><sub>Headless renders of the built-in templates, straight from <code>agent3d render</code>. Nothing was downloaded: everything is procedural or from the built-in library.</sub>
|
|
152
|
+
</p>
|
|
153
|
+
|
|
154
|
+
**Look**
|
|
155
|
+
- **Lighting and lookdev**: 10 one-line light rigs (softbox, studio three-point, golden hour, neon, moonlight…), physical skies with a matching sun, 20 built-in HDRIs, height fog, contact shadows, rect panel lights and volumetric spots, mesh-gradient backgrounds
|
|
156
|
+
- **Materials**: 38 presets from chrome, glass and car paint to velvet, diamond and soap bubble; physical parameters (clearcoat, sheen, iridescence, transmission, anisotropy, dispersion), 12 procedural textures (marble, wood, terrazzo, carbon…) at zero bytes, 17 shaders (aurora, liquid chrome, nebula, caustics…), cel shading that keeps brand colours true
|
|
157
|
+
- **Finishing**: `look` presets (cinematic, product, dreamy, neon, retro, clean) and 20 post effects: bloom, ambient occlusion, depth of field with rack focus, god rays, lens flare, tilt-shift, grading, vignette, film grain, FXAA / SMAA / TAA…; quality tiers drop costly passes on weak devices
|
|
158
|
+
|
|
159
|
+
**Motion**
|
|
160
|
+
- 29 **behaviours** (float, orbit, follow or look at the pointer, tilt, hover lift, spin on click, scroll parallax, spring, breathe…)
|
|
161
|
+
- A keyframe **timeline** with every easing, springs, per-letter and staggered multi-target tracks, colour blends in OKLCh, markers and **segments**
|
|
162
|
+
- **Interactions** (hover, click, key) that play segments, set properties or open links; **scroll-driven** timelines; cinematic **camera shots**, shake and look-at
|
|
163
|
+
|
|
164
|
+
**Content**
|
|
165
|
+
- 22 procedural **generators**: terrain (mountains, basins, valleys, islands), trees, rocks, grass, flowers, water with mirror reflections, clouds, birds, cities, roads, floating islands, globes, galaxies, crystals, 3D bar charts, mazes… deterministic from a seed
|
|
166
|
+
- A procedural **character** generator (humanoid, astronaut, robot, blob, cat, fox, bird, ghost) with animations such as wave, run, jump, dance and celebrate
|
|
167
|
+
- A built-in **library** of 179 assets usable offline (`library:<id>`): 128 models (rigged characters with clips, products, props), PBR textures and HDRIs; optional search and download from free CC0 sources (Poly Haven, ambientCG, Khronos samples) and Kenney / Quaternius pack import, with licences recorded
|
|
168
|
+
- 3D text in 13 kerned **fonts** with wrapping, outlines and letter-by-letter reveals; extruded **SVG logos** that keep their colours; 17 particle presets; 12 synth sounds
|
|
169
|
+
|
|
170
|
+
**Games**
|
|
171
|
+
- Sandboxed **scripts** (`ScriptApi`: input, spawning by cloning, events, sounds, saved best scores); `check` rejects network, DOM and storage globals before export
|
|
172
|
+
- Rigid-body **physics** (shapes, joints with motors, collision events, character controllers, moving platforms) in a lazy chunk
|
|
173
|
+
- A themable **HUD** (texts bound to the game state, bars, buttons, panels for game-over screens), keyboard, pointer and touch-swipe input, and an attract mode so the embed is alive before anyone plays
|
|
174
|
+
|
|
175
|
+
**Web**
|
|
176
|
+
- The `<agent3d-scene>` **Web Component**: lazy start when scrolled into view, pause off-screen, `prefers-reduced-motion`, pixel-ratio cap, a poster without WebGL or JavaScript, reserved aspect ratio, `aria-label`, methods and events
|
|
177
|
+
- **Data bindings**: `{data.title}` in the scene, filled per page with `data-*` attributes (one scene, many products)
|
|
178
|
+
- **Exports**: an embed folder (shared runtime, Subresource Integrity, `EMBED.md`, React / Vue / Svelte wrappers), a ZIP, a single HTML file, a poster, an MP4 / WebM video or a GIF; the export reports the real page weight a visitor downloads
|
|
179
|
+
- Works in plain HTML, WordPress, Webflow, Shopify, AgentCMS ([block](https://github.com/fleox/agent3d/tree/main/integrations/agentcms)), React / Next.js, Astro, Vue, Svelte; a strict Content-Security-Policy works without `unsafe-eval`
|
|
180
|
+
|
|
181
|
+
**Quality**
|
|
182
|
+
- **Headless renders** in your installed Chrome with a deterministic clock: frames and contact sheets are reproducible, and games are *played* with simulated keys, taps and swipes (`render --input`) with the script's state returned
|
|
183
|
+
- **`check`**: validation, missing files, the script sandbox, triangles and draw calls per frame across every pass against the target's aim, KB budgets, framing, accessibility settings, licences that need credit
|
|
51
184
|
|
|
52
|
-
|
|
53
|
-
- Respects `prefers-reduced-motion` (frozen on the poster frame), shows the poster without WebGL or JavaScript, reserves its aspect ratio (no layout shift), and carries an `aria-label`.
|
|
54
|
-
- The runtime loads in lazy chunks: a scene only downloads the features it uses. One runtime folder serves every scene of a site; Subresource Integrity, cache-busting and a documented Content-Security-Policy (no `unsafe-eval`).
|
|
55
|
-
- Drop-in for plain HTML, WordPress, Webflow, Shopify, AgentCMS ([plugin](integrations/agentcms/)), React / Next.js, Astro, Vue, Svelte — the export ships typed wrappers and an `EMBED.md` for the site owner.
|
|
185
|
+
## The Studio
|
|
56
186
|
|
|
57
|
-
|
|
187
|
+
A visual editor for when you want to see and touch the scene yourself, on the same files and the same validated tools as the agent. Changes your agent makes in a terminal appear live in the open Studio.
|
|
58
188
|
|
|
59
189
|
```bash
|
|
60
|
-
npx -y @fleox/agent3d@0.2.
|
|
61
|
-
npx -y @fleox/agent3d@0.2.0 scene patch --project bakery --json '[{"op":"set","path":"objects#title.material","value":{"preset":"gold"}}]'
|
|
62
|
-
npx -y @fleox/agent3d@0.2.0 render --project bakery --sheet --json # → renders/…-sheet.png
|
|
63
|
-
npx -y @fleox/agent3d@0.2.0 check --project bakery --json
|
|
64
|
-
npx -y @fleox/agent3d@0.2.0 export --project bakery --json # → dist/embed/ + the snippet
|
|
190
|
+
npx -y @fleox/agent3d@0.2.1 studio --project bakery
|
|
65
191
|
```
|
|
66
192
|
|
|
67
|
-
|
|
193
|
+
<p align="center">
|
|
194
|
+
<picture>
|
|
195
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/studio-editor-dark.jpg" width="900" alt="The Agent3D Studio: a live viewport with a transform gizmo, the outliner on the left, the inspector on the right and the timeline below">
|
|
196
|
+
</picture>
|
|
197
|
+
</p>
|
|
198
|
+
|
|
199
|
+
<table>
|
|
200
|
+
<tr>
|
|
201
|
+
<td width="50%">
|
|
202
|
+
<picture>
|
|
203
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/studio-materials-dark.jpg" alt="The inspector editing an object's material preset and physical parameters">
|
|
204
|
+
</picture>
|
|
205
|
+
<p align="center"><b>Materials</b>: presets, physical parameters, procedural textures</p>
|
|
206
|
+
</td>
|
|
207
|
+
<td width="50%">
|
|
208
|
+
<picture>
|
|
209
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/studio-timeline-dark.jpg" alt="The timeline panel with keyframe tracks, segments and the playhead">
|
|
210
|
+
</picture>
|
|
211
|
+
<p align="center"><b>Timeline</b>: tracks, keyframes, easings, segments</p>
|
|
212
|
+
</td>
|
|
213
|
+
</tr>
|
|
214
|
+
<tr>
|
|
215
|
+
<td width="50%">
|
|
216
|
+
<picture>
|
|
217
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/studio-postfx-dark.jpg" alt="The post effects panel with a look preset, bloom and depth of field">
|
|
218
|
+
</picture>
|
|
219
|
+
<p align="center"><b>Post effects</b>: looks, bloom, depth of field, grading</p>
|
|
220
|
+
</td>
|
|
221
|
+
<td width="50%">
|
|
222
|
+
<picture>
|
|
223
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/studio-start-dark.jpg" alt="The Studio start screen with the templates gallery">
|
|
224
|
+
</picture>
|
|
225
|
+
<p align="center"><b>Start</b>: templates gallery and starters per target</p>
|
|
226
|
+
</td>
|
|
227
|
+
</tr>
|
|
228
|
+
</table>
|
|
229
|
+
|
|
230
|
+
Move / rotate / scale gizmos, an editor camera and the scene camera with framing guides, drag and drop from the catalog and the library, outliner, inspector, interactions, checks, render and export dialogs, undo / redo, in English or French. An optional assistant panel calls the Claude API from your browser with your own key, over the same tools. `serve --open` shows a live preview without the editor. Details: [docs/studio.md](https://github.com/fleox/agent3d/blob/main/docs/studio.md).
|
|
68
231
|
|
|
69
|
-
##
|
|
232
|
+
## Templates
|
|
70
233
|
|
|
71
|
-
|
|
234
|
+
<p align="center">
|
|
235
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/templates-grid.jpg" width="900" alt="A grid of the 31 Agent3D templates: banners, heroes, landscapes, product cards, dioramas and games">
|
|
236
|
+
</p>
|
|
237
|
+
|
|
238
|
+
31 starter projects, each a complete scene that passes `check --render`: 8 banners, 12 heroes and landscapes, 2 product cards, 2 square dioramas and 7 playable games. Start from one with `agent3d new my-scene --template <id>`; `agent3d templates list` lists them and `templates show <id>` describes one.
|
|
239
|
+
|
|
240
|
+
To see them all live in a browser, build the gallery from a clone (`npm install --legacy-peer-deps && npm run build:runtime && npm run build:agent`, then `node scripts/build-examples.mjs`) and serve `examples/site/` with any static server (for example `python3 -m http.server -d examples/site`): each card plays the real embed, with the brief the agent that built the template received.
|
|
241
|
+
|
|
242
|
+
<details>
|
|
243
|
+
<summary><b>All 31 templates</b></summary>
|
|
244
|
+
|
|
245
|
+
| Preview | Template | Kind | What it is |
|
|
246
|
+
|---|---|---|---|
|
|
247
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-aurora-night/preview.png" width="160" alt="Aurora night banner"> | [**Aurora night banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-aurora-night)<br>`banner-aurora-night` | banner · 4:1 | Night-sky 4:1 banner: animated northern-lights curtains over low-poly mountain silhouettes, twinkling stars, glowing cyan and violet crystal clusters in the snow and a white headline (data-bound) fading in letter by letter. |
|
|
248
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-data-bars/preview.png" width="160" alt="Data bars banner"> | [**Data bars banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-data-bars)<br>`banner-data-bars` | banner · 4:1 | Clean corporate 4:1 banner: a two-row 3D bar chart (your values) growing bar by bar in indigo on a white base plate, next to a data-bound headline and caption — reports, fintech, analytics and investor pages. |
|
|
249
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-floating-shapes/preview.png" width="160" alt="Floating shapes banner"> | [**Floating shapes banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-floating-shapes)<br>`banner-floating-shapes` | banner · 4:1 | Pastel 4:1 banner: a rounded 3D headline (data-bound) popping in letter by letter, framed by jelly, pearl, matte-pastel and gold shapes that spring in, float and shift with the pointer in depth layers over a drifting mesh-gradient backdrop. |
|
|
250
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-gradient-blob/preview.png" width="160" alt="Gradient blob banner"> | [**Gradient blob banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-gradient-blob)<br>`banner-gradient-blob` | banner · 3:1 | Minimal 3:1 banner for SaaS / product pages: a glossy iridescent morphing blob in brand colours with a small companion blob, a thin chrome orbit with beads and a drifting pastel mesh-gradient backdrop; the left two thirds stay empty for your HTML headline. |
|
|
251
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-liquid-chrome/preview.png" width="160" alt="Liquid chrome banner"> | [**Liquid chrome banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-liquid-chrome)<br>`banner-liquid-chrome` | banner · 4:1 | Abstract 4:1 banner: a flowing liquid-chrome backdrop softly out of focus, morphing holographic and chrome blobs, and a bold kerned title (data-bound) revealed letter by letter from the centre, with cinematic grading and grain. |
|
|
252
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-logo-extrude/preview.png" width="160" alt="Extruded logo banner"> | [**Extruded logo banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-logo-extrude)<br>`banner-logo-extrude` | banner · 4:1 | Brand 4:1 banner: your SVG logo extruded into clear-coated 3D (keeping its colours) inside a neon halo, a wordmark revealed letter by letter and a tagline (both data-bound), a light sweep across the logo; it tilts toward the pointer, spins on hover and bounces on click. |
|
|
253
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-neon-title/preview.png" width="160" alt="Neon title banner"> | [**Neon title banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-neon-title)<br>`banner-neon-title` | banner · 4:1 | Synthwave 4:1 banner: a tall condensed sunset-gradient 3D headline that drops in letter by letter from the centre, a flickering neon script tagline, neon tubes, a scrolling neon grid floor, a gradient sun, sparks and bloom (data-bound texts). |
|
|
254
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/banner-wave-grid/preview.png" width="160" alt="Wave grid banner"> | [**Wave grid banner**](https://github.com/fleox/agent3d/tree/main/templates/banner-wave-grid)<br>`banner-wave-grid` | banner · 4:1 | Dark tech / data 4:1 banner: a field of ~8,000 dots in a cyan-indigo-pink ramp undulating like a signal and rippling under the pointer, beneath a crisp Space Grotesk headline revealed letter by letter and a blinking mono kicker (data-bound). |
|
|
255
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/character-mascot-hero/preview.png" width="160" alt="Mascot hero"> | [**Mascot hero**](https://github.com/fleox/agent3d/tree/main/templates/character-mascot-hero)<br>`character-mascot-hero` | hero · 16:9 | Friendly brand-mascot hero (16:9): a procedural fox waving on a pastel pedestal with a 3D speech bubble (text from scene.data), its head and eyes following the pointer; click or tap it and it jumps into a celebration with confetti and a new line, then settles back. |
|
|
256
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/character-showcase/preview.png" width="160" alt="Character showcase"> | [**Character showcase**](https://github.com/fleox/agent3d/tree/main/templates/character-showcase)<br>`character-showcase` | hero · 16:9 | Cartoon character line-up (16:9) for mascots, kids' products, games or team pages: five procedural characters on pastel pedestals — an astronaut cheering in the centre, a dancing robot, a waving fox, a dancing kid with headphones and a jumping cat — heads following the pointer, falling confetti and a 'Meet the crew' 3D title (from scene.data). |
|
|
257
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-floating-island/preview.png" width="160" alt="Floating island hero"> | [**Floating island hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-floating-island)<br>`hero-floating-island` | hero · 16:9 | Dreamy 16:9 hero: a low-poly floating island with trees, flowers, a pond and a waterfall pouring into a sea of pastel clouds, two distant islets, flapping birds circling and magic glints, under a peach-to-blue sunset gradient — slow orbit, pointer parallax, soft dreamy look. |
|
|
258
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-perfume-luxury/preview.png" width="160" alt="Luxury perfume hero"> | [**Luxury perfume hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-perfume-luxury)<br>`hero-perfume-luxury` | hero · 16:9 | Dark luxury product hero: an amber glass perfume bottle (refractive lathe glass with liquid colour) and faceted gold cap on a black-and-gold marble pedestal, diamonds and a ruby catching the light, a slow push-in with a rack focus from a diamond to the bottle, and a gold serif name (data-bound). |
|
|
259
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-product-turntable/preview.png" width="160" alt="Product turntable hero"> | [**Product turntable hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-product-turntable)<br>`hero-product-turntable` | hero · 16:9 | Studio product hero: a realistic PBR boombox slowly turning on a terrazzo pedestal with a gold rim, softbox light rig, studio HDRI reflections, soft contact shadow, product look and drag-to-orbit. |
|
|
260
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-saas-globe/preview.png" width="160" alt="SaaS globe hero"> | [**SaaS globe hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-saas-globe)<br>`hero-saas-globe` | hero · 16:9 | Dark premium SaaS / network hero: a dotted-continent globe with a blue atmosphere slowly turning on the right, glowing arcs with light pulses travelling between world cities, faint orbit ring and stars; the left half stays empty for your HTML headline. |
|
|
261
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-scroll-story/preview.png" width="160" alt="Scroll story hero"> | [**Scroll story hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-scroll-story)<br>`hero-scroll-story` | hero · 16:9 | Scroll-driven 3D story: as the page scrolls, the camera glides across three chapters — Design, Build, Launch — each with its own object and a bold 3D title that pops in letter by letter, with markers that emit page events. |
|
|
262
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-sneaker-showcase/preview.png" width="160" alt="Sneaker showcase hero"> | [**Sneaker showcase hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-sneaker-showcase)<br>`hero-sneaker-showcase` | hero · 16:9 | E-commerce product hero: a real PBR sneaker spins onto a ceramic pedestal on a bold coral backdrop, with a data-bound title, tagline, price and Shop now button; click the shoe to glide the camera to a detail view. |
|
|
263
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-space-planet/preview.png" width="160" alt="Space planet hero"> | [**Space planet hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-space-planet)<br>`hero-space-planet` | hero · 21:9 | Cinematic 21:9 space hero: a ringed low-poly planet side-lit into a crescent, an orbiting moon, a drifting purple-blue nebula backdrop, twinkling stars, nebula dust and a comet, bloom + lens flare + film grade, drifting with the pointer — left half free for a headline. |
|
|
264
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/landscape-island/preview.png" width="160" alt="Tropical low-poly island"> | [**Tropical low-poly island**](https://github.com/fleox/agent3d/tree/main/templates/landscape-island)<br>`landscape-island` | hero · 16:9 | Sunny 16:9 procedural diorama: a tropical low-poly island (palm-lined beaches, round-canopy forest, rocky summit) in turquoise lagoon water with animated shore foam, puffy clouds and seabirds circling, cinematic grade, slow orbit + drag. |
|
|
265
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/landscape-night-galaxy/preview.png" width="160" alt="Night galaxy landscape"> | [**Night galaxy landscape**](https://github.com/fleox/agent3d/tree/main/templates/landscape-night-galaxy)<br>`landscape-night-galaxy` | hero · 16:9 | Calm 16:9 night hero: glowing crystal clusters (purple, cyan, pink) on dark low-poly hills under a vast rotating spiral galaxy, northern-lights aurora curtains, twinkling stars and drifting fireflies, bloom and a cool grade, slow 20 s camera drift + pointer parallax. |
|
|
266
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/landscape-valley-sunset/preview.png" width="160" alt="Mountain valley at sunset"> | [**Mountain valley at sunset**](https://github.com/fleox/agent3d/tree/main/templates/landscape-valley-sunset)<br>`landscape-valley-sunset` | hero · 21:9 | Atmospheric 21:9 landscape: a low-poly mountain valley closed by a snowy range, a pine forest and an animated lake under a physical golden-hour sky, the sun low at the edge of the frame with soft god rays, valley height fog, pink clouds and fireflies — cinematic grade, slow camera drift + pointer parallax. |
|
|
267
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/card-hover-3d/preview.png" width="160" alt="3D product card"> | [**3D product card**](https://github.com/fleox/agent3d/tree/main/templates/card-hover-3d)<br>`card-hover-3d` | card · 4:5 | Clean product card (4:5): a PBR water bottle turning over a glossy sage disc with a soft contact shadow, softbox lighting and product look; it lifts, tilts toward the pointer and grows on hover, with a data-bound name, price and link — drop it into any product grid. |
|
|
268
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/card-product-tilt/preview.png" width="160" alt="Product tilt card"> | [**Product tilt card**](https://github.com/fleox/agent3d/tree/main/templates/card-product-tilt)<br>`card-product-tilt` | card · 4:5 | Collectible-style product card (4:5): a glossy PBR rubber duck pops out of a holographic-foil card with a sun disc, tilting toward the pointer with a shifting rainbow glare; data-bound name, price, badge and link — drop it in any product grid. |
|
|
269
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/diorama-city/preview.png" width="160" alt="Isometric city diorama"> | [**Isometric city diorama**](https://github.com/fleox/agent3d/tree/main/templates/diorama-city)<br>`diorama-city` | square · 1:1 | A Townscaper-like isometric city block (1:1): pastel procedural buildings with lit windows, a park and street trees on a floating clay slab, library cars, a taxi and a police car driving the streets, low warm sun with long soft shadows, tilt-shift miniature blur and a cinematic grade, slow orbit. |
|
|
270
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/scene-cozy-room/preview.png" width="160" alt="Cozy room diorama"> | [**Cozy room diorama**](https://github.com/fleox/agent3d/tree/main/templates/scene-cozy-room)<br>`scene-cozy-room` | square · 1:1 | Isometric cozy living-room corner (1:1) at golden hour: photoreal Poly Haven props (modern armchair, round coffee table, potted succulents) on a wooden floor with a striped rug, a glowing floor lamp, a window area light with dust drifting in the light, framed art, soft VSM shadows, cinematic warm grade and a slow camera sway. |
|
|
271
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-basket/preview.png" width="160" alt="Hoop shot"> | [**Hoop shot**](https://github.com/fleox/agent3d/tree/main/templates/game-basket)<br>`game-basket` | game · 16:9 | Playable 45-second basketball shooting game (16:9) on real rigid-body physics: swipe or drag up to shoot (length = power, drift = aim) or hold Space to charge and release, the ball bounces off a trimesh rim and the backboard, swishes count only when falling through the net, a new spot after every shot, x2 / x3 streaks, best score saved, impact sounds, confetti, spotlit night arena, self-playing attract mode. |
|
|
272
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-coin-collector/preview.png" width="160" alt="Coin collector arena"> | [**Coin collector arena**](https://github.com/fleox/agent3d/tree/main/templates/game-coin-collector)<br>`game-coin-collector` | game · 16:9 | Playable 3D platformer arena (16:9): run and jump across a floating grass island and stepped platforms above a sea of clouds to collect 12 coins before the 45 s timer ends — physics, follow camera, best time, keyboard + touch, self-playing attract mode. |
|
|
273
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-maze/preview.png" width="160" alt="Marble maze"> | [**Marble maze**](https://github.com/fleox/agent3d/tree/main/templates/game-maze)<br>`game-maze` | game · 1:1 | Playable marble maze: roll a glossy ball through a procedural maze to the glowing exit against the clock — physics walls, best time, keyboard + touch, self-solving attract mode. |
|
|
274
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-physics-playground/preview.png" width="160" alt="Tower smash (physics)"> | [**Tower smash (physics)**](https://github.com/fleox/agent3d/tree/main/templates/game-physics-playground)<br>`game-physics-playground` | game · 16:9 | Rigid-body physics playground: click or tap to throw balls at a tower of wooden blocks that really tumbles, slides and stacks — knock it all off in as few throws as possible, impact sounds, best score, attract mode. |
|
|
275
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-platformer/preview.png" width="160" alt="Sky platformer"> | [**Sky platformer**](https://github.com/fleox/agent3d/tree/main/templates/game-platformer)<br>`game-platformer` | game · 16:9 | Playable side-scrolling platformer (16:9): a rigged KayKit knight runs and jumps (physics character controller with coyote time) across floating grass platforms, a sliding lift and an elevator lift, collects 13 coins and reaches the goal flag against a 90 s timer — 3 lives, checkpoints, best time saved, synth sounds, keyboard + touch (hold a side to run, tap the middle to jump), self-playing attract mode, floating islands and clouds behind. |
|
|
276
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-runner/preview.png" width="160" alt="Endless runner"> | [**Endless runner**](https://github.com/fleox/agent3d/tree/main/templates/game-runner)<br>`game-runner` | game · 16:9 | Playable endless runner: switch lanes and jump over barriers on a scrolling road, grab coins, speed ramps up, best score saved, game over + retry, synth sounds, keyboard + touch, self-playing attract mode. |
|
|
277
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/game-tap-targets/preview.png" width="160" alt="Tap the targets"> | [**Tap the targets**](https://github.com/fleox/agent3d/tree/main/templates/game-tap-targets)<br>`game-tap-targets` | game · 16:9 | Playable 30-second reflex game: targets pop out of nine holes, tap or click them, chain hits for a combo multiplier, golden targets score 5× — best score saved, touch + keyboard, attract mode. |
|
|
278
|
+
|
|
279
|
+
</details>
|
|
280
|
+
|
|
281
|
+
## How it works
|
|
282
|
+
|
|
283
|
+
<p align="center">
|
|
284
|
+
<picture>
|
|
285
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/how-it-works-dark.png">
|
|
286
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/how-it-works-light.png" width="900" alt="You, in any browser, and your AI agent (Claude Code, Claude, Hermes, any MCP client) use four front doors: the Studio, the Studio assistant, the agent3d CLI and the MCP server. All of them call one engine (scene ops: validate, check, render, export) and the Three.js player, deterministic and rendered headless in your own Chrome so the agent looks at its work. The export goes on any website as a Web Component embed, one HTML file, a video, a GIF or a poster. Built in and offline: 128 models, 20 HDRIs, 18 textures, 13 fonts, 31 templates. No server of ours.">
|
|
287
|
+
</picture>
|
|
288
|
+
</p>
|
|
289
|
+
|
|
290
|
+
All the rules live in one engine. The Studio, the CLI, the MCP server and the Studio assistant are four front doors to it, so an agent can do exactly what you can do in the editor, with the same validation. The engine works on a plain **project folder** (`scene.json`, `assets/`, `scripts/`, `renders/`), which you can keep in git.
|
|
291
|
+
|
|
292
|
+
A scene is data: the runtime is a pure function of (scene, assets, time) in deterministic mode. That is what makes the loop work: the agent edits the JSON, `render` seeks exact times in your headless Chrome and writes PNGs and a contact sheet, the agent **looks** at them, fixes, and `check` measures what a reviewer would. The same runtime plays the scene on your website, loaded in lazy chunks so a scene only downloads the features it uses.
|
|
293
|
+
|
|
294
|
+
The network is used only for the optional CC0 asset search and download (files are saved once into the project with their licence, and exports never hotlink) and, if you enable it, the Studio assistant's calls to the Claude API with your own key. Game scripts are checked against a sandbox contract before export. See [architecture](https://github.com/fleox/agent3d/blob/main/docs/architecture.md) and [security](https://github.com/fleox/agent3d/blob/main/docs/security.md).
|
|
72
295
|
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
/
|
|
296
|
+
```html
|
|
297
|
+
<script type="module" src="/agent3d/agent3d-runtime/agent3d-runtime.js"></script>
|
|
298
|
+
<agent3d-scene src="/agent3d/bakery/scene.json" poster="/agent3d/bakery/poster.webp"
|
|
299
|
+
aria-label="Golden Crust Bakery: a warm 3D title with floating pastries"></agent3d-scene>
|
|
76
300
|
```
|
|
77
301
|
|
|
78
|
-
|
|
79
|
-
|---|---|
|
|
80
|
-
| `agent3d-create` | Go from a brief to a finished embed: clarify, pick a template, build, render and look, fix, check, export — with art direction (composition, lighting, palettes, motion, budgets) and validated recipes per kind |
|
|
81
|
-
| `agent3d-edit` | Change an existing scene: patches, materials, lights, camera, timeline, interactions, behaviours, rebranding, phone checks |
|
|
82
|
-
| `agent3d-assets` | Built-in CC0 library, procedural generators, Poly Haven / ambientCG / Khronos downloads, Kenney / Quaternius packs, licences, `assets optimize` |
|
|
83
|
-
| `agent3d-game` | Mini games and interactive logic with the sandboxed ScriptApi (input, physics, spawning, HUD, sounds, best score, attract mode) and headless play-testing |
|
|
84
|
-
| `agent3d-publish` | Export formats, page weight, plain HTML and HTML text over the scene, WordPress, AgentCMS, React / Next.js / Astro / Vue / Svelte, accessibility and CSP |
|
|
302
|
+
## How Agent3D compares
|
|
85
303
|
|
|
86
|
-
|
|
304
|
+
| | Agent3D | Spline | A hand-coded Three.js page | Lottie or a video loop |
|
|
305
|
+
|---|---|---|---|---|
|
|
306
|
+
| What you get | interactive 3D scenes for web pages | interactive 3D scenes for web pages | anything you write | 2D vector animation / pre-rendered frames |
|
|
307
|
+
| How it is made | JSON scene written by an agent or in the Studio | visual editor in the browser | code | an animation tool / a video editor |
|
|
308
|
+
| Account or hosted service | ❌ none | a Spline account | ❌ none | ❌ none |
|
|
309
|
+
| AI agent loop (edit, render, look, check) | ✅ CLI, MCP, skills | — | ad hoc | — |
|
|
310
|
+
| Hover, click, scroll, mini games | ✅ declared in the scene, scripts for games | ✅ | ✅ you write it | limited / ❌ |
|
|
311
|
+
| Budget and accessibility checks before publishing | ✅ `check` (triangles, KB, framing, reduced motion, label) | — | you write them | — |
|
|
312
|
+
| Output | static files, a Web Component | Spline's viewer / runtime | your build | a JSON file and a player / a video file |
|
|
87
313
|
|
|
88
|
-
|
|
89
|
-
claude mcp add agent3d -- npx -y @fleox/agent3d@0.2.0 mcp --project ~/agent3d/my-banner
|
|
90
|
-
```
|
|
314
|
+
Pick Spline when a designer wants a hosted visual tool, hand-written Three.js when you need full control of every line, and Lottie or video for flat or non-interactive motion. Agent3D fits when an agent should produce and verify the 3D element, and the result must ship as plain static files.
|
|
91
315
|
|
|
92
|
-
|
|
316
|
+
## The `agent3d` CLI
|
|
93
317
|
|
|
94
|
-
|
|
318
|
+
The same engine the agents use, by hand: `npx -y @fleox/agent3d@0.2.1 help`. Every command accepts `--json` and prints exactly one `{ ok, data }` or `{ ok: false, error }` object with an actionable hint, and commands that replace or overwrite something print a plan until you add `--yes`.
|
|
95
319
|
|
|
96
|
-
|
|
320
|
+
<p align="center">
|
|
321
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-cli.gif" width="820" alt="Terminal running the agent3d CLI: a project from the gradient-blob template, its scene summary, a gold torus added, a behaviour patch rejected with an actionable error then fixed, and the pre-export check">
|
|
322
|
+
<br><sub>Create, inspect and patch a scene from a terminal or a script; mistakes come back with a hint.</sub>
|
|
323
|
+
</p>
|
|
97
324
|
|
|
98
|
-
|
|
325
|
+
Render it headless and look, then export:
|
|
99
326
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
327
|
+
<p align="center">
|
|
328
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-render.gif" width="820" alt="Terminal running agent3d render on an island scene: frames at fixed times and a contact sheet, with triangle and draw-call stats, then the contact sheet itself">
|
|
329
|
+
<br><sub><code>render --sheet</code> in your own headless Chrome: the picture the agent looks at, with the stats <code>check</code> uses.</sub>
|
|
330
|
+
</p>
|
|
103
331
|
|
|
104
|
-
|
|
332
|
+
<p align="center">
|
|
333
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-export.gif" width="820" alt="Terminal running agent3d export: the overwrite plan, --yes, the page weight and the snippet, then an MP4 teaser rendered frame by frame, and the exported demo page in a browser">
|
|
334
|
+
<br><sub><code>export</code>: a plan before overwriting, the real page weight, the snippet to paste, and a video teaser (its frame-by-frame render is sped up ×8, labelled).</sub>
|
|
335
|
+
</p>
|
|
105
336
|
|
|
106
|
-
|
|
337
|
+
<details>
|
|
338
|
+
<summary><b>All commands</b></summary>
|
|
107
339
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
|
111
|
-
|
|
112
|
-
|
|
|
113
|
-
|
|
|
114
|
-
|
|
|
115
|
-
|
|
|
116
|
-
| [<img src="templates/banner-liquid-chrome/preview.png" width="180" alt="Liquid chrome banner">](templates/banner-liquid-chrome/preview.png) | **Liquid chrome banner**<br>`banner-liquid-chrome` · banner | Abstract 4:1 banner: a flowing liquid-chrome backdrop softly out of focus, morphing holographic and chrome blobs, and a bold kerned title (data-bound) revealed letter by letter from the centre, with cinematic grading and grain. |
|
|
117
|
-
| [<img src="templates/banner-logo-extrude/preview.png" width="180" alt="Extruded logo banner">](templates/banner-logo-extrude/preview.png) | **Extruded logo banner**<br>`banner-logo-extrude` · banner | Brand 4:1 banner: your SVG logo extruded into clear-coated 3D (keeping its colours) inside a neon halo, a wordmark revealed letter by letter and a tagline (both data-bound), a light sweep across the logo; it tilts toward the pointer, spins on hover and bounces on click. |
|
|
118
|
-
| [<img src="templates/banner-neon-title/preview.png" width="180" alt="Neon title banner">](templates/banner-neon-title/preview.png) | **Neon title banner**<br>`banner-neon-title` · banner | Synthwave 4:1 banner: a tall condensed sunset-gradient 3D headline that drops in letter by letter from the centre, a flickering neon script tagline, neon tubes, a scrolling neon grid floor, a gradient sun, sparks and bloom (data-bound texts). |
|
|
119
|
-
| [<img src="templates/banner-wave-grid/preview.png" width="180" alt="Wave grid banner">](templates/banner-wave-grid/preview.png) | **Wave grid banner**<br>`banner-wave-grid` · banner | Dark tech / data 4:1 banner: a field of ~8,000 dots in a cyan-indigo-pink ramp undulating like a signal and rippling under the pointer, beneath a crisp Space Grotesk headline revealed letter by letter and a blinking mono kicker (data-bound). |
|
|
120
|
-
| [<img src="templates/character-mascot-hero/preview.png" width="180" alt="Mascot hero">](templates/character-mascot-hero/preview.png) | **Mascot hero**<br>`character-mascot-hero` · hero | Friendly brand-mascot hero (16:9): a procedural fox waving on a pastel pedestal with a 3D speech bubble (text from scene.data), its head and eyes following the pointer; click or tap it and it jumps into a celebration with confetti and a new line, then settles back. Left half free for an HTML headline. Swap the style for an astronaut, robot, cat, bird, blob or ghost. |
|
|
121
|
-
| [<img src="templates/character-showcase/preview.png" width="180" alt="Character showcase">](templates/character-showcase/preview.png) | **Character showcase**<br>`character-showcase` · hero | Cartoon character line-up (16:9) for mascots, kids' products, games or team pages: five procedural characters on pastel pedestals |
|
|
122
|
-
| [<img src="templates/hero-floating-island/preview.png" width="180" alt="Floating island hero">](templates/hero-floating-island/preview.png) | **Floating island hero**<br>`hero-floating-island` · hero | Dreamy 16:9 hero: a low-poly floating island with trees, flowers, a pond and a waterfall pouring into a sea of pastel clouds, two distant islets, flapping birds circling and magic glints, under a peach-to-blue sunset gradient |
|
|
123
|
-
| [<img src="templates/hero-perfume-luxury/preview.png" width="180" alt="Luxury perfume hero">](templates/hero-perfume-luxury/preview.png) | **Luxury perfume hero**<br>`hero-perfume-luxury` · hero | Dark luxury product hero: an amber glass perfume bottle (refractive lathe glass with liquid colour) and faceted gold cap on a black-and-gold marble pedestal, diamonds and a ruby catching the light, a slow push-in with a rack focus from a diamond to the bottle, and a gold serif name (data-bound). |
|
|
124
|
-
| [<img src="templates/hero-product-turntable/preview.png" width="180" alt="Product turntable hero">](templates/hero-product-turntable/preview.png) | **Product turntable hero**<br>`hero-product-turntable` · hero | Studio product hero: a realistic PBR boombox slowly turning on a terrazzo pedestal with a gold rim, softbox light rig, studio HDRI reflections, soft contact shadow, product look and drag-to-orbit. |
|
|
125
|
-
| [<img src="templates/hero-saas-globe/preview.png" width="180" alt="SaaS globe hero">](templates/hero-saas-globe/preview.png) | **SaaS globe hero**<br>`hero-saas-globe` · hero | Dark premium SaaS / network hero: a dotted-continent globe with a blue atmosphere slowly turning on the right, glowing arcs with light pulses travelling between world cities, faint orbit ring and stars; the left half stays empty for your HTML headline. |
|
|
126
|
-
| [<img src="templates/hero-scroll-story/preview.png" width="180" alt="Scroll story hero">](templates/hero-scroll-story/preview.png) | **Scroll story hero**<br>`hero-scroll-story` · hero | Scroll-driven 3D story: as the page scrolls, the camera glides across three chapters |
|
|
127
|
-
| [<img src="templates/hero-sneaker-showcase/preview.png" width="180" alt="Sneaker showcase hero">](templates/hero-sneaker-showcase/preview.png) | **Sneaker showcase hero**<br>`hero-sneaker-showcase` · hero | E-commerce product hero: a real PBR sneaker spins onto a ceramic pedestal on a bold coral backdrop, with a data-bound title, tagline, price and Shop now button; click the shoe to glide the camera to a detail view. |
|
|
128
|
-
| [<img src="templates/hero-space-planet/preview.png" width="180" alt="Space planet hero">](templates/hero-space-planet/preview.png) | **Space planet hero**<br>`hero-space-planet` · hero | Cinematic 21:9 space hero: a ringed low-poly planet side-lit into a crescent, an orbiting moon, a drifting purple-blue nebula backdrop, twinkling stars, nebula dust and a comet, bloom + lens flare + film grade, drifting with the pointer |
|
|
129
|
-
| [<img src="templates/landscape-island/preview.png" width="180" alt="Tropical low-poly island">](templates/landscape-island/preview.png) | **Tropical low-poly island**<br>`landscape-island` · hero | Sunny 16:9 procedural diorama: a tropical low-poly island (palm-lined beaches, round-canopy forest, rocky summit) in turquoise lagoon water with animated shore foam, puffy clouds and seabirds circling, cinematic grade, slow orbit + drag. Zero downloads. Behind a headline: set camera.autoRotate to 0 and shift camera.target (see README). |
|
|
130
|
-
| [<img src="templates/landscape-night-galaxy/preview.png" width="180" alt="Night galaxy landscape">](templates/landscape-night-galaxy/preview.png) | **Night galaxy landscape**<br>`landscape-night-galaxy` · hero | Calm 16:9 night hero: glowing crystal clusters (purple, cyan, pink) on dark low-poly hills under a vast rotating spiral galaxy, northern-lights aurora curtains, twinkling stars and drifting fireflies, bloom and a cool grade, slow 20 s camera drift + pointer parallax. Fantasy, AI, web3, gaming or meditation landings. Zero downloads. |
|
|
131
|
-
| [<img src="templates/landscape-valley-sunset/preview.png" width="180" alt="Mountain valley at sunset">](templates/landscape-valley-sunset/preview.png) | **Mountain valley at sunset**<br>`landscape-valley-sunset` · hero | Atmospheric 21:9 landscape: a low-poly mountain valley closed by a snowy range, a pine forest and an animated lake under a physical golden-hour sky, the sun low at the edge of the frame with soft god rays, valley height fog, pink clouds and fireflies |
|
|
132
|
-
| [<img src="templates/card-hover-3d/preview.png" width="180" alt="3D product card">](templates/card-hover-3d/preview.png) | **3D product card**<br>`card-hover-3d` · card | Clean product card (4:5): a PBR water bottle turning over a glossy sage disc with a soft contact shadow, softbox lighting and product look; it lifts, tilts toward the pointer and grows on hover, with a data-bound name, price and link |
|
|
133
|
-
| [<img src="templates/card-product-tilt/preview.png" width="180" alt="Product tilt card">](templates/card-product-tilt/preview.png) | **Product tilt card**<br>`card-product-tilt` · card | Collectible-style product card (4:5): a glossy PBR rubber duck pops out of a holographic-foil card with a sun disc, tilting toward the pointer with a shifting rainbow glare; data-bound name, price, badge and link |
|
|
134
|
-
| [<img src="templates/diorama-city/preview.png" width="180" alt="Isometric city diorama">](templates/diorama-city/preview.png) | **Isometric city diorama**<br>`diorama-city` · square | A Townscaper-like isometric city block (1:1): pastel procedural buildings with lit windows, a park and street trees on a floating clay slab, library cars, a taxi and a police car driving the streets, low warm sun with long soft shadows, tilt-shift miniature blur and a cinematic grade, slow orbit. |
|
|
135
|
-
| [<img src="templates/scene-cozy-room/preview.png" width="180" alt="Cozy room diorama">](templates/scene-cozy-room/preview.png) | **Cozy room diorama**<br>`scene-cozy-room` · square | Isometric cozy living-room corner (1:1) at golden hour: photoreal Poly Haven props (modern armchair, round coffee table, potted succulents) on a wooden floor with a striped rug, a glowing floor lamp, a window area light with dust drifting in the light, framed art, soft VSM shadows, cinematic warm grade and a slow camera sway. Interior design, real estate, furniture, lifestyle or 'work from home' pages. |
|
|
136
|
-
| [<img src="templates/game-basket/preview.png" width="180" alt="Hoop shot">](templates/game-basket/preview.png) | **Hoop shot**<br>`game-basket` · game | Playable 45-second basketball shooting game (16:9) on real rigid-body physics: swipe or drag up to shoot (length = power, drift = aim) or hold Space to charge and release, the ball bounces off a trimesh rim and the backboard, swishes count only when falling through the net, a new spot after every shot, x2 / x3 streaks, best score saved, impact sounds, confetti, spotlit night arena, self-playing attract mode. |
|
|
137
|
-
| [<img src="templates/game-coin-collector/preview.png" width="180" alt="Coin collector arena">](templates/game-coin-collector/preview.png) | **Coin collector arena**<br>`game-coin-collector` · game | Playable 3D platformer arena (16:9): run and jump across a floating grass island and stepped platforms above a sea of clouds to collect 12 coins before the 45 s timer ends |
|
|
138
|
-
| [<img src="templates/game-maze/preview.png" width="180" alt="Marble maze">](templates/game-maze/preview.png) | **Marble maze**<br>`game-maze` · game | Playable marble maze: roll a glossy ball through a procedural maze to the glowing exit against the clock |
|
|
139
|
-
| [<img src="templates/game-physics-playground/preview.png" width="180" alt="Tower smash (physics)">](templates/game-physics-playground/preview.png) | **Tower smash (physics)**<br>`game-physics-playground` · game | Rigid-body physics playground: click or tap to throw balls at a tower of wooden blocks that really tumbles, slides and stacks |
|
|
140
|
-
| [<img src="templates/game-platformer/preview.png" width="180" alt="Sky platformer">](templates/game-platformer/preview.png) | **Sky platformer**<br>`game-platformer` · game | Playable side-scrolling platformer (16:9): a rigged KayKit knight runs and jumps (physics character controller with coyote time) across floating grass platforms, a sliding lift and an elevator lift, collects 13 coins and reaches the goal flag against a 90 s timer |
|
|
141
|
-
| [<img src="templates/game-runner/preview.png" width="180" alt="Endless runner">](templates/game-runner/preview.png) | **Endless runner**<br>`game-runner` · game | Playable endless runner: switch lanes and jump over barriers on a scrolling road, grab coins, speed ramps up, best score saved, game over + retry, synth sounds, keyboard + touch, self-playing attract mode. |
|
|
142
|
-
| [<img src="templates/game-tap-targets/preview.png" width="180" alt="Tap the targets">](templates/game-tap-targets/preview.png) | **Tap the targets**<br>`game-tap-targets` · game | Playable 30-second reflex game: targets pop out of nine holes, tap or click them, chain hits for a combo multiplier, golden targets score 5× |
|
|
143
|
-
|
|
144
|
-
## What you get in an export
|
|
340
|
+
| Area | Commands |
|
|
341
|
+
|---|---|
|
|
342
|
+
| Project | `new <dir> [--template] [--target] [--title] [--aspect]`, `info`, `templates list\|show`, `doctor`, `version`, `help` |
|
|
343
|
+
| Scene | `scene get\|summary\|apply\|patch\|validate`, `object add\|update\|remove\|list\|get\|move`, `timeline get\|set\|add-track\|remove-track`, `catalog [section] [id]` |
|
|
344
|
+
| Look at it | `render [--sheet] [--frames] [--size] [--input] [--segment] [--scroll] [--reduced-motion] [--video\|--gif\|--webp]`, `check [--render]`, `serve [--open]`, `studio` |
|
|
345
|
+
| Ship | `export [--format embed\|zip\|single-html\|poster\|video\|gif] [--out] [--optimize] [--base-url] [--prune-runtime]` |
|
|
346
|
+
| Assets | `assets list\|search\|add\|optimize\|remove\|library` |
|
|
347
|
+
| AI | `tools list\|call`, `mcp [--read-only]` |
|
|
145
348
|
|
|
146
|
-
|
|
147
|
-
dist/embed/
|
|
148
|
-
agent3d-runtime/ the player (ES module + lazy chunks), shared by every scene of the site
|
|
149
|
-
bakery/ scene.json, assets/, scripts/, poster.webp, og-image.png, CREDITS.txt
|
|
150
|
-
index.html a demo page with the snippet and the credits
|
|
151
|
-
snippet.html, head.html what to paste into your page (and its <head>)
|
|
152
|
-
EMBED.md, frameworks/ instructions for the site owner, React / Vue / Svelte wrappers
|
|
153
|
-
```
|
|
349
|
+
Full reference: [docs/cli.md](https://github.com/fleox/agent3d/blob/main/docs/cli.md).
|
|
154
350
|
|
|
155
|
-
|
|
351
|
+
</details>
|
|
156
352
|
|
|
157
|
-
##
|
|
353
|
+
## MCP server
|
|
158
354
|
|
|
159
|
-
|
|
355
|
+
```bash
|
|
356
|
+
claude mcp add agent3d -- npx -y @fleox/agent3d@0.2.1 mcp --project ~/agent3d/my-banner
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
<p align="center">
|
|
360
|
+
<img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/demo-mcp.gif" width="820" alt="Terminal adding the Agent3D MCP server to Claude Code, the server reported as connected, then raw JSON-RPC: initialize, tools/list and a render_preview call that returns the contact sheet as an image">
|
|
361
|
+
</p>
|
|
362
|
+
|
|
363
|
+
**Tools** are the shared AI catalog: project info and creation, scene get / summary / apply / patch / validate, objects, timeline, interactions, catalog and templates lookups, `check`, assets (list, search, add, optimize, library) and `export`, plus **`render_preview`**, which returns the contact sheet as an **image** so multimodal models see their work. **Resources** are the scene, its summary and the catalog. `--read-only` hides every tool that writes. The folder may be empty: `project_create` creates the project there. Claude Desktop, Cursor and Hermes setup: [docs/mcp.md](https://github.com/fleox/agent3d/blob/main/docs/mcp.md).
|
|
160
364
|
|
|
161
365
|
## Documentation
|
|
162
366
|
|
|
163
|
-
|
|
367
|
+
| | |
|
|
368
|
+
|---|---|
|
|
369
|
+
| [Getting started](https://github.com/fleox/agent3d/blob/main/docs/getting-started.md) | Install, a first banner in five commands, using it from an agent |
|
|
370
|
+
| [Art direction](https://github.com/fleox/agent3d/blob/main/docs/art-direction.md) | Premium defaults per kind: composition, lighting, palettes, motion |
|
|
371
|
+
| [Scene format](https://github.com/fleox/agent3d/blob/main/docs/scene-format.md) · [Catalog](https://github.com/fleox/agent3d/blob/main/docs/catalog.md) | `scene.json` field by field; every geometry, material, behaviour, generator and effect with parameters |
|
|
372
|
+
| [Scripting](https://github.com/fleox/agent3d/blob/main/docs/scripting.md) | Games and interactive logic: the ScriptApi, physics, HUD, sandbox rules, headless play-testing |
|
|
373
|
+
| [Export](https://github.com/fleox/agent3d/blob/main/docs/export.md) | Export formats, the `<agent3d-scene>` element, data bindings, frameworks, CSP, videos and GIFs |
|
|
374
|
+
| [Assets](https://github.com/fleox/agent3d/blob/main/docs/assets.md) | The built-in library, CC0 sources, `assets optimize`, licences |
|
|
375
|
+
| [Studio](https://github.com/fleox/agent3d/blob/main/docs/studio.md) · [Studio API](https://github.com/fleox/agent3d/blob/main/docs/studio-api.md) | The visual editor; its local REST API |
|
|
376
|
+
| [CLI](https://github.com/fleox/agent3d/blob/main/docs/cli.md) · [MCP](https://github.com/fleox/agent3d/blob/main/docs/mcp.md) | Every command; MCP clients |
|
|
377
|
+
| [Architecture](https://github.com/fleox/agent3d/blob/main/docs/architecture.md) · [Security](https://github.com/fleox/agent3d/blob/main/docs/security.md) | The engine, the runtime, the render loop; what touches the network, the script sandbox |
|
|
378
|
+
| [AGENTS.md](https://github.com/fleox/agent3d/blob/main/AGENTS.md) | Instructions for AI agents working on this repository |
|
|
379
|
+
|
|
380
|
+
## Contributing
|
|
381
|
+
|
|
382
|
+
Bug reports and ideas are welcome: [open an issue](https://github.com/fleox/agent3d/issues/new/choose). Read [CONTRIBUTING.md](https://github.com/fleox/agent3d/blob/main/CONTRIBUTING.md) before opening a pull request. For security issues, follow [SECURITY.md](https://github.com/fleox/agent3d/blob/main/SECURITY.md) instead of opening a public issue.
|
|
383
|
+
|
|
384
|
+
```bash
|
|
385
|
+
npm install --legacy-peer-deps
|
|
386
|
+
npm run dev # the Studio (projects in the browser)
|
|
387
|
+
npm test # Vitest
|
|
388
|
+
npm run build # runtime + Studio + CLI
|
|
389
|
+
```
|
|
164
390
|
|
|
165
|
-
##
|
|
391
|
+
## License
|
|
166
392
|
|
|
167
|
-
[PolyForm Noncommercial 1.0.0](LICENSE)
|
|
393
|
+
Source-available under the [PolyForm Noncommercial License 1.0.0](https://github.com/fleox/agent3d/blob/main/LICENSE). Personal, hobbyist, educational, research and other noncommercial use is free, and you can fork, modify and redistribute under the same terms.
|
|
168
394
|
|
|
169
|
-
|
|
395
|
+
**Commercial use requires written authorization.** This includes selling the software or hosting it as a paid service. For a commercial license, [open an issue](https://github.com/fleox/agent3d/issues).
|
|
170
396
|
|
|
171
|
-
|
|
172
|
-
- The built-in library is CC0 (KayKit by Kay Lousberg, Kenney, Poly Haven textures, models and HDRIs, Khronos glTF samples, RobotExpressive by Tomás Laulhé / Quaternius), with the fonts under Apache-2.0 / OFL-1.1 and CC BY parts on the Khronos fox: full list and attribution lines in [library/LICENSES.md](library/LICENSES.md). Exports list the credits their assets need.
|
|
173
|
-
- Assets you download with `agent3d assets` keep their licence in your project (`assets/manifest.json`).
|
|
397
|
+
Agent3D renders with [three.js](https://threejs.org), runs physics with [cannon-es](https://github.com/pmndrs/cannon-es) and decodes compressed models with [meshoptimizer](https://github.com/zeux/meshoptimizer) (all MIT). The built-in library is CC0, with OFL / Apache-2.0 fonts and a few CC BY models whose credits exports list: see [library/LICENSES.md](https://github.com/fleox/agent3d/blob/main/library/LICENSES.md).
|