editor/examples
konstantin-paulus 2fafd8668c Enhance asset management and integration with AI generation
- Added `@diffusionstudio/jsx` dependency to support JSX generation features.
- Integrated `assetSystem` into various components to streamline asset handling.
- Refactored `create-engine.ts`, `image-encoder.ts`, and `encoder.ts` to utilize the new asset management structure.
- Removed the obsolete `jsx-generation.ts` file, consolidating asset generation logic.
- Updated `library.ts` to improve asset resolution and management processes.
- Enhanced the `EditorPage` to incorporate AI generation capabilities, improving project workflows.
2026-08-21 23:05:45 +02:00
..

Examples

Self-contained compositions demonstrating the JSX API (see reference/jsx). Each root carries a stable scene identity, so re-mounting an example replaces its scene in place.

Example Shows
01-basics.tsx the scene prop promoting a root, <sequence> with a dissolve, <video>, <audio>, <image>, <text> titles from data via <For>
02-genai.tsx multi-stage generation: generate.image refs feeding generate.video, TTS voiceover, generated ambience, <captions>
03-ticker.tsx declarative animation: useTicker + createMemo derived values driving props
04-html-in-canvas.tsx <html>: an AI prompt box as real DOM, typed out from the playhead
05-anime-timeline.tsx anime.js timeline seeked from useTicker, driving an ECS node and <html> content in lockstep
06-three.tsx three.js WebGL renderer owning a <surface>, glTF model loaded over the network
07-webgpu.tsx raw WebGPU on a <surface>: a triangle whose colors cycle with composition time
08-shader-paint.tsx <shaderPaint> post-processing a <video>: WGSL chromatic aberration + vignette, uniforms patchable live

Requirements: 02-genai.tsx consumes generation credits (results are cached per session); 01-basics.tsx, 06-three.tsx, and 08-shader-paint.tsx fetch remote media.

Typecheck with tsc -p examples --noEmit (part of npm run check).