@blackbelt-technology/pi-dashboard-deck3d 0.9.0 → 0.11.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/.pi/skills/deck3d/SKILL.agent.md +78 -0
- package/.pi/skills/deck3d/SKILL.md +68 -0
- package/.pi/skills/deck3d/reference/effects.md +185 -2
- package/.pi/skills/deck3d/reference/ir-fields.md +26 -3
- package/.pi/skills/deck3d-from-pptx/SKILL.md +134 -0
- package/.pi/skills/deck3d-from-pptx/reference/steps.md +72 -0
- package/README.md +30 -2
- package/assets/preview/stub-chrome.png +0 -0
- package/assets/preview/stub-icon.json +59 -0
- package/assets/preview/stub-layout.json +195 -0
- package/assets/preview/stub-outline.json +48 -0
- package/dist/cli.js +11780 -5934
- package/dist/runtime.js +5916 -4007
- package/fixtures/business-2031/assets/stub-chrome.png +0 -0
- package/fixtures/business-2031/assets/stub-icon.json +59 -0
- package/fixtures/business-2031/assets/stub-layout.json +195 -0
- package/fixtures/business-2031/assets/stub-outline.json +48 -0
- package/fixtures/business-2031/build-overrides.mjs +58 -13
- package/fixtures/business-2031/deck.agent.md +60 -0
- package/fixtures/business-2031/deck.json +133 -8
- package/fixtures/business-2031/overrides.json +133 -8
- package/package.json +8 -4
- package/scripts/gen-stub-assets.ts +31 -0
- package/src/art/cutout.ts +97 -0
- package/src/art/decode.ts +169 -0
- package/src/art/icon.ts +380 -0
- package/src/art/png.ts +232 -0
- package/src/art/trace.ts +288 -0
- package/src/check/rules.ts +13 -8
- package/src/cli.ts +313 -51
- package/src/compare/index.ts +131 -0
- package/src/compare/ssim.ts +91 -0
- package/src/fx/art-geometry.ts +137 -0
- package/src/fx/art3d.meta.json +30 -0
- package/src/fx/art3d.ts +131 -0
- package/src/fx/bank.meta.json +26 -0
- package/src/fx/bank.ts +8 -0
- package/src/fx/compose.ts +5 -4
- package/src/fx/crane.meta.json +26 -0
- package/src/fx/crane.ts +8 -0
- package/src/fx/dolly.ts +5 -1
- package/src/fx/fade.ts +5 -1
- package/src/fx/flythrough.ts +5 -1
- package/src/fx/frame-chrome.meta.json +17 -0
- package/src/fx/frame-chrome.ts +134 -0
- package/src/fx/haze.meta.json +19 -0
- package/src/fx/haze.ts +91 -0
- package/src/fx/icon3d.meta.json +21 -0
- package/src/fx/icon3d.ts +167 -0
- package/src/fx/index.ts +96 -66
- package/src/fx/iris.ts +5 -1
- package/src/fx/meta.schema.json +10 -2
- package/src/fx/path.meta.json +25 -0
- package/src/fx/path.ts +8 -0
- package/src/fx/persistent.ts +11 -0
- package/src/fx/revolve.meta.json +26 -0
- package/src/fx/revolve.ts +8 -0
- package/src/fx/slide-layer.meta.json +26 -0
- package/src/fx/slide-layer.ts +557 -0
- package/src/fx/slide-space.ts +142 -0
- package/src/fx/stub-assets.ts +117 -0
- package/src/fx/swing.meta.json +26 -0
- package/src/fx/swing.ts +8 -0
- package/src/fx/types.ts +63 -2
- package/src/ir/merge.ts +5 -2
- package/src/ir/schema.json +140 -3
- package/src/ir/types.ts +54 -0
- package/src/ir/validate.ts +91 -3
- package/src/parse/harvest/index.ts +4 -1
- package/src/parse/markdown.ts +38 -7
- package/src/pptx/baseline.ts +183 -0
- package/src/pptx/extract.ts +161 -0
- package/src/pptx/fallback.ts +70 -0
- package/src/pptx/import.ts +256 -0
- package/src/pptx/master.ts +135 -0
- package/src/pptx/media.ts +81 -0
- package/src/pptx/package.ts +109 -0
- package/src/pptx/ref.ts +100 -0
- package/src/pptx/shapes.ts +276 -0
- package/src/pptx/stage.ts +82 -0
- package/src/pptx/text.ts +202 -0
- package/src/pptx/theme.ts +194 -0
- package/src/pptx/types.ts +159 -0
- package/src/pptx/xfrm.ts +93 -0
- package/src/pptx/xml.ts +106 -0
- package/src/pptx/zip.ts +239 -0
- package/src/render/assets.ts +57 -0
- package/src/render/build.ts +75 -0
- package/src/render/index.ts +7 -2
- package/src/render/template.html +1 -1
- package/src/runtime/assets.ts +75 -0
- package/src/runtime/fade.ts +110 -0
- package/src/runtime/hud.ts +37 -9
- package/src/runtime/index.ts +431 -67
- package/src/runtime/post.ts +11 -5
- package/src/runtime/scene.ts +25 -2
- package/src/runtime/transition.ts +222 -0
- package/src/runtime/types.ts +13 -2
- package/src/serve/index.ts +199 -16
- package/src/util/cleanup.ts +13 -0
- package/src/util/confine.ts +15 -0
- package/src/variants/pick.ts +282 -0
- package/src/variants/render.ts +179 -0
- package/src/variants/schema.json +48 -0
- package/src/variants/style.ts +318 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# SKILL.md — deck3d index
|
|
2
|
+
|
|
3
|
+
Pull-only condensed map. Source: packages/deck3d/.pi/skills/deck3d/SKILL.md. Markdown outline → one self-contained offline `deck.html` (3D titles, harvested mermaid, backgrounds, optional glTF prop). Tune via `deck.json` `overrides` only; never edit HTML.
|
|
4
|
+
|
|
5
|
+
Triggers: "make a 3D deck from this outline", "build a presentation from these notes", "deck3d this markdown", "turn this talk into a 3D deck". `.pptx` input → `deck3d-from-pptx`.
|
|
6
|
+
|
|
7
|
+
## Markdown grammar
|
|
8
|
+
- `---` front-matter: `mode`, `palette`, `material`, `quality`, `transition`.
|
|
9
|
+
- `# Title` = slide. Zero headings → slide id `slide`.
|
|
10
|
+
- First paragraph before bullets = subtitle. `- bullet` = body bullet.
|
|
11
|
+
- ```mermaid `flowchart` / `sequenceDiagram` → harvested diagram (headless chromium). Other types → warn, no diagram.
|
|
12
|
+
- `<!-- deck3d: {...} -->` inline override; wins over `deck.json`; warns on clobber. Never subtitle/bullet.
|
|
13
|
+
- Pin id: `# Final {#outro}`.
|
|
14
|
+
|
|
15
|
+
## Tune loop
|
|
16
|
+
- Interactive: `deck3d serve talk.md [--check]` (watch, rebuild, reload, configurator).
|
|
17
|
+
- Headless:
|
|
18
|
+
1. `deck3d parse talk.md` → `talk.json` (IR + empty overrides).
|
|
19
|
+
2. `deck3d validate talk.json` — schema, derived-edit, orphan/prop warnings.
|
|
20
|
+
3. `deck3d build talk.md -o talk.html` — runs check; prints `style: <n>/<N> slides styled`.
|
|
21
|
+
4. Style (mandatory): `deck3d check talk.html --style` → `style-defaults` per slide:
|
|
22
|
+
- corpus effect: `deck3d fx list --topic geo`, `--kind background`. Stylistic set (`clipped-solids`, `extruded-shapes`, `volume-cloud`, `curve-flow`) never auto-picked.
|
|
23
|
+
- per-deck: `deck3d fx scaffold <name> --for <slideId>`.
|
|
24
|
+
- content slide w/o mermaid: `overrides.slides["<id>"].diagram.kind` + `data`.
|
|
25
|
+
- props: `deck3d props search <kw> --role hero|illustration`; `--role ambient`.
|
|
26
|
+
- solid-block titles → `titleEdge: "contrast"`.
|
|
27
|
+
- horizon → `overrides.deck.floor: "water"`.
|
|
28
|
+
- `overrides.deck.reflectBackdrop: false`; `floorMatte` (0 mirror, ~0.35 concrete, ~0.85 stone); `floorReflectivity` (0–1, default 1). Deck-scope only.
|
|
29
|
+
- `post` card: `deck3d fx list --kind post`; `{ "id": "outline", "params": { "parts": "diagram" } }` (also `selective-bloom`, `god-rays`, `depth-of-field`, `pixelate`, `ascii`). 1–2 per slide; fixed stack order; `check` flags `conflicts`.
|
|
30
|
+
5. Fix only suggested key (e.g. `overrides.slides["arch"].diagram.scale`); re-run step 3.
|
|
31
|
+
6. `deck3d snapshot talk.html --slide 5 -o s5.png`.
|
|
32
|
+
7. Repeat until check clean and style line covers designed slides.
|
|
33
|
+
- Overrides grammar: `deck`, `effects[]`, `props[]`, `slides{<id>: mode, palette, material, scene, quality, diagram{scale,offset}, camera{distance}, labels{size}, check{ignore}, effects}`, `nodes{<slide>/<node>}`, `edges{<slide>/<edge>}`.
|
|
34
|
+
- Deep merge; arrays replace; `diagram.data` replaces whole. Field list: `reference/ir-fields.md`.
|
|
35
|
+
- Configurator `⚙` (`C` key): Effects block; **Apply to deck.json** (serve); **Save overrides.json**; **Export** (unserved).
|
|
36
|
+
- Merge: `deck3d overrides apply talk.json overrides.json` (refuses on validation error). Markdown inline overrides beat it.
|
|
37
|
+
|
|
38
|
+
## Styling with effects
|
|
39
|
+
- `deck3d fx list [--kind k] [--tag t] [--json]`; `reference/effects.md`.
|
|
40
|
+
- `parse` defaults: title→`swarm`, flowchart→`tokens`, sequence→`rings`, security→`glyph-rain`, data→`data-columns`; topic routing (`ai agents geo trust security compute data money work timeline sales process`). `autoStyle: false` = v1 fallback.
|
|
41
|
+
- Replace: `overrides.slides["<id>"].effects = [{ id, params? }]`.
|
|
42
|
+
- Video: `video-screen` `{ "src": "video/demo.mp4", "width", "x", "y", "tilt" }`. Clip must be same-origin.
|
|
43
|
+
- `deck3d serve` serves beside-deck media.
|
|
44
|
+
- `deck3d render deck.json -o deck.html --embed-video` → data: URLs (+~33%).
|
|
45
|
+
- `file://` + `video/` folder does NOT work.
|
|
46
|
+
- Playback freezes during transitions.
|
|
47
|
+
- Local effects: `deck3d fx scaffold neural-mesh --for ai` → `fx/neural-mesh.{js,meta.json}`; `deck3d fx preview local:neural-mesh --palette ember -o p.png`; `deck3d fx hash neural-mesh` (re-pin); paste `{ id: "local:<name>", sha256 }`. `render` refuses stale hash.
|
|
48
|
+
- Sandbox: `Math.random` = seeded per-slide; `window`, `document`, `fetch`, `setTimeout`, `Date`, `Promise`, `eval` undefined. No `import`; one default export; 64 KiB cap. Throw → `local-fx-error`; network → `local-fx-network`. Promote: `deck3d fx promote <name> --source <url> --licence <spdx>`.
|
|
49
|
+
- Conflicts fail `render`; mode-incompatible skipped; cost budget `low` 6 / `medium` 12 / `high` 20.
|
|
50
|
+
|
|
51
|
+
## Deck assets, layer effects, pptx
|
|
52
|
+
- `overrides.assets[]` `{ id, path, sha256, mime }`; embedded as data: URIs; path inside deck dir; stale sha256 fails. Read via `ctx.assets.get(id)`.
|
|
53
|
+
- Card kind `layer`: `replacesContent` (`slide-layer`) drops native title/card/bullets/diagram; `persistent` (`frame-chrome`) deck-scope only, driven by `transition({from,to,p})`.
|
|
54
|
+
- Built-ins: `slide-layer`, `frame-chrome`, `art3d`, `icon3d`, `haze`.
|
|
55
|
+
- Commands: `deck3d pptx …`, `deck3d art …`, `deck3d variants …`.
|
|
56
|
+
- `style.json` beside `deck.json`: `steps[].variants[]`, `picked`, `note`, `round`. `serve` previews `?variant=<step>:<name>` (`V` cycles).
|
|
57
|
+
|
|
58
|
+
## Props
|
|
59
|
+
- `deck3d props search <keywords>` → vendored first, then Poly Pizza. Agent picks by relevance/style.
|
|
60
|
+
1. One pack per deck; `restyle: "palette"`.
|
|
61
|
+
2. `deck3d props fetch <source> <id>` → entry with `sha256`; cached `.deck3d/props/`.
|
|
62
|
+
3. Add to `overrides.props` (roles `hero`, `illustration`, `ambient`, `node:<id>`).
|
|
63
|
+
4. `props search <kw> --role ambient` → ready ambient entry.
|
|
64
|
+
5. None fit: `deck3d props generate --prompt "<text>" --name <n>` (or `--from-image`).
|
|
65
|
+
- CC0 → no credits; CC-BY or non-CC0/non-`generated` → last `credits` slide. Never fetch unnamed licence.
|
|
66
|
+
|
|
67
|
+
## Forbidden edits
|
|
68
|
+
- Never edit `deck.html` (regenerated).
|
|
69
|
+
- Never edit derived fields (`slides[]` and below); `validate` warns `edited outside overrides`.
|
|
70
|
+
|
|
71
|
+
## Pitfalls
|
|
72
|
+
- `parse` with mermaid needs chromium (`npx playwright install chromium`). `render`/`validate` need none.
|
|
73
|
+
- typeface.json glyph corruption `ő ű Ő Ű`; deck3d uses Poppins TTF via opentype.js; don't swap.
|
|
74
|
+
- Extruded small text blooms; diagram labels flat. Tune `labels.size`.
|
|
75
|
+
- Placement: `defaults.rail` (`line` `orbit` `tunnel` `helix` `grid`), `defaults.spacing`, `layout` (`split` `split-reverse`), `cardOffset`.
|
|
76
|
+
- Transitions: `defaults.transition`, per-slide `transition`, `defaults.transitionCycle`; `durationSec`, `transitionAmount` (0–2). Motions (`runtime/transition.ts` `makeMotion`): `dolly` (default), `swing`, `revolve`, `crane`, `bank` (≤8° roll), `flythrough`, `fade`, `iris`, `cut`, `path`.
|
|
77
|
+
- `cameraPath` (needs `transition: "path"`): 1–8 keys, `t` strictly increasing in (0,1); `offset=[right, up, forward]` fraction of from→to distance; `look` 0 leave–1 arrive; `roll` ±45°; `fov` 20–90°. Back nav = reversed mirror.
|
|
78
|
+
- `check: clean` ≠ designed. Read `style:` line; run `check --style`.
|
|
@@ -12,6 +12,8 @@ by writing `overrides` in `deck.json`**, never by editing the HTML.
|
|
|
12
12
|
|
|
13
13
|
## When to use
|
|
14
14
|
|
|
15
|
+
- The user has an existing **`.pptx`**: follow [`deck3d-from-pptx`](../deck3d-from-pptx/SKILL.md)
|
|
16
|
+
(import, reference renders, then a variant-and-ask step per styling decision).
|
|
15
17
|
- The user has a Markdown outline (headings + bullets + ```mermaid blocks) and
|
|
16
18
|
wants a presentation they can open offline in a browser.
|
|
17
19
|
- You need to tune placement, legibility, mode, effects or props of an existing
|
|
@@ -26,6 +28,8 @@ by writing `overrides` in `deck.json`**, never by editing the HTML.
|
|
|
26
28
|
- A fenced ```mermaid `flowchart` / `sequenceDiagram` block becomes the slide's
|
|
27
29
|
diagram (harvested in headless chromium). Any other diagram type ⇒ warn + no diagram.
|
|
28
30
|
- `<!-- deck3d: {...} -->` inline overrides win over `deck.json` and warn on clobber.
|
|
31
|
+
The comment may span several lines or be written as a bullet (`- <!-- deck3d: {...} -->`);
|
|
32
|
+
in every form it is read as an override and is **never** the subtitle or a bullet.
|
|
29
33
|
- Pin a slide id with `# Final {#outro}` so renames never orphan tuning.
|
|
30
34
|
|
|
31
35
|
## The tune loop
|
|
@@ -166,6 +170,27 @@ attempts shows up as `local-fx-network`. Promote a good one with
|
|
|
166
170
|
- Conflicts fail `render`; mode-incompatible effects are skipped with a warning;
|
|
167
171
|
the summed `cost` warns over the quality budget (`low` 6 / `medium` 12 / `high` 20).
|
|
168
172
|
|
|
173
|
+
## Deck assets, layer effects and the pptx pipeline
|
|
174
|
+
|
|
175
|
+
- **`overrides.assets[]`** — `{ id, path, sha256, mime }` pins files (PNG/JPEG/GIF/WebP/SVG,
|
|
176
|
+
JSON, text, `font/ttf|otf`) that `render` embeds once as `data:` URIs, so the HTML stays
|
|
177
|
+
one offline file. `path` must stay inside the deck directory; a stale `sha256` fails
|
|
178
|
+
`validate`/`render`. Effects read them with `ctx.assets.get(id)` (decoded bitmap, parsed
|
|
179
|
+
JSON, text, or a font family name) — also **local effects**, whose 64 KiB code cap is
|
|
180
|
+
unchanged. Font assets use ids `font-<name>`. Budget: warn above 25 MB, fail above 200 MB.
|
|
181
|
+
- **Card kind `layer`** draws slide *content* above the backdrop pass. `replacesContent`
|
|
182
|
+
cards (`slide-layer`) drop the slide's native title/card/bullets/diagram; **`persistent`**
|
|
183
|
+
cards (`frame-chrome`) are **deck-scope only** (`overrides.effects`), created once outside
|
|
184
|
+
every slide group, driven by `transition({from,to,p})`.
|
|
185
|
+
- **Built-ins:** `slide-layer`, `frame-chrome`, `art3d`, `icon3d`, `haze` (see
|
|
186
|
+
[`reference/effects.md`](reference/effects.md)); `deck3d fx preview <id>` renders each
|
|
187
|
+
against a packaged stub bundle.
|
|
188
|
+
- **Commands:** `deck3d pptx import|art trace|art icon|art cutout|variants render|pick|note|replay|compare`
|
|
189
|
+
— `deck3d --help` lists them; the end-to-end procedure is `deck3d-from-pptx`.
|
|
190
|
+
- **`style.json`** beside `deck.json` records the picks (`steps[].variants[]`, `picked`,
|
|
191
|
+
`note`, `round`); `validate` checks it. `serve` previews a candidate at
|
|
192
|
+
`?variant=<step>:<name>` (`V` cycles) without writing anything.
|
|
193
|
+
|
|
169
194
|
## Props (content illustrations)
|
|
170
195
|
|
|
171
196
|
`deck3d props search <keywords>` → candidate table (vendored first, then Poly Pizza).
|
|
@@ -203,6 +228,49 @@ last `credits` slide at render. Never fetch a model whose licence you cannot nam
|
|
|
203
228
|
slides in space, `defaults.spacing` sets the gap, `layout` (`split`
|
|
204
229
|
`split-reverse`) composes one slide, `cardOffset` nudges the card. Every rail
|
|
205
230
|
frames a slide identically, so a rail switch never needs a per-slide re-tune.
|
|
231
|
+
- Transitions = how the camera ENTERS a slide. Set `defaults.transition`, per
|
|
232
|
+
slide `overrides.slides["<key>"].transition`, or deck-level
|
|
233
|
+
`defaults.transitionCycle: ["dolly","crane",...]` (slides without their own
|
|
234
|
+
transition take `cycle[index % length]`). `durationSec` and
|
|
235
|
+
`transitionAmount` (0–2, scales offsets/roll/lens; 0 ≈ dolly) per deck/slide.
|
|
236
|
+
Motions live in `runtime/transition.ts` (`makeMotion`), validated as an enum:
|
|
237
|
+
| id | move |
|
|
238
|
+
|---|---|
|
|
239
|
+
| `dolly` (default) | straight eased move to the anchor |
|
|
240
|
+
| `swing` | dolly + sideways arc away from the mid-point |
|
|
241
|
+
| `revolve` | swings wide to travel-right, locks on early, arcs in around the slide |
|
|
242
|
+
| `crane` | rises over the gap (~0.3 × travel length), descends onto the slide |
|
|
243
|
+
| `bank` | dolly with roll into the move and back out (≤ 8°) |
|
|
244
|
+
| `flythrough` | low pass through the gap, slight bank, wider lens |
|
|
245
|
+
| `fade` | screen covers with the palette bg, camera switches, uncovers |
|
|
246
|
+
| `iris` | circular mask closes to centre, camera switches, reopens |
|
|
247
|
+
| `cut` | instant snap; old slide's local fx disposed at once |
|
|
248
|
+
| `path` | author keyframes from the slide's `cameraPath` |
|
|
249
|
+
`cameraPath` (needs `transition: "path"`, else validate fails):
|
|
250
|
+
```json
|
|
251
|
+
"ertek": { "transition": "path", "durationSec": 2.2, "cameraPath": { "ease": "inOut", "keys": [
|
|
252
|
+
{ "t": 0.3, "offset": [0.18, 0.22, 0], "look": 0.25, "roll": 6 },
|
|
253
|
+
{ "t": 0.68, "offset": [-0.08, 0.1, 0.04], "look": 0.9, "fov": 48 } ] } }
|
|
254
|
+
```
|
|
255
|
+
Keys (1–8, `t` strictly increasing in (0,1)) sit in the TRAVEL FRAME:
|
|
256
|
+
`offset = [right, up, forward]` as fractions of the from→to camera distance,
|
|
257
|
+
so a path reads the same on every rail/spacing; start and end are implied and
|
|
258
|
+
pinned (always lands exactly). `look` 0 = leaving slide, 1 = arriving; `roll`
|
|
259
|
+
±45°; `fov` 20–90°. Back navigation plays the LEAVING slide's move reversed
|
|
260
|
+
(mirror image). Both slides stay un-culled for the whole move. Camera-pinned
|
|
261
|
+
local fx (overlays parented via `onBeforeRender`) tilt with `roll` — keep
|
|
262
|
+
roll small on decks with HUD-like overlays. `rail` stays deck-wide.
|
|
263
|
+
Every flying move cross-fades: the leaving slide's backdrop (local fx +
|
|
264
|
+
background) fades out over 5–60 % of the move, the arriving one fades in over
|
|
265
|
+
10–70 % (whole group when it was culled). Local fx that set their own
|
|
266
|
+
opacity still compose (fader re-bases); custom shaders without an
|
|
267
|
+
`opacity` uniform only pop at the ends — expose `uniforms.opacity`.
|
|
268
|
+
- During a fly both slides tick, the arriving slide's local fx are re-created
|
|
269
|
+
at the START of the fly, and `cullNeighbours()` hides whole slide groups by
|
|
270
|
+
distance — a camera-pinned overlay that must survive the fly has to reparent
|
|
271
|
+
itself into the scene (keep shared state in `THREE.Cache.files`) — or, for deck-wide
|
|
272
|
+
camera-pinned art, use a **persistent** card (`frame-chrome`), which the runtime creates
|
|
273
|
+
once outside every slide group and drives with `transition({from,to,p})`.
|
|
206
274
|
- The mermaid engine is pinned exactly; a bump is a deliberate change and the
|
|
207
275
|
harvest fixtures will fail if the rendered id scheme moves.
|
|
208
276
|
- Headless/background tabs stall `requestAnimationFrame`; the loop falls back to
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# deck3d effect catalogue
|
|
2
2
|
|
|
3
|
-
GENERATED from the effect cards (`fx/<id>.meta.json`). Never hand-edit. Cards hash: `
|
|
3
|
+
GENERATED from the effect cards (`fx/<id>.meta.json`). Never hand-edit. Cards hash: `3bb064f608378936b2ea14b9f41810555d2cb7d0c932b78a2d5bdc291777f961`.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
91 effects.
|
|
6
6
|
|
|
7
7
|
## accent-cycle
|
|
8
8
|
|
|
@@ -34,6 +34,37 @@ GENERATED from the effect cards (`fx/<id>.meta.json`). Never hand-edit. Cards ha
|
|
|
34
34
|
| wave | number | 0..1.5 | 0.55 |
|
|
35
35
|
| waveSpeed | number | 0..3 | 0.9 |
|
|
36
36
|
|
|
37
|
+
## art3d
|
|
38
|
+
|
|
39
|
+
- kind: `layer`
|
|
40
|
+
- cost: 1
|
|
41
|
+
- modes: `both`
|
|
42
|
+
- tags: mood=[bold, branded] content=[logo, wordmark, traced-art]
|
|
43
|
+
- source: https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/deck3d/src/fx/art3d.ts
|
|
44
|
+
- licence: MIT
|
|
45
|
+
- preview: `fx/previews/art3d.png`
|
|
46
|
+
|
|
47
|
+
| Param | Type | Range | Default |
|
|
48
|
+
|---|---|---|---|
|
|
49
|
+
| outline | string | — | |
|
|
50
|
+
| item | string | — | |
|
|
51
|
+
| layout | string | — | pptx-layout |
|
|
52
|
+
| slide | string | — | |
|
|
53
|
+
| depth | number | 0.01..2 | 0.25 |
|
|
54
|
+
| bevel | number | 0..0.5 | 0.03 |
|
|
55
|
+
| scale | number | 0.1..20 | 4 |
|
|
56
|
+
| x | number | -12..12 | 0 |
|
|
57
|
+
| y | number | -8..8 | 0 |
|
|
58
|
+
| z | number | -4..6 | 0.4 |
|
|
59
|
+
| depthOffset | number | -2..3 | 0.4 |
|
|
60
|
+
| sway | number | 0..1 | 0 |
|
|
61
|
+
| speed | number | 0..4 | 0.6 |
|
|
62
|
+
| sweep | boolean | — | false |
|
|
63
|
+
| metalness | number | 0..1 | 0.25 |
|
|
64
|
+
| roughness | number | 0..1 | 0.4 |
|
|
65
|
+
| gradient | array | — | |
|
|
66
|
+
| colors | object | — | [object Object] |
|
|
67
|
+
|
|
37
68
|
## ascii
|
|
38
69
|
|
|
39
70
|
- kind: `post`
|
|
@@ -63,6 +94,20 @@ GENERATED from the effect cards (`fx/<id>.meta.json`). Never hand-edit. Cards ha
|
|
|
63
94
|
|---|---|---|---|
|
|
64
95
|
| speed | number | 0..2 | 0.5 |
|
|
65
96
|
|
|
97
|
+
## bank
|
|
98
|
+
|
|
99
|
+
- kind: `transition`
|
|
100
|
+
- cost: 2
|
|
101
|
+
- modes: `both`
|
|
102
|
+
- tags: mood=[cinematic, energetic] content=[motion]
|
|
103
|
+
- source: https://threejs.org/examples/
|
|
104
|
+
- licence: MIT
|
|
105
|
+
- preview: `fx/previews/bank.png`
|
|
106
|
+
|
|
107
|
+
| Param | Type | Range | Default |
|
|
108
|
+
|---|---|---|---|
|
|
109
|
+
| intensity | number | 0..2 | 1 |
|
|
110
|
+
|
|
66
111
|
## billboards
|
|
67
112
|
|
|
68
113
|
- kind: `background`
|
|
@@ -201,6 +246,20 @@ GENERATED from the effect cards (`fx/<id>.meta.json`). Never hand-edit. Cards ha
|
|
|
201
246
|
| linkDistance | number | 1..8 | 3.2 |
|
|
202
247
|
| nodeShape | string | — | point |
|
|
203
248
|
|
|
249
|
+
## crane
|
|
250
|
+
|
|
251
|
+
- kind: `transition`
|
|
252
|
+
- cost: 2
|
|
253
|
+
- modes: `both`
|
|
254
|
+
- tags: mood=[cinematic, calm] content=[motion]
|
|
255
|
+
- source: https://threejs.org/examples/
|
|
256
|
+
- licence: MIT
|
|
257
|
+
- preview: `fx/previews/crane.png`
|
|
258
|
+
|
|
259
|
+
| Param | Type | Range | Default |
|
|
260
|
+
|---|---|---|---|
|
|
261
|
+
| intensity | number | 0..2 | 1 |
|
|
262
|
+
|
|
204
263
|
## curve-flow
|
|
205
264
|
|
|
206
265
|
- kind: `background`
|
|
@@ -425,6 +484,23 @@ GENERATED from the effect cards (`fx/<id>.meta.json`). Never hand-edit. Cards ha
|
|
|
425
484
|
|---|---|---|---|
|
|
426
485
|
| intensity | number | 0..2 | 1 |
|
|
427
486
|
|
|
487
|
+
## frame-chrome
|
|
488
|
+
|
|
489
|
+
- kind: `layer`
|
|
490
|
+
- cost: 1
|
|
491
|
+
- modes: `both`
|
|
492
|
+
- tags: mood=[branded, framed] content=[master, corner-art, persistent]
|
|
493
|
+
- source: https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/deck3d/src/fx/frame-chrome.ts
|
|
494
|
+
- licence: MIT
|
|
495
|
+
- preview: `fx/previews/frame-chrome.png`
|
|
496
|
+
|
|
497
|
+
| Param | Type | Range | Default |
|
|
498
|
+
|---|---|---|---|
|
|
499
|
+
| opacity | number | 0..1 | 1 |
|
|
500
|
+
| scale | number | 0.2..3 | 1 |
|
|
501
|
+
| layers | array | — | |
|
|
502
|
+
| suppress | array | — | |
|
|
503
|
+
|
|
428
504
|
## geo-fragments
|
|
429
505
|
|
|
430
506
|
- kind: `background`
|
|
@@ -529,6 +605,26 @@ GENERATED from the effect cards (`fx/<id>.meta.json`). Never hand-edit. Cards ha
|
|
|
529
605
|
|---|---|---|---|
|
|
530
606
|
| spacing | number | 0.2..4 | 1 |
|
|
531
607
|
|
|
608
|
+
## haze
|
|
609
|
+
|
|
610
|
+
- kind: `background`
|
|
611
|
+
- cost: 1
|
|
612
|
+
- modes: `both`
|
|
613
|
+
- tags: mood=[soft, atmospheric] content=[depth, backdrop-fade]
|
|
614
|
+
- source: https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/deck3d/src/fx/haze.ts
|
|
615
|
+
- licence: MIT
|
|
616
|
+
- preview: `fx/previews/haze.png`
|
|
617
|
+
|
|
618
|
+
| Param | Type | Range | Default |
|
|
619
|
+
|---|---|---|---|
|
|
620
|
+
| layers | number | 1..8 | 4 |
|
|
621
|
+
| near | number | 1..30 | 6 |
|
|
622
|
+
| far | number | 2..60 | 26 |
|
|
623
|
+
| density | number | 0..1 | 0.5 |
|
|
624
|
+
| drift | number | 0..2 | 0.15 |
|
|
625
|
+
| floor | number | -10..4 | -2.6 |
|
|
626
|
+
| color | string | — | |
|
|
627
|
+
|
|
532
628
|
## hex-grid
|
|
533
629
|
|
|
534
630
|
- kind: `background`
|
|
@@ -572,6 +668,28 @@ GENERATED from the effect cards (`fx/<id>.meta.json`). Never hand-edit. Cards ha
|
|
|
572
668
|
| density | number | 0.2..3 | 1 |
|
|
573
669
|
| speed | number | 0..3 | 1 |
|
|
574
670
|
|
|
671
|
+
## icon3d
|
|
672
|
+
|
|
673
|
+
- kind: `layer`
|
|
674
|
+
- cost: 1
|
|
675
|
+
- modes: `both`
|
|
676
|
+
- tags: mood=[playful, tactile] content=[icon, pictogram, traced-art]
|
|
677
|
+
- source: https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/deck3d/src/fx/icon3d.ts
|
|
678
|
+
- licence: MIT
|
|
679
|
+
- preview: `fx/previews/icon3d.png`
|
|
680
|
+
|
|
681
|
+
| Param | Type | Range | Default |
|
|
682
|
+
|---|---|---|---|
|
|
683
|
+
| asset | string | — | |
|
|
684
|
+
| item | string | — | |
|
|
685
|
+
| layout | string | — | pptx-layout |
|
|
686
|
+
| slide | string | — | |
|
|
687
|
+
| card | boolean | — | false |
|
|
688
|
+
| color | string | — | |
|
|
689
|
+
| rim | string | — | |
|
|
690
|
+
| depth | number | -1..3 | 0.6 |
|
|
691
|
+
| sway | number | 0..1 | 0.12 |
|
|
692
|
+
|
|
575
693
|
## iridescent
|
|
576
694
|
|
|
577
695
|
- kind: `material`
|
|
@@ -780,6 +898,20 @@ GENERATED from the effect cards (`fx/<id>.meta.json`). Never hand-edit. Cards ha
|
|
|
780
898
|
|---|---|---|---|
|
|
781
899
|
| intensity | number | 0..2 | 1 |
|
|
782
900
|
|
|
901
|
+
## path
|
|
902
|
+
|
|
903
|
+
- kind: `transition`
|
|
904
|
+
- cost: 2
|
|
905
|
+
- modes: `both`
|
|
906
|
+
- tags: mood=[cinematic] content=[motion]
|
|
907
|
+
- source: https://threejs.org/examples/
|
|
908
|
+
- licence: MIT
|
|
909
|
+
- preview: `fx/previews/path.png`
|
|
910
|
+
|
|
911
|
+
| Param | Type | Range | Default |
|
|
912
|
+
|---|---|---|---|
|
|
913
|
+
| intensity | number | 0..2 | 1 |
|
|
914
|
+
|
|
783
915
|
## pixelate
|
|
784
916
|
|
|
785
917
|
- kind: `post`
|
|
@@ -827,6 +959,20 @@ GENERATED from the effect cards (`fx/<id>.meta.json`). Never hand-edit. Cards ha
|
|
|
827
959
|
|---|---|---|---|
|
|
828
960
|
| density | number | 0.2..3 | 1 |
|
|
829
961
|
|
|
962
|
+
## revolve
|
|
963
|
+
|
|
964
|
+
- kind: `transition`
|
|
965
|
+
- cost: 2
|
|
966
|
+
- modes: `both`
|
|
967
|
+
- tags: mood=[cinematic, dramatic] content=[motion]
|
|
968
|
+
- source: https://threejs.org/examples/
|
|
969
|
+
- licence: MIT
|
|
970
|
+
- preview: `fx/previews/revolve.png`
|
|
971
|
+
|
|
972
|
+
| Param | Type | Range | Default |
|
|
973
|
+
|---|---|---|---|
|
|
974
|
+
| intensity | number | 0..2 | 1 |
|
|
975
|
+
|
|
830
976
|
## rings
|
|
831
977
|
|
|
832
978
|
- kind: `background`
|
|
@@ -948,6 +1094,29 @@ GENERATED from the effect cards (`fx/<id>.meta.json`). Never hand-edit. Cards ha
|
|
|
948
1094
|
|---|---|---|---|
|
|
949
1095
|
| intensity | number | 0..2 | 1 |
|
|
950
1096
|
|
|
1097
|
+
## slide-layer
|
|
1098
|
+
|
|
1099
|
+
- kind: `layer`
|
|
1100
|
+
- cost: 2
|
|
1101
|
+
- modes: `both`
|
|
1102
|
+
- tags: mood=[faithful, editorial] content=[imported-slide, pptx, layout]
|
|
1103
|
+
- source: https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/deck3d/src/fx/slide-layer.ts
|
|
1104
|
+
- licence: MIT
|
|
1105
|
+
- preview: `fx/previews/slide-layer.png`
|
|
1106
|
+
|
|
1107
|
+
| Param | Type | Range | Default |
|
|
1108
|
+
|---|---|---|---|
|
|
1109
|
+
| layout | string | — | pptx-layout |
|
|
1110
|
+
| slide | string | — | |
|
|
1111
|
+
| mode | string | — | free |
|
|
1112
|
+
| depths | object | — | [object Object] |
|
|
1113
|
+
| panel | object | — | [object Object] |
|
|
1114
|
+
| halo | number | 0..1 | 0 |
|
|
1115
|
+
| background | boolean | — | true |
|
|
1116
|
+
| skip | array | — | |
|
|
1117
|
+
| retext | object | — | [object Object] |
|
|
1118
|
+
| widen | object | — | [object Object] |
|
|
1119
|
+
|
|
951
1120
|
## smaa
|
|
952
1121
|
|
|
953
1122
|
- kind: `post`
|
|
@@ -1045,6 +1214,20 @@ No parameters.
|
|
|
1045
1214
|
|---|---|---|---|
|
|
1046
1215
|
| intensity | number | 0..2 | 1 |
|
|
1047
1216
|
|
|
1217
|
+
## swing
|
|
1218
|
+
|
|
1219
|
+
- kind: `transition`
|
|
1220
|
+
- cost: 1
|
|
1221
|
+
- modes: `both`
|
|
1222
|
+
- tags: mood=[cinematic, energetic] content=[motion]
|
|
1223
|
+
- source: https://threejs.org/examples/
|
|
1224
|
+
- licence: MIT
|
|
1225
|
+
- preview: `fx/previews/swing.png`
|
|
1226
|
+
|
|
1227
|
+
| Param | Type | Range | Default |
|
|
1228
|
+
|---|---|---|---|
|
|
1229
|
+
| intensity | number | 0..2 | 1 |
|
|
1230
|
+
|
|
1048
1231
|
## tessellate
|
|
1049
1232
|
|
|
1050
1233
|
- kind: `background`
|
|
@@ -30,7 +30,10 @@
|
|
|
30
30
|
| `defaults.rimLight` | boolean | `true` | Enable the rim light that outlines silhouettes. |
|
|
31
31
|
| `defaults.fog` | boolean | `true` | Enable depth fog so distant slides fade into the background. |
|
|
32
32
|
| `defaults.backgroundIntensity` | number | `0.7` | Opacity of the animated background scene (0 = hidden, 1 = full). |
|
|
33
|
-
| `defaults.transition` |
|
|
33
|
+
| `defaults.transition` | dolly \| swing \| revolve \| crane \| bank \| flythrough \| fade \| iris \| path \| cut | `"dolly"` | Camera move played on slide change (a `transition` card id, or `cut`). `path` needs the slide's `cameraPath`. |
|
|
34
|
+
| `defaults.transitionCycle` | array | | Deck-level: slides without their own `transition` take `transitionCycle[slideIndex % length]`. |
|
|
35
|
+
| `defaults.transitionCycle[]` | any | | |
|
|
36
|
+
| `defaults.transitionAmount` | number | `1` | Scales the built-in camera move (offsets, roll, fov swing); 1 = stock, 0 = straight dolly. |
|
|
34
37
|
| `defaults.durationSec` | number | `1.4` | Transition duration in seconds. |
|
|
35
38
|
| `defaults.depthRelief` | number | `0.7` | Depth offset (world units) applied per diagram rank so a 2D layout reads as a 3D staircase. Higher = more relief. |
|
|
36
39
|
| `defaults.quality` | low \| medium \| high | `"high"` | Quality tier: scales bloom, reflections, shadow resolution and particle count, and sets the effect cost budget (low 6 / medium 12 / high 20). |
|
|
@@ -142,7 +145,10 @@
|
|
|
142
145
|
| `overrides.deck.rimLight` | boolean | `true` | Enable the rim light that outlines silhouettes. |
|
|
143
146
|
| `overrides.deck.fog` | boolean | `true` | Enable depth fog so distant slides fade into the background. |
|
|
144
147
|
| `overrides.deck.backgroundIntensity` | number | `0.7` | Opacity of the animated background scene (0 = hidden, 1 = full). |
|
|
145
|
-
| `overrides.deck.transition` |
|
|
148
|
+
| `overrides.deck.transition` | dolly \| swing \| revolve \| crane \| bank \| flythrough \| fade \| iris \| path \| cut | `"dolly"` | Camera move played on slide change (a `transition` card id, or `cut`). `path` needs the slide's `cameraPath`. |
|
|
149
|
+
| `overrides.deck.transitionCycle` | array | | Deck-level: slides without their own `transition` take `transitionCycle[slideIndex % length]`. |
|
|
150
|
+
| `overrides.deck.transitionCycle[]` | any | | |
|
|
151
|
+
| `overrides.deck.transitionAmount` | number | `1` | Scales the built-in camera move (offsets, roll, fov swing); 1 = stock, 0 = straight dolly. |
|
|
146
152
|
| `overrides.deck.durationSec` | number | `1.4` | Transition duration in seconds. |
|
|
147
153
|
| `overrides.deck.depthRelief` | number | `0.7` | Depth offset (world units) applied per diagram rank so a 2D layout reads as a 3D staircase. Higher = more relief. |
|
|
148
154
|
| `overrides.deck.quality` | low \| medium \| high | `"high"` | Quality tier: scales bloom, reflections, shadow resolution and particle count, and sets the effect cost budget (low 6 / medium 12 / high 20). |
|
|
@@ -177,12 +183,28 @@
|
|
|
177
183
|
| `overrides.props[].count` | integer | | Instance count for the `ambient` role. |
|
|
178
184
|
| `overrides.props[].restyle` | palette \| original | | `palette` swaps materials for the deck PBR palette; `original` keeps the source materials. |
|
|
179
185
|
| `overrides.props[].anim` | none \| float \| orbit \| spin | | Animation preset applied to the prop group. |
|
|
186
|
+
| `overrides.assets` | array | | Pinned deck assets (images, JSON, text, fonts) embedded once into deck.html and read by effects through `ctx.assets.get(id)`. `pptx import` writes the `pptx-` entries. |
|
|
187
|
+
| `overrides.assets[]` | object | | One pinned deck asset. |
|
|
188
|
+
| `overrides.assets[].id` | string | | Asset id effects read it by. Font assets use `font-<name>`; only fonts may use that prefix. |
|
|
189
|
+
| `overrides.assets[].path` | string | | File path relative to the deck directory; must resolve inside it. |
|
|
190
|
+
| `overrides.assets[].sha256` | string | | Lowercase hex sha256 of the file bytes; a stale pin fails validate/render. |
|
|
191
|
+
| `overrides.assets[].mime` | image/png \| image/jpeg \| image/gif \| image/webp \| image/svg+xml \| application/json \| text/plain \| font/ttf \| font/otf | | Content type; decides how the runtime decodes it (bitmap, parsed JSON, text, registered font family). |
|
|
180
192
|
| `overrides.slides` | object | | Per-slide overrides keyed by slide id. |
|
|
181
193
|
| `overrides.slides["<key>"]` | object | | Per-slide overrides. Look knobs mirror `defaults` by $ref so the scopes cannot drift; `rail`/`spacing` stay deck-only because they position every anchor on the rail. |
|
|
182
194
|
| `overrides.slides["<key>"].backgroundIntensity` | number | | Override the background scene opacity. |
|
|
183
195
|
| `overrides.slides["<key>"].bloom` | any | | |
|
|
184
196
|
| `overrides.slides["<key>"].camera` | object | | Camera framing override. |
|
|
185
197
|
| `overrides.slides["<key>"].camera.distance` | number | | Pull the camera closer/further to fix fit or label size. |
|
|
198
|
+
| `overrides.slides["<key>"].cameraPath` | object | | Keyframed camera move into this slide (requires `transition: "path"`). Keys sit in the travel frame from the leaving camera to this slide's camera; the end points are implied and pinned. |
|
|
199
|
+
| `overrides.slides["<key>"].cameraPath.ease` | inOut \| in \| out \| linear | `"inOut"` | Time easing along the path. |
|
|
200
|
+
| `overrides.slides["<key>"].cameraPath.keys` | array | | Path keys, `t` strictly increasing. |
|
|
201
|
+
| `overrides.slides["<key>"].cameraPath.keys[]` | object | | |
|
|
202
|
+
| `overrides.slides["<key>"].cameraPath.keys[].t` | number | | Normalised path time. |
|
|
203
|
+
| `overrides.slides["<key>"].cameraPath.keys[].offset` | array | | [right, up, forward] offset as fractions of the travel length. |
|
|
204
|
+
| `overrides.slides["<key>"].cameraPath.keys[].offset[]` | number | | |
|
|
205
|
+
| `overrides.slides["<key>"].cameraPath.keys[].look` | number | | 0 = look at the leaving slide, 1 = at this slide. |
|
|
206
|
+
| `overrides.slides["<key>"].cameraPath.keys[].roll` | number | | Camera roll in degrees. |
|
|
207
|
+
| `overrides.slides["<key>"].cameraPath.keys[].fov` | number | | Vertical field of view in degrees. |
|
|
186
208
|
| `overrides.slides["<key>"].cardOffset` | object | | World-unit nudge applied to the text card AFTER the layout preset places it. Leaves the title, diagram and background where they are. |
|
|
187
209
|
| `overrides.slides["<key>"].cardOffset.x` | number | | Horizontal nudge, positive = right. |
|
|
188
210
|
| `overrides.slides["<key>"].cardOffset.y` | number | | Vertical nudge, positive = up. |
|
|
@@ -227,7 +249,8 @@
|
|
|
227
249
|
| `overrides.slides["<key>"].scene` | string | | Override the background scene id. |
|
|
228
250
|
| `overrides.slides["<key>"].softShadows` | any | | |
|
|
229
251
|
| `overrides.slides["<key>"].titleEdge` | none \| contrast | | Override the title contour for this slide. |
|
|
230
|
-
| `overrides.slides["<key>"].transition` |
|
|
252
|
+
| `overrides.slides["<key>"].transition` | any | | Override the camera move for entering this slide. |
|
|
253
|
+
| `overrides.slides["<key>"].transitionAmount` | any | | |
|
|
231
254
|
| `overrides.nodes` | object | | Per-node overrides keyed by `<slideId>/<nodeId>`. |
|
|
232
255
|
| `overrides.nodes["<key>"]` | object | | |
|
|
233
256
|
| `overrides.nodes["<key>"].shape` | rect \| stadium \| round \| hexagon \| circle \| doublecircle \| diamond \| cylinder | | Change the node's 3D primitive. |
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deck3d-from-pptx
|
|
3
|
+
description: 'Turn an existing .pptx into a styled deck3d 3D presentation: import, reference renders, then nine steps (fidelity … transitions), each authoring 2-4 variants, showing a contact sheet, asking the user, recording the pick, then build + compare. Use on "make a 3D deck from this pptx", "convert my PowerPoint to deck3d", "match the original slides in 3D".'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# deck3d-from-pptx
|
|
7
|
+
|
|
8
|
+
Take a real `.pptx` and rebuild it as a deck3d presentation whose slides **match the
|
|
9
|
+
original when the camera stops** and move through 3D space between slides. Every
|
|
10
|
+
creative decision is **the user's**: you generate variants, show them, ask, and record
|
|
11
|
+
the answer in `style.json`. The deck3d rules of the [`deck3d`](../deck3d/SKILL.md) tune
|
|
12
|
+
loop still apply: never edit `deck.html`, never edit derived IR fields (only
|
|
13
|
+
`overrides`), no randomness, timers or network in local effects, and finish with
|
|
14
|
+
`deck3d check deck.html --style` clean — or every remaining warning explained (a derived
|
|
15
|
+
`credits` slide counts as explained).
|
|
16
|
+
|
|
17
|
+
Detail per step (what to read, how to author variants, which samples, the question):
|
|
18
|
+
[`reference/steps.md`](reference/steps.md).
|
|
19
|
+
|
|
20
|
+
## 0. Import and reference renders (always first)
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
deck3d pptx import talk.pptx -o talk [--ref exports/]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
writes `talk/pptx/layout.json` (1920-unit slide space, items with stable ids
|
|
27
|
+
`sNN-iMMM`), `talk/pptx/media/`, a baseline `deck.md` and `deck.json` whose
|
|
28
|
+
`overrides.assets` pin the layout and every media file. Unsupported constructs (charts,
|
|
29
|
+
SmartArt, tables, EMF/WMF, WordArt, gradient fills…) become visible **fallback** items —
|
|
30
|
+
a crop of the reference render, else an outlined placeholder — each with one warning.
|
|
31
|
+
|
|
32
|
+
**Reference renders come first.** Ask the user (`ask_user`) for a PNG export of the deck
|
|
33
|
+
(PowerPoint: *File → Export → PNG, all slides*; Keynote and `Slide1.PNG` names work) and
|
|
34
|
+
pass the folder as `--ref`. Skip the question only when LibreOffice (`soffice`) and
|
|
35
|
+
`pdftoppm` are on PATH. **If the user declines**, say so once, and from then on every step
|
|
36
|
+
reports *snapshot review* (`deck3d snapshot`, eyeballing, `check`) **instead of**
|
|
37
|
+
`compare` scores — never pretend a score exists.
|
|
38
|
+
|
|
39
|
+
Then build the baseline: `cd talk && deck3d build deck.md -o deck.html` (a native deck3d
|
|
40
|
+
slide per pptx slide). Re-importing later keeps your tuning: `deck3d pptx import
|
|
41
|
+
talk.pptx -o talk --force` matches slides by content, backs up `deck.json.bak`, and
|
|
42
|
+
`deck3d variants replay` re-applies every recorded pick.
|
|
43
|
+
|
|
44
|
+
## The nine steps (fixed order)
|
|
45
|
+
|
|
46
|
+
| # | step id | question |
|
|
47
|
+
|---|---|---|
|
|
48
|
+
| 1 | `fidelity` | exact 2D layer · 3D panel · native deck3d |
|
|
49
|
+
| 2 | `placement` | glass panel · free-floating · frame in space |
|
|
50
|
+
| 3 | `frame` | master chrome and its transition animation |
|
|
51
|
+
| 4 | `brand-art` | logos, wordmarks, headline in 3D |
|
|
52
|
+
| 5 | `icons` | pictograms as 3D objects, optionally on cards |
|
|
53
|
+
| 6 | `hero` | hero illustrations rebuilt as 3D scenes |
|
|
54
|
+
| 7 | `worlds` | per-slide background worlds from slide text, plus haze |
|
|
55
|
+
| 8 | `media` | images replaced by video |
|
|
56
|
+
| 9 | `transitions` | transition and camera-path variety |
|
|
57
|
+
|
|
58
|
+
**Native path.** If the user picks `native` at `fidelity`, **skip steps 2, 3 and 5**
|
|
59
|
+
(placement, frame, icons) — no `slide-layer`, `frame-chrome` or `icon3d` effect may appear
|
|
60
|
+
in `deck.json`. Then: brand art goes beside the native title; hero scenes and worlds become
|
|
61
|
+
slide backgrounds; media becomes a video screen; transitions are unchanged. The `worlds`
|
|
62
|
+
step gives **every** slide a non-default background, so a native deck also clears
|
|
63
|
+
`check --style`.
|
|
64
|
+
|
|
65
|
+
## Every step: variants → sheet → ask → record → verify
|
|
66
|
+
|
|
67
|
+
1. **Author** the step into `style.json` (`version: 1`, ordered `steps[]`): `id`, `title`,
|
|
68
|
+
`question`, `slides` (sample slide ids that cover the step's affected kinds), `round`,
|
|
69
|
+
and **2–4 variants** `{ name, label, overrides }` built from the imported layout and the
|
|
70
|
+
slide text. A fragment is in the `overrides` grammar and **arrays replace**, so each
|
|
71
|
+
fragment must **carry forward the effects of earlier steps** on the same scope.
|
|
72
|
+
`deck3d validate deck.json` checks it.
|
|
73
|
+
2. `deck3d variants render --step <id>` → `variants/<id>/r<round>/contact.png` (reference
|
|
74
|
+
column, one labelled column per variant). `deck.json` is not touched.
|
|
75
|
+
3. Open `contact.png` on the canvas **and** put the live link in the question:
|
|
76
|
+
`deck3d serve deck.md` then `http://127.0.0.1:<port>/?variant=<step>:<name>` (`V` cycles
|
|
77
|
+
the step's variants; Save/Apply are disabled while a variant is shown).
|
|
78
|
+
4. **Ask** with `ask_user` — a single choice listing the variants by label, free text
|
|
79
|
+
allowed. **Do not pick for the user** while the question tool is available.
|
|
80
|
+
5. Variant answer → `deck3d variants pick <step> <name>` (add `--drop <id>` /
|
|
81
|
+
`--replace-step <step>` only when the user means to remove an effect; the ownership
|
|
82
|
+
guard refuses silent drops). Free-text answer → `deck3d variants note <step> --note
|
|
83
|
+
"<their words>"`, then author a **new round** from the note and repeat from 1.
|
|
84
|
+
6. `deck3d build deck.md -o deck.html`, then `deck3d compare deck.html` and report the
|
|
85
|
+
per-slide scores (or the snapshot review when there are no reference renders).
|
|
86
|
+
|
|
87
|
+
**Headless mode** is entered only when the run prompt says so explicitly (never
|
|
88
|
+
inferred from a missing UI): pick the **first variant in array order** with
|
|
89
|
+
`deck3d variants pick <step> <first> --note auto`.
|
|
90
|
+
|
|
91
|
+
## Creative assets: scaffold, preview, never invent in core
|
|
92
|
+
|
|
93
|
+
For `hero` and `worlds`, scaffold per-deck **local effects** (`deck3d fx scaffold <name>
|
|
94
|
+
--for <slideId>`) whose content comes from the slide's text and pictures — each variant a
|
|
95
|
+
different take on the **same content** (a literal scene, a metaphor, a minimal motif).
|
|
96
|
+
Preview each (`deck3d fx preview local:<name>`) before offering it. Traced art and icons:
|
|
97
|
+
`deck3d art trace|icon|cutout`; pin the outputs as assets (`overrides.assets`).
|
|
98
|
+
|
|
99
|
+
## Pitfalls — check after each step
|
|
100
|
+
|
|
101
|
+
- **Floor z-fighting**: objects resting on the floor are lifted above it (a `lift` / y
|
|
102
|
+
offset), never left coplanar with it.
|
|
103
|
+
- **Halos**: text halos use **normal blending** on light themes (additive glows wash out).
|
|
104
|
+
- **Chrome**: master chrome uses the persistent `frame-chrome` effect at deck scope,
|
|
105
|
+
not per-slide overlays.
|
|
106
|
+
- **Wrap drift**: font-metric differences wrap text differently. For **every multi-line text
|
|
107
|
+
box**, compare against the reference and fix with `widen` (or a `font-<name>` asset); a
|
|
108
|
+
closing line wrapping onto two lines while the reference has one → set `widen` for that
|
|
109
|
+
item, re-run `compare`. `compare` lists `font-fallback <name>` for every missing font.
|
|
110
|
+
- **Scores**: the deck's output tone mapping dims pure white to about 221, so a faithful
|
|
111
|
+
match scores about 0.9 (default threshold 0.85), not 0.99 — judge by the margin and by eye.
|
|
112
|
+
- **In-place file replacement**: after replacing a file in place that `serve` may miss,
|
|
113
|
+
**rebuild manually** (`deck3d build deck.md -o deck.html`).
|
|
114
|
+
- **Verification**: verify at the user's **actual viewport** (`--viewport WxH`) and also
|
|
115
|
+
capture mid-transition frames with **`compare --transition`**.
|
|
116
|
+
|
|
117
|
+
## Delivery
|
|
118
|
+
|
|
119
|
+
Render the final deliverable with `deck3d render deck.json -o deck.html --embed-video`
|
|
120
|
+
whenever **any slide uses a video screen**, so the single file plays offline. A `file://`
|
|
121
|
+
deck without embedding cannot play its clips (the browser refuses them as a texture
|
|
122
|
+
source) — say so if the user wants to send the file.
|
|
123
|
+
|
|
124
|
+
## Command cheat sheet
|
|
125
|
+
|
|
126
|
+
| need | command |
|
|
127
|
+
|---|---|
|
|
128
|
+
| import | `deck3d pptx import talk.pptx -o talk [--ref dir] [--force]` |
|
|
129
|
+
| sheet | `deck3d variants render --step <id> [--viewport WxH] [--ref dir]` |
|
|
130
|
+
| decide | `deck3d variants pick <step> <name> [--note t] [--drop id] [--replace-step s]` · `deck3d variants note <step> --note t` |
|
|
131
|
+
| re-apply | `deck3d variants replay` |
|
|
132
|
+
| verify | `deck3d compare deck.html [--strict] [--transition] [--viewport WxH]` |
|
|
133
|
+
| art | `deck3d art trace <img> --palette #a,#b` · `art icon <svg>` · `art cutout <img> --bg #hex --split` |
|
|
134
|
+
| live | `deck3d serve deck.md` (`?variant=<step>:<name>`, `V`) |
|