@fleox/agent3d 0.3.1 → 0.5.0
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 +16 -14
- package/changelog.json +25 -0
- package/dist/agent/agent3d.mjs +802 -90
- package/dist/agent/chunks/{assets-YBkgdfgy.mjs → assets-DdzHgVcn.mjs} +2 -2
- package/dist/agent/chunks/{browser-Dil7VM5m.mjs → browser-nFaRUETt.mjs} +1 -1
- package/dist/agent/chunks/{cdp-DLEis_Z3.mjs → cdp-6vF_gP-H.mjs} +1 -1
- package/dist/agent/chunks/{check-DP9fRYbK.mjs → check-E7GdPxTt.mjs} +14 -2
- package/dist/agent/chunks/{depth-CD_ql3QJ.mjs → depth-Bf7cHwod.mjs} +4 -4
- package/dist/agent/chunks/{depth-BZT4gseQ.mjs → depth-DEaogEAi.mjs} +4 -114
- package/dist/agent/chunks/{export-bJwh2SqG.mjs → export-BSOqVfPT.mjs} +87 -7
- package/dist/agent/chunks/{imageCodec-DeGfmBp3.mjs → imageCodec-DXxqkEQA.mjs} +53 -4
- package/dist/agent/chunks/{objects-DuytRxiC.mjs → objects-DvzrcVmK.mjs} +2 -2
- package/dist/agent/chunks/{optimizeSizing-B-BBiUkD.mjs → optimizeSizing-Dd8vaSnE.mjs} +24 -1
- package/dist/agent/chunks/{package-fMbw9UGh.mjs → package-DzXqX5Oe.mjs} +2 -2
- package/dist/agent/chunks/photoPlacement-D-k3mD0T.mjs +138 -0
- package/dist/agent/chunks/plate-Cwl35I2T.mjs +604 -0
- package/dist/agent/chunks/pngEncode-BMc3U9QC.mjs +119 -0
- package/dist/agent/chunks/{render-B05DU4Q5.mjs → render-CCKciCgu.mjs} +76 -11
- package/dist/agent/chunks/{scene-DWgXH6As.mjs → scene-DSjsun-3.mjs} +22 -5
- package/dist/agent/chunks/{server-Dt_YFvN7.mjs → server-CLvLORgA.mjs} +1 -1
- package/dist/agent/chunks/{tools-Cm4BqDkO.mjs → tools-Vs74Xopx.mjs} +153 -14
- package/dist/runtime/agent3d-photo.js +72 -0
- package/dist/runtime/agent3d-runtime.js +41 -41
- package/dist/runtime/agent3d-runtime.single.js +526 -250
- package/dist/runtime/chunks/assets-kC2Z1Xy_.js +1 -0
- package/dist/runtime/chunks/game-CbQaEB4q.js +20 -0
- package/dist/runtime/chunks/materials-jwhXlLYl.js +107 -0
- package/dist/runtime/chunks/model-CG5T_jcB.js +1 -0
- package/dist/runtime/chunks/num-CQNAlL82.js +1 -0
- package/dist/runtime/chunks/photo-Dq-AKlfw.js +526 -0
- package/dist/runtime/chunks/physicsHost-BU-2V-CZ.js +1 -0
- package/dist/runtime/chunks/{postfx-Cbf_vvOr.js → postfx-DnIeKXAh.js} +1 -1
- package/dist/runtime/chunks/postfx-ylpcQcVK.js +1 -0
- package/dist/runtime/chunks/svg-fYjsY-rV.js +1 -0
- package/dist/runtime/chunks/{text-rSo_2Luk.js → text-CySfj5sH.js} +1 -1
- package/dist/runtime/chunks/util-BEflQURG.js +1 -0
- package/dist/studio/assets/BufferGeometryUtils-BbzK4rCj.js +1 -0
- package/dist/studio/assets/{EXRLoader-BKkzlNd8.js → EXRLoader-CuDOo1xG.js} +1 -1
- package/dist/studio/assets/{FontLoader-Bzjx8mXt.js → FontLoader-DlBfss5q.js} +1 -1
- package/dist/studio/assets/{GLTFLoader-1Zd9N406.js → GLTFLoader-bl1eymL4.js} +1 -1
- package/dist/studio/assets/{GroundedSkybox-BEMqNCBD.js → GroundedSkybox-cLn9JVlt.js} +1 -1
- package/dist/studio/assets/{HDRLoader-DxB0kxPH.js → HDRLoader-8EiZoQQP.js} +1 -1
- package/dist/studio/assets/{OrbitControls-MlE9XiCg.js → OrbitControls-1xEm394I.js} +1 -1
- package/dist/studio/assets/{RectAreaLightUniformsLib-ClHrtYY6.js → RectAreaLightUniformsLib-S0AelTmO.js} +1 -1
- package/dist/studio/assets/{RoomEnvironment-MJ-jIEC8.js → RoomEnvironment-v4QurKxu.js} +1 -1
- package/dist/studio/assets/{SVGLoader-CIYl0nEy.js → SVGLoader-KDBVv02P.js} +1 -1
- package/dist/studio/assets/{Sky-DNMfpp92.js → Sky-D8Lp9Zh3.js} +1 -1
- package/dist/studio/assets/assets-DnOt59SU.js +2 -0
- package/dist/studio/assets/camera-DrubOxWu.js +2 -0
- package/dist/studio/assets/catalog-DDg904x2.js +1 -0
- package/dist/studio/assets/{editor-NkBUKsDB.js → editor-V--luWVq.js} +1 -1
- package/dist/studio/assets/{extrude-9bG8hr2C.js → extrude-BpJda0hq.js} +1 -1
- package/dist/studio/assets/game-43BhY_EE.js +19 -0
- package/dist/studio/assets/{generators-BjIs-kHx.js → generators-lG93qWTO.js} +5 -5
- package/dist/studio/assets/index-BPVRhKVV.js +479 -0
- package/dist/studio/assets/index-D-TPNQMQ.css +1 -0
- package/dist/studio/assets/model-D8-inS_D.js +2 -0
- package/dist/studio/assets/num-CQNAlL82.js +1 -0
- package/dist/studio/assets/params-BZqUA__U.js +1 -0
- package/dist/studio/assets/photo-BuVK-UvQ.js +526 -0
- package/dist/studio/assets/physicsHost-EkPuIy04.js +1 -0
- package/dist/studio/assets/{postfx-BGu30OJK.js → postfx-Bcnem9ci.js} +13 -13
- package/dist/studio/assets/rolldown-runtime-4tVxZq34.js +1 -0
- package/dist/studio/assets/runtime-5Ti8UJJR.js +572 -0
- package/dist/studio/assets/{shaders-Dt6FGXH_.js → shaders-WM5brr9C.js} +1 -1
- package/dist/studio/assets/svg-CJ_RtiER.js +2 -0
- package/dist/studio/assets/text-NO7lyCoH.js +3 -0
- package/dist/studio/assets/three.module-B9FlcKtd.js +4225 -0
- package/dist/studio/index.html +5 -3
- package/package.json +2 -2
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/skills/agent3d-assets/SKILL.md +42 -27
- package/plugin/skills/agent3d-create/SKILL.md +77 -29
- 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 +3 -3
- package/plugin/skills/agent3d-game/SKILL.md +7 -7
- package/plugin/skills/agent3d-publish/SKILL.md +32 -23
- package/plugin/skills/agent3d-publish/references/integrations.md +1 -1
- package/templates/hero-scroll-story/README.md +1 -1
- package/templates/photo-scroll-story/README.md +29 -0
- package/templates/photo-scroll-story/agent3d.json +8 -0
- package/templates/photo-scroll-story/assets/depth/lake-depth.png +0 -0
- package/templates/photo-scroll-story/assets/depth/street-depth.png +0 -0
- package/templates/photo-scroll-story/assets/manifest.json +46 -0
- package/templates/photo-scroll-story/assets/textures/lake.webp +0 -0
- package/templates/photo-scroll-story/assets/textures/street.webp +0 -0
- package/templates/photo-scroll-story/preview.png +0 -0
- package/templates/photo-scroll-story/scene.json +112 -0
- package/templates/photo-scroll-story/template.json +8 -0
- package/templates/photo-title-inside/README.md +31 -0
- package/templates/photo-title-inside/agent3d.json +8 -0
- package/templates/photo-title-inside/assets/depth/street-depth.png +0 -0
- package/templates/photo-title-inside/assets/manifest.json +25 -0
- package/templates/photo-title-inside/assets/textures/street.webp +0 -0
- package/templates/photo-title-inside/preview.png +0 -0
- package/templates/photo-title-inside/scene.json +80 -0
- package/templates/photo-title-inside/template.json +8 -0
- package/dist/runtime/chunks/assets-qnxDnVkj.js +0 -1
- package/dist/runtime/chunks/game-BoEiyZrL.js +0 -20
- package/dist/runtime/chunks/materials-dC4vDNHh.js +0 -107
- package/dist/runtime/chunks/model-BCAl_NRl.js +0 -1
- package/dist/runtime/chunks/photo-DNf14X7B.js +0 -250
- package/dist/runtime/chunks/physicsHost-ChPgysMQ.js +0 -1
- package/dist/runtime/chunks/postfx-CFucYRev.js +0 -1
- package/dist/runtime/chunks/svg-CLUxY6Zy.js +0 -1
- package/dist/runtime/chunks/util-CyaW1fcW.js +0 -1
- package/dist/studio/assets/BufferGeometryUtils-CAlXAboW.js +0 -1
- package/dist/studio/assets/assets-BW5lQkYR.js +0 -1
- package/dist/studio/assets/camera-BgzPVnn-.js +0 -2
- package/dist/studio/assets/game-DARpu0ah.js +0 -19
- package/dist/studio/assets/index-BQT0otii.css +0 -1
- package/dist/studio/assets/index-L-N-e2KM.js +0 -479
- package/dist/studio/assets/model-CqI8j03Z.js +0 -2
- package/dist/studio/assets/params-DhsDKSDs.js +0 -1
- package/dist/studio/assets/photo-DAHd1yNF.js +0 -250
- package/dist/studio/assets/physicsHost-tEUto2-_.js +0 -1
- package/dist/studio/assets/runtime-C_qkIpAK.js +0 -572
- package/dist/studio/assets/svg-ZZt5MdNf.js +0 -2
- package/dist/studio/assets/text-B-HM422i.js +0 -3
- package/dist/studio/assets/three.module-CnI50X0U.js +0 -4225
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<tr>
|
|
48
48
|
<td width="33%" valign="top">
|
|
49
49
|
<h3>🎬 Stunning by default</h3>
|
|
50
|
-
<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
|
|
50
|
+
<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 34 templates and validated recipes, with art direction built into the skills.</p>
|
|
51
51
|
</td>
|
|
52
52
|
<td width="33%" valign="top">
|
|
53
53
|
<h3>🤖 Agent-native</h3>
|
|
@@ -109,19 +109,19 @@ Once the scene exists, changing it is a conversation:
|
|
|
109
109
|
### Without an agent
|
|
110
110
|
|
|
111
111
|
```bash
|
|
112
|
-
npx -y @fleox/agent3d@0.
|
|
113
|
-
npx -y @fleox/agent3d@0.
|
|
112
|
+
npx -y @fleox/agent3d@0.5.0 new bakery --target banner --title "Golden Crust"
|
|
113
|
+
npx -y @fleox/agent3d@0.5.0 studio --project bakery
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
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.
|
|
116
|
+
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.5.0 doctor` checks your setup with a test render.
|
|
117
117
|
|
|
118
118
|
The whole loop from a terminal:
|
|
119
119
|
|
|
120
120
|
```bash
|
|
121
|
-
npx -y @fleox/agent3d@0.
|
|
122
|
-
npx -y @fleox/agent3d@0.
|
|
123
|
-
npx -y @fleox/agent3d@0.
|
|
124
|
-
npx -y @fleox/agent3d@0.
|
|
121
|
+
npx -y @fleox/agent3d@0.5.0 scene patch --project bakery '[{"op":"set","path":"objects#title.material","value":{"preset":"gold"}}]'
|
|
122
|
+
npx -y @fleox/agent3d@0.5.0 render --project bakery --sheet # → renders/…-sheet.png
|
|
123
|
+
npx -y @fleox/agent3d@0.5.0 check --project bakery
|
|
124
|
+
npx -y @fleox/agent3d@0.5.0 export --project bakery # → dist/embed/ + the snippet
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/main/docs/getting-started.md).
|
|
@@ -171,7 +171,7 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
|
|
|
171
171
|
- 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
|
|
172
172
|
- A procedural **character** generator (humanoid, astronaut, robot, blob, cat, fox, bird, ghost) with animations such as wave, run, jump, dance and celebrate
|
|
173
173
|
- 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
|
|
174
|
-
- **3D photos**: any photo plus a depth map estimated on your machine (`assets depth`: Depth Anything V2 Small, a 27 MB model downloaded once, then offline) moves in depth with the pointer, the phone's gyroscope, the scroll or a gentle automatic drift — shader parallax, a displaced mesh or pop-up layers
|
|
174
|
+
- **3D photos**: any photo plus a depth map estimated on your machine (`assets depth`: Depth Anything V2 Small, a 27 MB model downloaded once, then offline) moves in depth with the pointer, the phone's gyroscope, the scroll or a gentle automatic drift — shader parallax, a displaced mesh or pop-up layers. 3D text, models and particles can live *inside* the photo, hidden by its foreground (`occlude`); depth-driven effects (fog, a light that follows the pointer, a depth-by-depth reveal, rack focus, out-of-frame pop-out); a background plate rebuilt behind the foreground for bigger camera moves (`assets plate`); cinematic moves (dolly, pan, rise, vertigo) and one-command social videos (`render --video --preset vertical`); scroll stories that dive into photos. A photo-only hero exports with a ~19 KB player instead of three.js
|
|
175
175
|
- 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
|
|
176
176
|
|
|
177
177
|
**Games**
|
|
@@ -194,7 +194,7 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
|
|
|
194
194
|
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.
|
|
195
195
|
|
|
196
196
|
```bash
|
|
197
|
-
npx -y @fleox/agent3d@0.
|
|
197
|
+
npx -y @fleox/agent3d@0.5.0 studio --project bakery
|
|
198
198
|
```
|
|
199
199
|
|
|
200
200
|
<p align="center">
|
|
@@ -242,12 +242,12 @@ Move / rotate / scale gizmos, an editor camera and the scene camera with framing
|
|
|
242
242
|
<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">
|
|
243
243
|
</p>
|
|
244
244
|
|
|
245
|
-
|
|
245
|
+
34 starter projects, each a complete scene that passes `check --render`: 8 banners, 15 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.
|
|
246
246
|
|
|
247
247
|
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.
|
|
248
248
|
|
|
249
249
|
<details>
|
|
250
|
-
<summary><b>All
|
|
250
|
+
<summary><b>All 34 templates</b></summary>
|
|
251
251
|
|
|
252
252
|
| Preview | Template | Kind | What it is |
|
|
253
253
|
|---|---|---|---|
|
|
@@ -264,6 +264,7 @@ To see them all live in a browser, build the gallery from a clone (`npm install
|
|
|
264
264
|
| <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. |
|
|
265
265
|
| <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). |
|
|
266
266
|
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/hero-photo-3d/preview.png" width="160" alt="3D photo hero"> | [**3D photo hero**](https://github.com/fleox/agent3d/tree/main/templates/hero-photo-3d)<br>`hero-photo-3d` | hero · 16:9 | A photo brought to life: a blue-hour old-town street (CC0) turned into a 3D photo with its estimated depth map, moving in depth with the pointer, the phone's gyroscope and a gentle automatic sway, under a white serif headline and subtitle (data-bound). |
|
|
267
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/photo-title-inside/preview.png" width="160" alt="3D title inside a photo"> | [**3D title inside a photo**](https://github.com/fleox/agent3d/tree/main/templates/photo-title-inside)<br>`photo-title-inside` | hero · 16:9 | 3D inside a 3D photo: a big 3D title placed between the far houses and the nearest building of a blue-hour old-town street (CC0), so the facade hides part of the letters, with snow falling in front of and behind the buildings; the photo writes its depth (`occlude: true`) and its motion moves the real camera, so the title slides exactly with the street. |
|
|
267
268
|
| <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. |
|
|
268
269
|
| <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. |
|
|
269
270
|
| <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. |
|
|
@@ -272,6 +273,7 @@ To see them all live in a browser, build the gallery from a clone (`npm install
|
|
|
272
273
|
| <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. |
|
|
273
274
|
| <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. |
|
|
274
275
|
| <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. |
|
|
276
|
+
| <img src="https://raw.githubusercontent.com/fleox/agent3d/main/templates/photo-scroll-story/preview.png" width="160" alt="Photo scroll story"> | [**Photo scroll story**](https://github.com/fleox/agent3d/tree/main/templates/photo-scroll-story)<br>`photo-scroll-story` | hero · 16:9 | A scroll-driven hero made of two 3D photos (CC0): scrolling dives down a blue-hour street (dolly), dissolves into a mountain lake and ends on a dolly zoom, with headlines fading between the chapters (data-bound). |
|
|
275
277
|
| <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. |
|
|
276
278
|
| <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. |
|
|
277
279
|
| <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. |
|
|
@@ -323,7 +325,7 @@ Pick Spline when a designer wants a hosted visual tool, hand-written Three.js wh
|
|
|
323
325
|
|
|
324
326
|
## The `agent3d` CLI
|
|
325
327
|
|
|
326
|
-
The same engine the agents use, by hand: `npx -y @fleox/agent3d@0.
|
|
328
|
+
The same engine the agents use, by hand: `npx -y @fleox/agent3d@0.5.0 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`.
|
|
327
329
|
|
|
328
330
|
<p align="center">
|
|
329
331
|
<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">
|
|
@@ -361,7 +363,7 @@ Full reference: [docs/cli.md](https://github.com/fleox/agent3d/blob/main/docs/cl
|
|
|
361
363
|
## MCP server
|
|
362
364
|
|
|
363
365
|
```bash
|
|
364
|
-
claude mcp add agent3d -- npx -y @fleox/agent3d@0.
|
|
366
|
+
claude mcp add agent3d -- npx -y @fleox/agent3d@0.5.0 mcp --project ~/agent3d/my-banner
|
|
365
367
|
```
|
|
366
368
|
|
|
367
369
|
<p align="center">
|
package/changelog.json
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"versions": [
|
|
3
|
+
{
|
|
4
|
+
"version": "0.5.0",
|
|
5
|
+
"date": "2026-11-26",
|
|
6
|
+
"breaking": false,
|
|
7
|
+
"changes": [
|
|
8
|
+
"3D inside the photo: `\"occlude\": true` makes a depth photo write the true depth of its pixels, so 3D text, models and particles placed between its depth planes are hidden by its foreground (a title passing behind the nearest building, snow falling in front of and behind it); its motion moves the real camera so they slide exactly with the photo. `scene summary` gives each depth photo a `depthRange`, `check` suggests `occlude` (`photo-occlude`). New template `photo-title-inside`.",
|
|
9
|
+
"Depth-driven photo effects (`effects` on a photo, every mode, kept by the photo-only player): `fog` (haze in the distance, drifting wisps), `light` (a light that rakes the relief and follows the pointer), `reveal` (the photo appears depth slice by depth slice), `blur` (depth of field with an automatic rack focus) and `frame` (the photo in a frame, the near subject stepping out of it). Every parameter animates from the timeline (`<id>.effects.<effect>.<param>`).",
|
|
10
|
+
"Background plates: `agent3d assets plate <image>` (or `assets depth --plate`, AI tool `image_plate`) rebuilds what hides behind the foreground (depth-aware fill, about 0.3 s, no new model); set the photo's `plate` + `plateDepth` and bigger camera moves no longer smear or stretch edges (parallax, mesh and layers).",
|
|
11
|
+
"Cinematic photo moves: `motion.auto` `dolly`, `pan`, `rise` and `vertigo` (dolly zoom), seamless loops or one-way (`loop: false`, `duration`), and `motion.progress` to drive a move from the timeline; photos crossfade with `material.opacity` tracks. New template `photo-scroll-story`: scrolling the page dives down a street and dissolves into a lake.",
|
|
12
|
+
"Social videos in one command: `agent3d render --video reel.mp4 --preset vertical|square|landscape|story` (and `export --format video --preset`, the export tool's `preset`): 1080×1920 / 1080×1080 / 1920×1080, 30 fps, one seamless loop of the photo move, the framing tightened so the photo covers the frame (`notes` say what was cropped).",
|
|
13
|
+
"Scroll-driven scenes pinned with `position: sticky` now progress while pinned: the scroll is measured on the pin section (this also fixes the layout recommended by `hero-scroll-story`).",
|
|
14
|
+
"The photo-only player (`agent3d-photo.js`) supports the effects, plates and moves; it is now about 19 KB gzipped."
|
|
15
|
+
],
|
|
16
|
+
"actions": []
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"version": "0.4.0",
|
|
20
|
+
"date": "2026-11-26",
|
|
21
|
+
"breaking": false,
|
|
22
|
+
"changes": [
|
|
23
|
+
"Photo-only exports load a 14 KB player instead of three.js: when the scene is a single 3D photo in parallax mode (no text, effects, timeline…), `export` ships `agent3d-photo.js` (raw WebGL2, the same `<agent3d-scene>` element, same pixels) — the landscape demo's runtime JavaScript went from ~242 KB to ~14 KB gzip. `export --runtime full` (and the `export` tool's `runtime`) keeps the full runtime; the result reports `runtime: \"photo-lite\" | \"full\"` and, when full, why.",
|
|
24
|
+
"A page that also shows a scene the photo player cannot render loads the full runtime for that element automatically."
|
|
25
|
+
],
|
|
26
|
+
"actions": []
|
|
27
|
+
},
|
|
3
28
|
{
|
|
4
29
|
"version": "0.3.1",
|
|
5
30
|
"date": "2026-11-26",
|