agentcut 0.2.4 → 0.2.6

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 (31) hide show
  1. package/dist/studio/workspace.js +4 -0
  2. package/dist/studio/workspace.js.map +1 -1
  3. package/package.json +1 -1
  4. package/template/components/CATALOG.md +52 -0
  5. package/template/components/README.md +70 -61
  6. package/template/components/STYLES.md +2 -0
  7. package/template/components/catalog.json +477 -0
  8. package/template/components/catalog.ts +4 -0
  9. package/template/components/cinematic/Cinematic.tsx +1093 -0
  10. package/template/components/cinematic/Device3D.tsx +324 -0
  11. package/template/components/cinematic/devices3d/display-model.ts +184 -0
  12. package/template/components/cinematic/devices3d/iphone-model.ts +643 -0
  13. package/template/components/cinematic/devices3d/macbook-model.ts +604 -0
  14. package/template/components/cinematic/devices3d/models.ts +657 -0
  15. package/template/components/cinematic/devices3d/runtime.ts +267 -0
  16. package/template/components/cinematic/math.ts +100 -0
  17. package/template/components/dot-trace-title/DotTraceTitle.tsx +181 -0
  18. package/template/components/dot-trace-title/meta.json +51 -0
  19. package/template/components/generate/GenerateReveal.tsx +381 -0
  20. package/template/components/index.ts +36 -0
  21. package/template/components/lib.ts +18 -6
  22. package/template/components/loops/LoopCanvas.tsx +132 -0
  23. package/template/components/loops/engine.ts +184 -0
  24. package/template/components/loops/library.ts +667 -0
  25. package/template/components/loops/library2.ts +777 -0
  26. package/template/components/motion-loop/MotionLoop.tsx +37 -0
  27. package/template/components/motion-loop/meta.json +312 -0
  28. package/template/skill/SKILL.md +16 -1
  29. package/template/skill/references/browser-export.md +61 -61
  30. package/template/skill/references/cinematic.md +184 -0
  31. package/template/skill/references/loops.md +151 -0
@@ -0,0 +1,37 @@
1
+ import { AbsoluteFill, useCurrentFrame } from "remotion";
2
+ import { exitOut, ramp } from "../lib";
3
+ import type { LoopTone } from "../loops/engine";
4
+ import { LoopCanvas } from "../loops/LoopCanvas";
5
+ import type { MotionBaseProps } from "../types";
6
+
7
+ type Props = MotionBaseProps & {
8
+ loop: string;
9
+ tone: LoopTone;
10
+ accent: string;
11
+ accent2: string;
12
+ speed: number;
13
+ seed: number;
14
+ transparent: boolean;
15
+ blur: number;
16
+ fade: boolean;
17
+ };
18
+
19
+ /** A library loop as a timeline clip: brand palette, tone, speed and layout from the inspector. */
20
+ export function MotionLoop(props: Props) {
21
+ const frame = useCurrentFrame();
22
+ const opacity = props.fade ? ramp(frame, 0, 10) * exitOut(frame, props.durationInFrames, 10) : 1;
23
+ return (
24
+ <AbsoluteFill style={{ opacity }}>
25
+ <LoopCanvas
26
+ loop={props.loop}
27
+ tone={props.tone}
28
+ accent={props.accent}
29
+ accent2={props.accent2}
30
+ speed={props.speed}
31
+ seed={props.seed}
32
+ transparent={props.transparent}
33
+ blur={props.blur}
34
+ />
35
+ </AbsoluteFill>
36
+ );
37
+ }
@@ -0,0 +1,312 @@
1
+ {
2
+ "id": "motion-loop",
3
+ "name": "Motion Loop",
4
+ "category": "Backgrounds",
5
+ "description": "A seamless motion loop in your brand colours: 44 loops across backgrounds, shapes, symmetry (kaleidoscope, mandala, spirograph), shape morphing, little games (snake, pong, falling blocks, Game of Life), physics (Newton's cradle, gears, dominoes) and generative pieces, each a pure function of time that never shows a seam.",
6
+ "useWhen": "Behind titles, product shots, quotes and end cards; between shots; as a shape centerpiece over a background (transparent). Rotate loops: never the same loop twice in a row, and pick by mood (see each option). Set accent/accent2 to the brand colours and choose the tone: dark (deep brand background), accent (solid brand colour), light (paper). Change seed for another layout of the same loop.",
7
+ "durationInFrames": 360,
8
+ "layer": "full",
9
+ "tags": [
10
+ "loop",
11
+ "background",
12
+ "motion graphics",
13
+ "shapes",
14
+ "pattern",
15
+ "brand",
16
+ "seamless",
17
+ "abstract"
18
+ ],
19
+ "props": {
20
+ "loop": {
21
+ "type": "select",
22
+ "label": "Loop",
23
+ "default": "gradient-blobs",
24
+ "options": [
25
+ {
26
+ "value": "perspective-grid",
27
+ "label": "Perspective Grid · Backgrounds"
28
+ },
29
+ {
30
+ "value": "dot-wave",
31
+ "label": "Dot Wave · Backgrounds"
32
+ },
33
+ {
34
+ "value": "flow-lines",
35
+ "label": "Flow Lines · Backgrounds"
36
+ },
37
+ {
38
+ "value": "gradient-blobs",
39
+ "label": "Gradient Blobs · Backgrounds"
40
+ },
41
+ {
42
+ "value": "stripes-scroll",
43
+ "label": "Stripe Scroll · Backgrounds"
44
+ },
45
+ {
46
+ "value": "concentric-pulse",
47
+ "label": "Concentric Pulse · Backgrounds"
48
+ },
49
+ {
50
+ "value": "checker-twist",
51
+ "label": "Checker Twist · Backgrounds"
52
+ },
53
+ {
54
+ "value": "halftone-sweep",
55
+ "label": "Halftone Sweep · Backgrounds"
56
+ },
57
+ {
58
+ "value": "terrain-ridges",
59
+ "label": "Terrain Ridges · Backgrounds"
60
+ },
61
+ {
62
+ "value": "starfield-warp",
63
+ "label": "Starfield Warp · Backgrounds"
64
+ },
65
+ {
66
+ "value": "bokeh-drift",
67
+ "label": "Bokeh Drift · Backgrounds"
68
+ },
69
+ {
70
+ "value": "iso-cubes",
71
+ "label": "Iso Cubes · Backgrounds"
72
+ },
73
+ {
74
+ "value": "ribbon-weave",
75
+ "label": "Ribbon Weave · Backgrounds"
76
+ },
77
+ {
78
+ "value": "tile-mosaic",
79
+ "label": "Tile Mosaic · Backgrounds"
80
+ },
81
+ {
82
+ "value": "orbit-rings",
83
+ "label": "Orbit Rings · Shapes"
84
+ },
85
+ {
86
+ "value": "morph-blob",
87
+ "label": "Morph Blob · Shapes"
88
+ },
89
+ {
90
+ "value": "bouncing-ball",
91
+ "label": "Bouncing Ball · Shapes"
92
+ },
93
+ {
94
+ "value": "spinner-petals",
95
+ "label": "Spinner Petals · Shapes"
96
+ },
97
+ {
98
+ "value": "stacked-squares",
99
+ "label": "Stacked Squares · Shapes"
100
+ },
101
+ {
102
+ "value": "ripple-drop",
103
+ "label": "Ripple Drop · Shapes"
104
+ },
105
+ {
106
+ "value": "cube-spin",
107
+ "label": "Cube Spin · Shapes"
108
+ },
109
+ {
110
+ "value": "dna-helix",
111
+ "label": "DNA Helix · Shapes"
112
+ },
113
+ {
114
+ "value": "pie-burst",
115
+ "label": "Pie Burst · Shapes"
116
+ },
117
+ {
118
+ "value": "wave-bars",
119
+ "label": "Wave Bars · Shapes"
120
+ },
121
+ {
122
+ "value": "kaleidoscope",
123
+ "label": "Kaleidoscope · Symmetry"
124
+ },
125
+ {
126
+ "value": "mandala-bloom",
127
+ "label": "Mandala Bloom · Symmetry"
128
+ },
129
+ {
130
+ "value": "spirograph",
131
+ "label": "Spirograph · Symmetry"
132
+ },
133
+ {
134
+ "value": "mirror-tiles",
135
+ "label": "Mirror Tiles · Symmetry"
136
+ },
137
+ {
138
+ "value": "radial-burst",
139
+ "label": "Radial Burst · Symmetry"
140
+ },
141
+ {
142
+ "value": "shape-morph",
143
+ "label": "Shape Morph · Morphing"
144
+ },
145
+ {
146
+ "value": "morph-grid",
147
+ "label": "Morph Grid · Morphing"
148
+ },
149
+ {
150
+ "value": "shape-shuffle",
151
+ "label": "Shape Shuffle · Morphing"
152
+ },
153
+ {
154
+ "value": "metaballs",
155
+ "label": "Metaballs · Morphing"
156
+ },
157
+ {
158
+ "value": "snake-game",
159
+ "label": "Snake · Games"
160
+ },
161
+ {
162
+ "value": "falling-blocks",
163
+ "label": "Falling Blocks · Games"
164
+ },
165
+ {
166
+ "value": "pong",
167
+ "label": "Pong · Games"
168
+ },
169
+ {
170
+ "value": "life-gliders",
171
+ "label": "Life Gliders · Games"
172
+ },
173
+ {
174
+ "value": "newtons-cradle",
175
+ "label": "Newton's Cradle · Physics"
176
+ },
177
+ {
178
+ "value": "clock-gears",
179
+ "label": "Clock Gears · Physics"
180
+ },
181
+ {
182
+ "value": "liquid-fill",
183
+ "label": "Liquid Fill · Physics"
184
+ },
185
+ {
186
+ "value": "domino-wave",
187
+ "label": "Domino Wave · Physics"
188
+ },
189
+ {
190
+ "value": "vortex",
191
+ "label": "Vortex · Generative"
192
+ },
193
+ {
194
+ "value": "lissajous-trail",
195
+ "label": "Lissajous Trail · Generative"
196
+ },
197
+ {
198
+ "value": "bubble-pop",
199
+ "label": "Bubble Pop · Generative"
200
+ }
201
+ ]
202
+ },
203
+ "tone": {
204
+ "type": "select",
205
+ "label": "Tone",
206
+ "default": "dark",
207
+ "options": [
208
+ {
209
+ "value": "dark",
210
+ "label": "Dark (deep brand)"
211
+ },
212
+ {
213
+ "value": "accent",
214
+ "label": "Accent (brand colour)"
215
+ },
216
+ {
217
+ "value": "light",
218
+ "label": "Light (paper)"
219
+ }
220
+ ]
221
+ },
222
+ "accent": {
223
+ "type": "color",
224
+ "style": "accent",
225
+ "label": "Brand colour",
226
+ "default": "#7c5cff"
227
+ },
228
+ "accent2": {
229
+ "type": "color",
230
+ "label": "Second colour",
231
+ "default": "#ff5ca8"
232
+ },
233
+ "speed": {
234
+ "type": "number",
235
+ "label": "Speed",
236
+ "default": 1,
237
+ "min": 0.25,
238
+ "max": 3,
239
+ "step": 0.25,
240
+ "unit": "×",
241
+ "help": "Any speed is seamless within the clip. To repeat the clip itself, make its length × speed a multiple of 12 s."
242
+ },
243
+ "seed": {
244
+ "type": "number",
245
+ "label": "Layout",
246
+ "default": 0,
247
+ "min": 0,
248
+ "max": 99,
249
+ "step": 1
250
+ },
251
+ "transparent": {
252
+ "type": "boolean",
253
+ "label": "Transparent",
254
+ "default": false,
255
+ "help": "No background: a shape over footage or another layer."
256
+ },
257
+ "blur": {
258
+ "type": "number",
259
+ "label": "Motion blur",
260
+ "default": 4,
261
+ "min": 1,
262
+ "max": 12,
263
+ "step": 1,
264
+ "help": "Sub-frames per frame in the export (the preview shows 1)."
265
+ },
266
+ "fade": {
267
+ "type": "boolean",
268
+ "label": "Fade in/out",
269
+ "default": true
270
+ }
271
+ },
272
+ "examples": [
273
+ {
274
+ "name": "Brand mesh",
275
+ "props": {}
276
+ },
277
+ {
278
+ "name": "Synth grid",
279
+ "props": {
280
+ "loop": "perspective-grid",
281
+ "accent": "#22d3ee",
282
+ "accent2": "#f472b6"
283
+ }
284
+ },
285
+ {
286
+ "name": "Paper dots",
287
+ "props": {
288
+ "loop": "dot-wave",
289
+ "tone": "light",
290
+ "accent": "#f97316"
291
+ }
292
+ },
293
+ {
294
+ "name": "Orbit on brand",
295
+ "props": {
296
+ "loop": "orbit-rings",
297
+ "tone": "accent",
298
+ "accent": "#2563eb",
299
+ "accent2": "#facc15"
300
+ }
301
+ },
302
+ {
303
+ "name": "Iso city",
304
+ "props": {
305
+ "loop": "iso-cubes",
306
+ "accent": "#10b981",
307
+ "accent2": "#f59e0b"
308
+ }
309
+ }
310
+ ],
311
+ "stillAt": 0.3
312
+ }
@@ -75,7 +75,7 @@ projects/<slug>/
75
75
 
76
76
  The export and the captures use Remotion's web renderer, which draws a subset of CSS:
77
77
  - No `z-index` (order elements back to front), no `mix-blend-mode`, `backdrop-filter`, inset shadows,
78
- `object-position`, CSS 3D `perspective`.
78
+ `object-position`, CSS 3D `perspective` (for 3D use the cinematic `Stage` from `agentcut/components`).
79
79
  - Backgrounds: `linear-gradient` only. For radial glows use `<RadialGlow>` from `agentcut`.
80
80
  - `<Audio>`/`<Video>` from `@remotion/media` (never `OffthreadVideo`/`Html5Audio`), `<Img>` from remotion.
81
81
  - Fonts come from `project.json` (Google specs or local files in assets/fonts).
@@ -119,6 +119,21 @@ When a user supplies a reference video URL or asks to adapt its style, hook, cap
119
119
  read `references/style-spy.md`. The helper imports references (`agentcut_import_reference`) and
120
120
  samples their frames; the studio shows them automatically.
121
121
 
122
+ ## Motion loops and variety
123
+
124
+ No video sits on a dead flat colour, and no two videos look alike. Read `references/loops.md` before
125
+ choosing backgrounds: 44 seamless brand-coloured loops (backgrounds, shapes, symmetry, morphing, games,
126
+ physics, generative) (`motion-loop` clips or `<LoopCanvas>` in
127
+ scenes), the "generated by an agent" effects (`dot-trace-title`, `GenerateReveal`), how to build the
128
+ palette from the brand, the variety rules, and how to write and save new loops to the workspace library.
129
+
130
+ ## Cinematic Mode
131
+
132
+ When a message starts with "Cinematic:" or "Cinematic, another take:", or the user wants product shots with a 3D camera (tilted
133
+ screens, depth of field, UI lifting off the screen, device mockups, Apple-style launch shots), read
134
+ `references/cinematic.md`. Scenes use the toolkit in `agentcut/components` (`Stage`, `Screen`, `Lift`,
135
+ `Plane`, `Backdrop`); follow the direction the message gives and pass its quality gate.
136
+
122
137
  ## Working with the user
123
138
 
124
139
  The user edits the same timeline by hand while you work, and points at things instead of describing
@@ -1,61 +1,61 @@
1
- # Browser export: what the renderer can draw
2
-
3
- Captures (`agentcut_capture_frames`, `_contact_sheet`) and the export use Remotion's web renderer
4
- (`@remotion/web-renderer`, encoding with Mediabunny). It walks the DOM and draws each element onto a canvas,
5
- so it supports a **subset** of CSS. The live preview (Remotion Player) is a normal browser page and shows
6
- everything — so a scene can look right in the preview and wrong in the export. Always judge by captures.
7
-
8
- ## Replace these
9
-
10
- | Don't use | Use instead |
11
- |---|---|
12
- | `z-index` | order elements back to front in the DOM (later = on top) |
13
- | `background: radial-gradient(…)` / `conic-gradient` | `<RadialGlow x y radius color opacity />` from `agentcut`, or an inline `<svg>` with `<radialGradient>` |
14
- | `background-image: url()` | `<Img>` or an image clip |
15
- | `mix-blend-mode`, `background-blend-mode` | pre-blended colors, opacity, or an SVG with the effect baked in |
16
- | `backdrop-filter` (glass blur) | a semi-opaque fill + a blurred copy of the background behind it |
17
- | `box-shadow: inset …`, shadow spread | an inner element with a gradient/border, or an outer shadow without spread |
18
- | `object-position` | position the `<Img>` inside an `overflow: hidden` box with transforms |
19
- | `perspective`, `transform-style: preserve-3d` | 2D transforms (scale/skew/rotate) faking depth |
20
- | `mask-image` with radial/SVG masks | linear-gradient masks, or `clip-path` shapes (`inset`, `circle`, `polygon`) |
21
- | `clip-path: url(#svgClip)` | `clip-path: polygon(…)` / `circle(…)` |
22
- | `OffthreadVideo`, `Html5Video`, `Html5Audio` | `<Video>` / `<Audio>` from `@remotion/media` (or video/audio clips) |
23
- | `writing-mode`, wavy `text-decoration` | rotated boxes, SVG paths |
24
- | fonts from CSS `@import` / `<link>` in scenes | `project.json` → `fonts` |
25
-
26
- Supported and safe: flexbox/grid layout, `transform` (2D), `opacity`, `filter` (blur, brightness…; not in
27
- Safari), `linear-gradient` backgrounds, `border-radius`, borders, outer `box-shadow`, `text-shadow`,
28
- `clip-path` shapes, inline SVG (gradients, paths, filters inside the SVG), `<Img>`, canvas.
29
-
30
- Text inside SVG `<text>` or `foreignObject` doesn't get project fonts: prefer HTML text.
31
-
32
- ## Checklist after writing a scene
33
-
34
- 1. `agentcut_status` → no build errors.
35
- 2. Capture its entrance, hold and exit in both variants.
36
- 3. Compare with what you meant. Missing glow, wrong stacking, hard edges where a blend was → one of the
37
- properties above.
38
- 4. If an effect can't be done within these rules and the user wants it, say so: the "Render on this
39
- computer" export (classic Remotion renderer) draws full CSS, but the captures won't show it.
40
-
41
- Shader transitions (`@remotion/transitions` zoom-blur, film-burn, …) use WebGL: they render in the browser
42
- but slowly; check a capture of a transition frame before relying on one.
43
-
44
- ## WebGL / three.js scenes
45
-
46
- - Create the `<canvas>` **inside** the effect (`document.createElement("canvas")`, append it to a container
47
- `<div ref>`), and remove it in the cleanup. Never call `renderer.forceContextLoss()` on a canvas React
48
- keeps: the dev server mounts every component twice, and the second mount gets a dead context
49
- ("Cannot read properties of null (reading 'precision')").
50
- - `preserveDrawingBuffer: true` so captures and the export can read the pixels; render synchronously for the
51
- current frame (`useCurrentFrame()`), never in `requestAnimationFrame`.
52
- - One renderer per scene, sized to the composition (`useVideoConfig()`), `setPixelRatio(1)`. Dispose
53
- geometries, materials, textures and the renderer in the cleanup. Browsers allow ~16 live WebGL contexts.
54
- - Keep the live preview smooth. The Player draws 30 frames a second on the page's main thread; when a
55
- frame takes longer, it skips frames, and the user sees stutters and jumps. Use `usePreviewQuality()` from
56
- `agentcut`: `renderer.setPixelRatio(q.pixelRatio)`, `shadow.mapSize.set(q.shadowMapSize, …)`,
57
- and redraw big canvas textures (`needsUpdate`) only every `q.textureEvery` frames. Captures and the export
58
- always get full quality.
59
- - Call `renderer.compile(scene, camera)` at the end of setup so shaders compile while the scene is
60
- premounted (clips mount 1 s early in the preview), not on its first visible frame.
61
- - Capture a frame of every 3D scene in both variants before moving on.
1
+ # Browser export: what the renderer can draw
2
+
3
+ Captures (`agentcut_capture_frames`, `_contact_sheet`) and the export use Remotion's web renderer
4
+ (`@remotion/web-renderer`, encoding with Mediabunny). It walks the DOM and draws each element onto a canvas,
5
+ so it supports a **subset** of CSS. The live preview (Remotion Player) is a normal browser page and shows
6
+ everything — so a scene can look right in the preview and wrong in the export. Always judge by captures.
7
+
8
+ ## Replace these
9
+
10
+ | Don't use | Use instead |
11
+ |---|---|
12
+ | `z-index` | order elements back to front in the DOM (later = on top) |
13
+ | `background: radial-gradient(…)` / `conic-gradient` | `<RadialGlow x y radius color opacity />` from `agentcut`, or an inline `<svg>` with `<radialGradient>` |
14
+ | `background-image: url()` | `<Img>` or an image clip |
15
+ | `mix-blend-mode`, `background-blend-mode` | pre-blended colors, opacity, or an SVG with the effect baked in |
16
+ | `backdrop-filter` (glass blur) | a semi-opaque fill + a blurred copy of the background behind it |
17
+ | `box-shadow: inset …`, shadow spread | an inner element with a gradient/border, or an outer shadow without spread |
18
+ | `object-position` | position the `<Img>` inside an `overflow: hidden` box with transforms |
19
+ | `perspective`, `transform-style: preserve-3d` | the cinematic `Stage` / `Plane` from `agentcut/components` (one `matrix3d()` per element, drawn through WebGL; see `cinematic.md`), or 2D transforms faking depth |
20
+ | `mask-image` with radial/SVG masks | linear-gradient masks, or `clip-path` shapes (`inset`, `circle`, `polygon`) |
21
+ | `clip-path: url(#svgClip)` | `clip-path: polygon(…)` / `circle(…)` |
22
+ | `OffthreadVideo`, `Html5Video`, `Html5Audio` | `<Video>` / `<Audio>` from `@remotion/media` (or video/audio clips) |
23
+ | `writing-mode`, wavy `text-decoration` | rotated boxes, SVG paths |
24
+ | fonts from CSS `@import` / `<link>` in scenes | `project.json` → `fonts` |
25
+
26
+ Supported and safe: flexbox/grid layout, `transform` (2D), `opacity`, `filter` (blur, brightness…; not in
27
+ Safari), `linear-gradient` backgrounds, `border-radius`, borders, outer `box-shadow`, `text-shadow`,
28
+ `clip-path` shapes, inline SVG (gradients, paths, filters inside the SVG), `<Img>`, canvas.
29
+
30
+ Text inside SVG `<text>` or `foreignObject` doesn't get project fonts: prefer HTML text.
31
+
32
+ ## Checklist after writing a scene
33
+
34
+ 1. `agentcut_status` → no build errors.
35
+ 2. Capture its entrance, hold and exit in both variants.
36
+ 3. Compare with what you meant. Missing glow, wrong stacking, hard edges where a blend was → one of the
37
+ properties above.
38
+ 4. If an effect can't be done within these rules and the user wants it, say so: the "Render on this
39
+ computer" export (classic Remotion renderer) draws full CSS, but the captures won't show it.
40
+
41
+ Shader transitions (`@remotion/transitions` zoom-blur, film-burn, …) use WebGL: they render in the browser
42
+ but slowly; check a capture of a transition frame before relying on one.
43
+
44
+ ## WebGL / three.js scenes
45
+
46
+ - Create the `<canvas>` **inside** the effect (`document.createElement("canvas")`, append it to a container
47
+ `<div ref>`), and remove it in the cleanup. Never call `renderer.forceContextLoss()` on a canvas React
48
+ keeps: the dev server mounts every component twice, and the second mount gets a dead context
49
+ ("Cannot read properties of null (reading 'precision')").
50
+ - `preserveDrawingBuffer: true` so captures and the export can read the pixels; render synchronously for the
51
+ current frame (`useCurrentFrame()`), never in `requestAnimationFrame`.
52
+ - One renderer per scene, sized to the composition (`useVideoConfig()`), `setPixelRatio(1)`. Dispose
53
+ geometries, materials, textures and the renderer in the cleanup. Browsers allow ~16 live WebGL contexts.
54
+ - Keep the live preview smooth. The Player draws 30 frames a second on the page's main thread; when a
55
+ frame takes longer, it skips frames, and the user sees stutters and jumps. Use `usePreviewQuality()` from
56
+ `agentcut`: `renderer.setPixelRatio(q.pixelRatio)`, `shadow.mapSize.set(q.shadowMapSize, …)`,
57
+ and redraw big canvas textures (`needsUpdate`) only every `q.textureEvery` frames. Captures and the export
58
+ always get full quality.
59
+ - Call `renderer.compile(scene, camera)` at the end of setup so shaders compile while the scene is
60
+ premounted (clips mount 1 s early in the preview), not on its first visible frame.
61
+ - Capture a frame of every 3D scene in both variants before moving on.