@fleox/agent3d 0.4.0 → 0.5.2

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.
Files changed (101) hide show
  1. package/README.md +45 -14
  2. package/changelog.json +24 -0
  3. package/dist/agent/agent3d.mjs +779 -85
  4. package/dist/agent/chunks/{assets-YBkgdfgy.mjs → assets-DdzHgVcn.mjs} +2 -2
  5. package/dist/agent/chunks/{browser-Dil7VM5m.mjs → browser-nFaRUETt.mjs} +1 -1
  6. package/dist/agent/chunks/{cdp-DLEis_Z3.mjs → cdp-6vF_gP-H.mjs} +1 -1
  7. package/dist/agent/chunks/{check-DP9fRYbK.mjs → check-E7GdPxTt.mjs} +14 -2
  8. package/dist/agent/chunks/{depth-CD_ql3QJ.mjs → depth-Bf7cHwod.mjs} +4 -4
  9. package/dist/agent/chunks/{depth-BZT4gseQ.mjs → depth-DEaogEAi.mjs} +4 -114
  10. package/dist/agent/chunks/{export-CEX5DFLo.mjs → export-BSOqVfPT.mjs} +8 -4
  11. package/dist/agent/chunks/{imageCodec-DeGfmBp3.mjs → imageCodec-DXxqkEQA.mjs} +53 -4
  12. package/dist/agent/chunks/{objects-DuytRxiC.mjs → objects-DvzrcVmK.mjs} +2 -2
  13. package/dist/agent/chunks/{optimizeSizing-B-BBiUkD.mjs → optimizeSizing-Dd8vaSnE.mjs} +24 -1
  14. package/dist/agent/chunks/{package-DjRnLzcU.mjs → package-Bn7PKfXn.mjs} +1 -1
  15. package/dist/agent/chunks/photoPlacement-D-k3mD0T.mjs +138 -0
  16. package/dist/agent/chunks/plate-Cwl35I2T.mjs +604 -0
  17. package/dist/agent/chunks/pngEncode-BMc3U9QC.mjs +119 -0
  18. package/dist/agent/chunks/{render-B05DU4Q5.mjs → render-CCKciCgu.mjs} +76 -11
  19. package/dist/agent/chunks/{scene-DWgXH6As.mjs → scene-DSjsun-3.mjs} +22 -5
  20. package/dist/agent/chunks/{server-Dt_YFvN7.mjs → server-CLvLORgA.mjs} +1 -1
  21. package/dist/agent/chunks/{tools-CZyIc4zw.mjs → tools-Vs74Xopx.mjs} +142 -13
  22. package/dist/runtime/agent3d-photo.js +51 -10
  23. package/dist/runtime/agent3d-runtime.js +23 -23
  24. package/dist/runtime/agent3d-runtime.single.js +405 -134
  25. package/dist/runtime/chunks/photo-Dq-AKlfw.js +526 -0
  26. package/dist/studio/assets/BufferGeometryUtils-BbzK4rCj.js +1 -0
  27. package/dist/studio/assets/{EXRLoader-BKkzlNd8.js → EXRLoader-CuDOo1xG.js} +1 -1
  28. package/dist/studio/assets/{FontLoader-Bzjx8mXt.js → FontLoader-DlBfss5q.js} +1 -1
  29. package/dist/studio/assets/{GLTFLoader-1Zd9N406.js → GLTFLoader-bl1eymL4.js} +1 -1
  30. package/dist/studio/assets/{GroundedSkybox-BEMqNCBD.js → GroundedSkybox-cLn9JVlt.js} +1 -1
  31. package/dist/studio/assets/{HDRLoader-DxB0kxPH.js → HDRLoader-8EiZoQQP.js} +1 -1
  32. package/dist/studio/assets/{OrbitControls-MlE9XiCg.js → OrbitControls-1xEm394I.js} +1 -1
  33. package/dist/studio/assets/{RectAreaLightUniformsLib-ClHrtYY6.js → RectAreaLightUniformsLib-S0AelTmO.js} +1 -1
  34. package/dist/studio/assets/{RoomEnvironment-MJ-jIEC8.js → RoomEnvironment-v4QurKxu.js} +1 -1
  35. package/dist/studio/assets/{SVGLoader-CIYl0nEy.js → SVGLoader-KDBVv02P.js} +1 -1
  36. package/dist/studio/assets/{Sky-DNMfpp92.js → Sky-D8Lp9Zh3.js} +1 -1
  37. package/dist/studio/assets/assets-DICv7P37.js +2 -0
  38. package/dist/studio/assets/camera-HsMeC1mn.js +2 -0
  39. package/dist/studio/assets/catalog-DDg904x2.js +1 -0
  40. package/dist/studio/assets/{editor-DzyukvQl.js → editor-BZLIZJC8.js} +1 -1
  41. package/dist/studio/assets/{extrude-9bG8hr2C.js → extrude-BpJda0hq.js} +1 -1
  42. package/dist/studio/assets/game-DnnuBk26.js +19 -0
  43. package/dist/studio/assets/{generators-BuVeRXnC.js → generators-C4n9MsXd.js} +1 -1
  44. package/dist/studio/assets/index-D-TPNQMQ.css +1 -0
  45. package/dist/studio/assets/index-cDbmaVDl.js +479 -0
  46. package/dist/studio/assets/model-CkPfLOl0.js +2 -0
  47. package/dist/studio/assets/params-BZqUA__U.js +1 -0
  48. package/dist/studio/assets/photo-CPGGCRa-.js +526 -0
  49. package/dist/studio/assets/{physicsHost-z9qn_mpg.js → physicsHost-EkPuIy04.js} +1 -1
  50. package/dist/studio/assets/{postfx-B3jDEaEK.js → postfx-Dp7mgfGJ.js} +2 -2
  51. package/dist/studio/assets/rolldown-runtime-4tVxZq34.js +1 -0
  52. package/dist/studio/assets/runtime-ByR4qfyV.js +572 -0
  53. package/dist/studio/assets/{shaders-bFhELLmD.js → shaders-DoRMwJE_.js} +1 -1
  54. package/dist/studio/assets/svg-n3rkKAm5.js +2 -0
  55. package/dist/studio/assets/text-BkPPDghK.js +3 -0
  56. package/dist/studio/assets/three.module-B9FlcKtd.js +4225 -0
  57. package/dist/studio/index.html +5 -3
  58. package/package.json +1 -1
  59. package/plugin/.claude-plugin/plugin.json +1 -1
  60. package/plugin/skills/agent3d-assets/SKILL.md +42 -27
  61. package/plugin/skills/agent3d-create/SKILL.md +77 -29
  62. package/plugin/skills/agent3d-create/references/art-direction.md +3 -3
  63. package/plugin/skills/agent3d-create/references/recipes.md +6 -6
  64. package/plugin/skills/agent3d-edit/SKILL.md +22 -22
  65. package/plugin/skills/agent3d-edit/references/patch-ops.md +3 -3
  66. package/plugin/skills/agent3d-game/SKILL.md +7 -7
  67. package/plugin/skills/agent3d-publish/SKILL.md +30 -23
  68. package/plugin/skills/agent3d-publish/references/integrations.md +1 -1
  69. package/templates/hero-scroll-story/README.md +1 -1
  70. package/templates/photo-scroll-story/README.md +29 -0
  71. package/templates/photo-scroll-story/agent3d.json +8 -0
  72. package/templates/photo-scroll-story/assets/depth/lake-depth.png +0 -0
  73. package/templates/photo-scroll-story/assets/depth/street-depth.png +0 -0
  74. package/templates/photo-scroll-story/assets/manifest.json +46 -0
  75. package/templates/photo-scroll-story/assets/textures/lake.webp +0 -0
  76. package/templates/photo-scroll-story/assets/textures/street.webp +0 -0
  77. package/templates/photo-scroll-story/preview.png +0 -0
  78. package/templates/photo-scroll-story/scene.json +112 -0
  79. package/templates/photo-scroll-story/template.json +8 -0
  80. package/templates/photo-title-inside/README.md +31 -0
  81. package/templates/photo-title-inside/agent3d.json +8 -0
  82. package/templates/photo-title-inside/assets/depth/street-depth.png +0 -0
  83. package/templates/photo-title-inside/assets/manifest.json +25 -0
  84. package/templates/photo-title-inside/assets/textures/street.webp +0 -0
  85. package/templates/photo-title-inside/preview.png +0 -0
  86. package/templates/photo-title-inside/scene.json +80 -0
  87. package/templates/photo-title-inside/template.json +8 -0
  88. package/dist/runtime/chunks/photo-w6dwHX7j.js +0 -255
  89. package/dist/studio/assets/BufferGeometryUtils-CAlXAboW.js +0 -1
  90. package/dist/studio/assets/assets--ehPZf8R.js +0 -1
  91. package/dist/studio/assets/camera-C0sxfRxy.js +0 -2
  92. package/dist/studio/assets/game-DNpTN_Ga.js +0 -19
  93. package/dist/studio/assets/index-BQT0otii.css +0 -1
  94. package/dist/studio/assets/index-C2nMYSoW.js +0 -479
  95. package/dist/studio/assets/model-DQgOrTs4.js +0 -2
  96. package/dist/studio/assets/params-D-Ul6GSt.js +0 -1
  97. package/dist/studio/assets/photo-Dx2IBJ11.js +0 -255
  98. package/dist/studio/assets/runtime-rd9RW3WH.js +0 -572
  99. package/dist/studio/assets/svg-BkV9LeqP.js +0 -2
  100. package/dist/studio/assets/text-Dp8gdjSA.js +0 -3
  101. 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 32 templates and validated recipes, with art direction built into the skills.</p>
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.4.0 new bakery --target banner --title "Golden Crust"
113
- npx -y @fleox/agent3d@0.4.0 studio --project bakery
112
+ npx -y @fleox/agent3d@0.5.2 new bakery --target banner --title "Golden Crust"
113
+ npx -y @fleox/agent3d@0.5.2 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.4.0 doctor` checks your setup with a test render.
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.2 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.4.0 scene patch --project bakery '[{"op":"set","path":"objects#title.material","value":{"preset":"gold"}}]'
122
- npx -y @fleox/agent3d@0.4.0 render --project bakery --sheet # → renders/…-sheet.png
123
- npx -y @fleox/agent3d@0.4.0 check --project bakery
124
- npx -y @fleox/agent3d@0.4.0 export --project bakery # → dist/embed/ + the snippet
121
+ npx -y @fleox/agent3d@0.5.2 scene patch --project bakery '[{"op":"set","path":"objects#title.material","value":{"preset":"gold"}}]'
122
+ npx -y @fleox/agent3d@0.5.2 render --project bakery --sheet # → renders/…-sheet.png
123
+ npx -y @fleox/agent3d@0.5.2 check --project bakery
124
+ npx -y @fleox/agent3d@0.5.2 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).
@@ -157,6 +157,35 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
157
157
  <br><sub><b>3D photo</b>: one CC0 photo plus a depth map estimated locally in about a second (<code>agent3d assets depth</code>), moving in depth as the pointer sweeps across it. The <a href="https://github.com/fleox/agent3d/tree/main/templates/hero-photo-3d"><code>hero-photo-3d</code></a> template, rendered with <code>agent3d render --input</code>.</sub>
158
158
  </p>
159
159
 
160
+ **Beyond parallax: what else an agent can do with one photo.** Every clip is a headless render (`agent3d render --video`, then converted to WebP for this page) of a demo scene; the line in quotes is what to ask your agent to get the same result on your own photo. CC0 photos, depth maps estimated locally.
161
+
162
+ <table>
163
+ <tr>
164
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-inside.webp" width="100%" alt="A 3D OLD TOWN title placed inside a street photo: its letters pass behind the foreground houses as the view moves, with snow falling in front of and behind them"><br><b>3D inside the photo</b> (<code>occlude</code>)<br><i>"Put the OLD TOWN title inside the photo, behind the foreground buildings, with snow falling in front and behind."</i></td>
165
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-fog.webp" width="100%" alt="A bluish mist gathering at the far end of a street photo while the near facades stay clear"><br><b>Depth fog</b> (<code>effects.fog</code>)<br><i>"Add a bluish mist in the background of the photo."</i></td>
166
+ </tr>
167
+ <tr>
168
+ <td valign="top"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-light.webp" width="100%" alt="A warm light following the pointer over a photo of nesting dolls, shading their rounded shapes"><br><b>A light that follows the pointer</b> (<code>effects.light</code>, normals from the depth map)<br><i>"Light the photo with a warm lamp that follows the mouse."</i></td>
169
+ <td valign="top"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-reveal.webp" width="100%" alt="A street photo appearing plane by plane, from the far background to the nearest facades"><br><b>Depth-by-depth reveal</b> (<code>effects.reveal</code>)<br><i>"Make the photo appear from the background to the front in 3 seconds."</i></td>
170
+ </tr>
171
+ <tr>
172
+ <td valign="top"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-rack.webp" width="100%" alt="A grazing light sweeping down a street photo while a mist rises and falls, driven by the timeline"><br><b>Effects on the timeline</b><br><i>"Sweep a light across the street while the mist rises."</i></td>
173
+ <td valign="top"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-blur.webp" width="100%" alt="A lake photo whose focus moves from the foreground reeds to the far mountains and back"><br><b>Rack focus</b> (<code>effects.blur</code>, depth-aware lens blur)<br><i>"Add a focus pull from the foreground to the background."</i></td>
174
+ </tr>
175
+ <tr>
176
+ <td valign="top"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-frame.webp" width="100%" alt="A photo inside an inset frame whose nearest subject steps out over the frame edge with a drop shadow"><br><b>Out of frame</b> (<code>effects.frame</code>)<br><i>"Put the photo in a frame and make the subject step out of it."</i></td>
177
+ <td valign="top"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-plateab.webp" width="100%" alt="The same wide camera move on a street photo twice: on the left smears around people and roofs, on the right a clean rebuilt background"><br><b>Background plate</b> for bigger moves (<code>assets plate</code>): left without, right with<br><i>"Prepare the photo for bigger camera moves."</i></td>
178
+ </tr>
179
+ <tr>
180
+ <td valign="top"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-dolly.webp" width="100%" alt="A camera pushing into a street photo and pulling back, in a seamless loop"><br><b>Dolly</b> (<code>motion.auto</code>: dolly, pan, rise, vertigo)<br><i>"Do a dolly-in on the photo."</i></td>
181
+ <td valign="top"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-vertigo.webp" width="100%" alt="A dolly zoom on a street photo: the subject keeps its size while the background stretches"><br><b>Vertigo</b> (dolly zoom)<br><i>"Do a vertigo effect on the photo."</i></td>
182
+ </tr>
183
+ <tr>
184
+ <td valign="top"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-story.webp" width="100%" alt="A scroll story: the camera walks down a street photo, which dissolves into a lake photo with a THEN, THE LAKE title, then a vertigo on the lake"><br><b>Scroll story</b> (the <code>photo-scroll-story</code> template, filmed with simulated scrolling)<br><i>"Make a scroll story: we walk down the street, then arrive at the lake."</i></td>
185
+ <td valign="top" align="center"><img src="https://raw.githubusercontent.com/fleox/agent3d/main/.github/assets/photo3d-social.webp" width="200" alt="A vertical 9:16 video of a vertigo effect on a street photo"><br><b>Social video</b> (<code>render --video reel.mp4 --preset vertical</code>: 1080×1920, one seamless loop)<br><i>"Make me a vertical Instagram video with a vertigo effect on this photo."</i></td>
186
+ </tr>
187
+ </table>
188
+
160
189
  **Look**
161
190
  - **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
162
191
  - **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
@@ -171,7 +200,7 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
171
200
  - 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
201
  - A procedural **character** generator (humanoid, astronaut, robot, blob, cat, fox, bird, ghost) with animations such as wave, run, jump, dance and celebrate
173
202
  - 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; a photo-only hero exports with a 14 KB player instead of three.js
203
+ - **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
204
  - 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
205
 
177
206
  **Games**
@@ -194,7 +223,7 @@ Step by step: [docs/getting-started.md](https://github.com/fleox/agent3d/blob/ma
194
223
  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
224
 
196
225
  ```bash
197
- npx -y @fleox/agent3d@0.4.0 studio --project bakery
226
+ npx -y @fleox/agent3d@0.5.2 studio --project bakery
198
227
  ```
199
228
 
200
229
  <p align="center">
@@ -242,12 +271,12 @@ Move / rotate / scale gizmos, an editor camera and the scene camera with framing
242
271
  <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
272
  </p>
244
273
 
245
- 32 starter projects, each a complete scene that passes `check --render`: 8 banners, 13 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.
274
+ 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
275
 
247
276
  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
277
 
249
278
  <details>
250
- <summary><b>All 32 templates</b></summary>
279
+ <summary><b>All 34 templates</b></summary>
251
280
 
252
281
  | Preview | Template | Kind | What it is |
253
282
  |---|---|---|---|
@@ -264,6 +293,7 @@ To see them all live in a browser, build the gallery from a clone (`npm install
264
293
  | <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
294
  | <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
295
  | <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). |
296
+ | <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
297
  | <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
298
  | <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
299
  | <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 +302,7 @@ To see them all live in a browser, build the gallery from a clone (`npm install
272
302
  | <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
303
  | <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
304
  | <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. |
305
+ | <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
306
  | <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
307
  | <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
308
  | <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 +354,7 @@ Pick Spline when a designer wants a hosted visual tool, hand-written Three.js wh
323
354
 
324
355
  ## The `agent3d` CLI
325
356
 
326
- The same engine the agents use, by hand: `npx -y @fleox/agent3d@0.4.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`.
357
+ The same engine the agents use, by hand: `npx -y @fleox/agent3d@0.5.2 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
358
 
328
359
  <p align="center">
329
360
  <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 +392,7 @@ Full reference: [docs/cli.md](https://github.com/fleox/agent3d/blob/main/docs/cl
361
392
  ## MCP server
362
393
 
363
394
  ```bash
364
- claude mcp add agent3d -- npx -y @fleox/agent3d@0.4.0 mcp --project ~/agent3d/my-banner
395
+ claude mcp add agent3d -- npx -y @fleox/agent3d@0.5.2 mcp --project ~/agent3d/my-banner
365
396
  ```
366
397
 
367
398
  <p align="center">
package/changelog.json CHANGED
@@ -1,5 +1,29 @@
1
1
  {
2
2
  "versions": [
3
+ {
4
+ "version": "0.5.2",
5
+ "date": "2026-11-26",
6
+ "breaking": false,
7
+ "changes": [
8
+ "README: 12 example clips of what one photo can do beyond parallax (3D inside the photo, fog, pointer light, reveal, timeline effects, rack focus, out of frame, background plate, dolly, vertigo, scroll story, vertical social video), each with the request to give your agent."
9
+ ],
10
+ "actions": []
11
+ },
12
+ {
13
+ "version": "0.5.0",
14
+ "date": "2026-11-26",
15
+ "breaking": false,
16
+ "changes": [
17
+ "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`.",
18
+ "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>`).",
19
+ "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).",
20
+ "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.",
21
+ "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).",
22
+ "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`).",
23
+ "The photo-only player (`agent3d-photo.js`) supports the effects, plates and moves; it is now about 19 KB gzipped."
24
+ ],
25
+ "actions": []
26
+ },
3
27
  {
4
28
  "version": "0.4.0",
5
29
  "date": "2026-11-26",