ιαηδαπα

ovenbird - alpha

aldovisual

Ovenbird audiovisual orchestration engine for interactive cinematic browser experiences

como usar

módulo
import * as aldovisual from 'https://cdn.iandara.com/mjs/ovenbird/aldovisual';
script clássico
<script src="https://cdn.iandara.com/js/ovenbird/aldovisual.umd.min"></script>
<!-- window.aldovisual -->
no monorepo
import * as aldovisual from '@iandara/aldovisual';
8 subcaminhos
  • @iandara/aldovisual/ui/intro-controller.mjshttps://cdn.iandara.com/mjs/ovenbird/aldovisual-ui-intro-controller
  • @iandara/aldovisual/ui/intro-renderer.mjshttps://cdn.iandara.com/mjs/ovenbird/aldovisual-ui-intro-renderer
  • @iandara/aldovisual/ui/thunder-audio.mjshttps://cdn.iandara.com/mjs/ovenbird/aldovisual-ui-thunder-audio
  • @iandara/aldovisual/ui/rain-audio.mjshttps://cdn.iandara.com/mjs/ovenbird/aldovisual-ui-rain-audio
  • @iandara/aldovisual/ui/studio-intro.mjshttps://cdn.iandara.com/mjs/ovenbird/aldovisual-ui-studio-intro
  • @iandara/aldovisual/ui/brand-wordmark.mjshttps://cdn.iandara.com/mjs/ovenbird/aldovisual-ui-brand-wordmark
  • @iandara/aldovisual/ui/faixa.mjshttps://cdn.iandara.com/mjs/ovenbird/aldovisual-ui-faixa
  • @iandara/aldovisual/ui/fireworks.mjshttps://cdn.iandara.com/mjs/ovenbird/aldovisual-ui-fireworks

documentação

Browser-first ESM + UMD · global window.aldovisual.

@iandara/aldovisual is the reusable audiovisual runtime for browser experiences in the Iandara ecosystem. It owns the generic engine pieces: Three.js rendering, native WebGPU terrain rendering, post-processing, scroll timelines, stage/camera interpolation, extensible canvas backgrounds, Unicode signal catalogs, floating messages, intro/credits with a procedural storm, cinematic video portals, territory elements, procedural world primitives, Geome and particle-field integration, audio helpers and UI systems.

Application packages should keep only their story, content, colors and composition. Generic runtime behavior belongs here.

Install

ESM:

import {create_aldovisual} from '@iandara/aldovisual';

CDN:

<script src="https://cdn.iandara.com/js/ovenbird/aldovisual.umd.min"></script>

The CDN exposes window.aldovisual.

Minimal Runtime

create_aldovisual(root_element, cinematic, options) creates an unbooted runtime. Call boot() or start() when the DOM is ready.

import {create_aldovisual, create_stage_context_resolver, sample_keyed_camera_path} from '@iandara/aldovisual';

const STAGES = ['origin', 'middle', 'return'];
const CAMERA_KEYS = [
    {stage: 'origin', position: [0, 1, 8], target: [0, 0, 0], fov: 42},
    {stage: 'middle', position: [2, 2, 4], target: [0, 0.5, 0], fov: 48},
    {stage: 'return', position: [0, 1, 8], target: [0, 0, 0], fov: 38}
];

const get_stage_context = create_stage_context_resolver(STAGES);

const cinematic = {
    id: 'demo',
    event_prefix: 'demo',
    get_stage_context,
    sample_camera_path: (progress, reduced_motion) => sample_keyed_camera_path(progress, {camera_keys: CAMERA_KEYS, get_stage_context, reduced_motion}),
    create_systems: () => []
};

const app = create_aldovisual(document.querySelector('[data-app]'), cinematic, {
    reduced_motion: false
});

app.boot();

Stagecraft domain model

Stagecraft separates the persistent identity of a thing from the way it is materialized and presented:

Role → Essence → Body → Form(Shape + Skin)
  • Role is a semantic slot required by a cinematic, such as guide, cards or portal.
  • Essence is serializable identity and persistent data: id, name, attributes and tags.
  • Body extends VisualElement is the materialized scene-graph presence.
  • Shape describes geometry without aesthetics.
  • Skin is an immutable visual recipe organized by surfaces.
  • Form combines one Shape and one Skin.
  • Actor, Prop and SetPiece are thin semantic Body specializations; ownership and pooling remain independent.

Bindings make lifecycle ownership explicit:

import {bind_dynamic, bind_existing, bind_spawn} from '@iandara/aldovisual';

const guide = bind_existing({role: 'guide', body: guide_body, ownership: 'external'});
const portal = bind_spawn({
    role: 'portal',
    essence: {id: 'crossing'},
    ownership: 'short',
    factory: ({essence}) => create_portal_body(essence)
});
const cards = bind_dynamic({
    role: 'cards',
    ownership: 'stage',
    resolver: context => resolve_stage_cards(context)
});

The valid ownerships are stage, short, scene and external. Residency, instantiation, activation and visibility are independent states.

Cards, Forms and metamorphosis

Card requires a CardForm, and a CardForm requires real front and back surfaces. Both surfaces are materialized at the same time; flip() rotates the body instead of swapping an image at ninety degrees.

import {create_card, create_card_form, create_card_skin, create_essence, create_rectangle_shape} from '@iandara/aldovisual';

const form = create_card_form({
    id: 'arcana_card',
    shape: create_rectangle_shape({width: 0.68, height: 0.96, depth: 0.018, corner_radius: 0.025}),
    skin: create_card_skin({
        front_surface: {map: front_texture},
        back_surface: {map: back_texture},
        edge_surface: {color: 0xcba85b}
    })
});

const card = create_card({essence: create_essence({id: 'arcana_01'}), form});
card.flip({to: 'back'});
card.scrub_flip(0.35);

Every Body has an installable metamorphosis registry. One definition can be clock-driven with a cancelable Take, or progress-driven by a timeline. Starting one drive deterministically cancels the other for that metamorphosis.

body.metamorphoses.install(card_to_butterfly);
const take = body.metamorphoses.perform('card_to_butterfly');
body.metamorphoses.scrub('card_to_butterfly', scroll_progress);
body.metamorphoses.uninstall('card_to_butterfly');

Composite presets follow the same restart contract. MetamorphosisPath.reset() cancels every active drive, restores each Card Body to its captured Card Form and hides the path until its next progress sample, while keeping resident textures and pooled Bodies loaded.

SceneResourceManager owns reference-counted geometry, texture, material, Shape and Skin leases for one runtime. PropsTable is its editorial pooling facade; pooling and GPU instancing are separate strategies.

props_table.register('arcana', factory, {warm: 6, max: 22});
const card_body = await props_table.check_out('arcana', essence);
props_table.check_in(card_body);
props_table.strike();

CinematicShort and Stagecraft

A cinematic short is a four-stage piece, built and recognized through create_cinematic_short(), is_cinematic_short() and CINEMATIC_SHORT_KIND — it is a validated data shape, not a class. Intro, opening and ending are lifecycle phases around the four stages and do not count as stages. Definitions are validated, serializable data; runtime behavior is referenced through command ids rather than persisted closures.

import {create_cinematic_short} from '@iandara/aldovisual';

const short = create_cinematic_short({
    id: 'guialma_crossing',
    backdrop: 'sky_path',
    intro: {command_id: 'opening.intro'},
    opening: {command_id: 'opening.places'},
    stages: [
        {id: 'sefirot', weight: 0.2},
        {id: 'cards_1', weight: 0.3},
        {id: 'cards_2', weight: 0.3},
        {id: 'portal', weight: 0.2}
    ],
    ending: {command_id: 'portal.hold'},
    roles: {
        portal: {kind: 'spawn', factory: 'portal', ownership: 'short'},
        cards: {kind: 'spawn', factory: 'card', ownership: 'stage', stages: ['cards_1', 'cards_2']}
    },
    marks: [],
    conduction: {auto_start: true}
});

The normalized lifecycle is:

idle → load_in → places → opening
     → stage 1 → stage 2 → stage 3 → stage 4
     → ending → held/complete → strike

create_aldovisual(root, short, options) automatically creates a CinematicShortPlayer. Runtime factories resolve the serializable factory ids shown above. Use create_cinematic_short_player() directly for isolated composition. The player owns weighted navigation, bindings, tracks, clips, cues, shots, lifecycle reconciliation, commands, conduction, resources and pooling. restart() reconstructs state without reloading resident assets.

Stage listeners are data:

{
    id: 'cards_1',
    weight: 0.3,
    listeners: {
        on_enter: [{listener_id: 'cards.enter', command_id: 'cards.reveal'}],
        on_land: [{listener_id: 'cards.land', command_id: 'cards.breathe', once: true}],
        on_leave: [{listener_id: 'cards.leave', command_id: 'cards.release'}]
    },
    hands: {
        left: {tap: [{listener_id: 'left.tap', command_id: 'cards.left'}]},
        right: {tap: [{listener_id: 'right.tap', command_id: 'cards.right'}]}
    }
}

on_enter runs before the first sample, on_land crosses local progress 0.5, and on_leave runs after the terminal sample. Forward, backward and immediate seeks reconcile every crossed boundary. Listener priority is descending, declaration order breaks ties, consume only stops later handlers for that event, async handlers do not block the frame and errors are forwarded as short:error.

Playbill primitives have distinct responsibilities:

  • Track: deterministic continuous sampled state.
  • Clip: behavior active over an interval.
  • Cue: a point effect reconciled while seeking.
  • Shot: camera or framing selection.
  • Mark: a navigable destination. The default five marks are the boundaries of four stages.

Sinapse conductor

A Short with conduction uses one real @iandara/sinapse instance for all four stages. Aldovisual installs exactly eight global action listeners and routes them through one Conductor; it does not churn Sinapse listeners when the active stage changes.

Section Action Default command
ps press next Mark
ps tap final frame of stage 4
ps hold / holding / unhold start / step / stop forward walk
ps keep / keeping / unkeep enable / active / disable auto mode
om press hard stop
om tap restart
om hold / holding / unhold start / step / stop moonwalk
si all eight actions active stage left hand
ga all eight actions active stage right hand

The default left/right feedback is a short additive side sweep and runs before custom handlers unless the hand requests feedback: 'none' or a replacement command id. Injected Sinapse instances are detached with their legend and never configured or destroyed. Owned instances enable keyboard, mouse and touch by default, are detached and destroyed by the player, and accept explicit per-input overrides. Voice, camera, orientation and gesture remain opt-in.

Reduced motion makes seeks immediate while still reconciling lifecycle. Explicit forward walk and moonwalk continue to change progress, and ornamental feedback is reduced.

Cinematic Spec

A cinematic spec is a plain object consumed by Aldovisual.

Common fields:

  • id: stable experience id.
  • event_prefix: DOM/custom-event namespace.
  • intro: optional Intro preset.
  • credits: optional Credits preset.
  • get_stage_context(progress): maps timeline progress to {progress, stage, next_stage, stage_progress}.
  • sample_camera_path(progress, reduced_motion): returns {position, target, fov}.
  • resolve_stage_visuals(stage_context): returns colors, lights and post parameters for the current stage.
  • create_ui(system_ctx): returns an UI system.
  • create_audio(system_ctx): returns an audio system.
  • create_systems(system_ctx): returns updateable systems.
  • apply_camera_drift(frame_context): optional camera offset hook.

Every system can expose:

{
    id: 'water',
    object,
    object3d: object.group,
    update: frame_context => object.update(frame_context.elapsed)
}

Stage, Camera And Visual Helpers

Use these helpers when a project has a staged narrative.

import {create_stage_context_resolver, create_stage_visuals_resolver, sample_keyed_camera_path, smoothstep} from '@iandara/aldovisual';

const stages = ['origin', 'forest', 'return'];
const get_stage_context = create_stage_context_resolver(stages);

const resolve_stage_visuals = create_stage_visuals_resolver({
    stages,
    fallback_stage: 'origin',
    visuals: {
        origin: {background: 0x050505, fog_density: 0.02, key: {color: 0xffffff, intensity: 1}},
        forest: {background: 0x123020, fog_density: 0.05, key: {color: 0xffcc88, intensity: 2}},
        return: {background: 0x050505, fog_density: 0.02, key: {color: 0xffffff, intensity: 1}}
    },
    numeric_keys: ['fog_density'],
    color_keys: ['background'],
    light_keys: {key: ['color']},
    transition_amount: value => smoothstep(value)
});

const camera_state = sample_keyed_camera_path(0.35, {
    camera_keys: [
        {stage: 'origin', position: [0, 1, 8], target: [0, 0, 0], fov: 40},
        {stage: 'forest', position: [2, 2, 4], target: [0, 0.5, 0], fov: 46},
        {stage: 'return', position: [0, 1, 8], target: [0, 0, 0], fov: 38}
    ],
    transitions: [{lift: 0.3, drift: [0.1, 0, -0.2], target_lift: 0.1, fov_bloom: 1}],
    get_stage_context
});

Useful low-level helpers:

  • clamp(value, min, max)
  • wrap(value, min, max)
  • lerp(a, b, t)
  • smoothstep(value)
  • mix_hex_color(from, to, t)
  • seeded_random(seed)

Intro And Credits

Apps should opt into the shared Iandara opening without redefining its creative details:

import {create_intro_credits} from '@iandara/aldovisual';

const intro_controller = create_intro_credits();

Storm, sound, CTA, timing, transition and credit entries are owned by Aldo, so this opening remains identical across apps. Intro, Credits and create_intro_controller remain available as the lower-level API for genuinely custom experiences.

import {create_credits, create_intro, create_intro_controller} from '@iandara/aldovisual';

const credits = create_credits({
    title: 'Return',
    lines: ['The passage closes without ending.'],
    signature: 'Iandara Ecosystem',
    action_label: 'Open again',
    entries: [
        {label: 'produced by', brand: 'iandara'},
        {label: 'orchestrated by', brand: 'ameemude', shockwave: true}
    ]
});

const intro = create_intro({
    title: 'My Experience',
    kicker: 'An audiovisual passage',
    lines: ['You remember.', 'The path opens.'],
    action_label: 'Start',
    ready_body_class: 'is-demo-ready',
    auto_play: true,
    credits
});

const controller = create_intro_controller({
    intro,
    event_prefix: 'demo',
    root_element: document.querySelector('[data-intro-screen]'),
    app_root_element: document.querySelector('[data-app]'),
    audio_url: '/audio/intro.mp3'
});

controller.start();

For an intro that loads the cinematic runtime in parallel, use ResourceLoader.boot_intro_experience. It coordinates the intro, engine creation and the complete engine.ready lifecycle, including asynchronous systems such as textures:

const {app_ready_promise} = resource_loader.boot_intro_experience({
    intro_controller: controller,
    create_engine: () => create_aldovisual({root_element, cinematic}),
    on_engine_ready: (_payload, engine) => engine.event_bus.emit('experience:visible'),
    on_error: error => show_static_fallback(error)
});

await app_ready_promise;

Systems may be plain objects or class instances. When a system exposes a ready promise, Aldo waits for it before resolving engine.ready and emitting app:ready; rejected readiness emits app:error and rejects the engine promise.

Storm Realism And Audio Sync

The intro storm is a procedural 2D scene (IntroRenderer) with physically-inspired timing:

  • Every bolt runs a faint stepped leader that crawls down the channel before the bright return stroke. visual_peak_at marks the return stroke and is the exact instant ThunderAudio uses to compute sound propagation (distance_meters / 343 m/s), so close bolts crack almost immediately and far bolts rumble seconds later.
  • Sheet lightning (intra-cloud flashes) fires on its own cadence, lights the cloud deck and reaches the audio layer as {sheet: true} strikes: muffled low rumble, no dry crack, no claps.
  • Rain is wind-driven with gusts and turbulence, and is drawn with depth-bucketed batching (three stroke calls per frame instead of one per drop).
  • A frame-budget monitor scales rain/cloud/grain counts, cloud blur and lightning glow passes down under pressure, so the storm stays smooth on weak devices.

Configure through create_intro_controller options:

const controller = create_intro_controller({
    intro,
    event_prefix: 'demo',
    storm_mood: 'tropical_heavy', // balanced | distant_rumble | tropical_heavy | dry_close_strikes | cinematic_apocalypse | gentle_clearing
    storm_seed: 'demo-intro-v1', // deterministic storm; omit for a new storm every load
    storm_quality: 'auto', // high | auto | mobile
    thunder_profile: {master_gain: 0.64, dry_crack_boost: 1.06, rumble_boost: 1.08},
    intro_debug: true // on-screen fps / bolts / sheet flashes / rain overlay
});

Storm helpers exported for tuning and tests: STORM_MOOD_PRESETS, get_storm_mood_profile, create_storm_seeded_random, LIGHTNING_DURATION, LIGHTNING_PHASES, resolve_lightning_duration, resolve_lightning_phases, get_thunder_profile, create_lightning_audio_event, get_rain_audio_profile.

Browsers block audio until a user gesture: the controller uses a two-step gate (first tap unlocks thunder/rain audio, second tap crosses into the credits). The CTA copy for both steps is configurable (storm_cta_copy, ready_cta_copy).

Studio Opening

The studio opening is the Iandara signature in front of a game, and the time the game takes to load. It reuses the same storm, rain, thunder and feathers, in a different order:

  1. Storm, held while loading. The ιαηδαπα wordmark only exists when lightning lights it. It is woven from straight filaments whose angle follows the Pena Iandara (vertical at the axis, leaning toward the ends, mirrored), and the two brand gradients run from each end to the axis. Light arrives from the side the bolt fell on and lingers like an afterimage; weak bolts reveal the trace, strong ones light the colors. A line under the mark says, in the player's language, that it is still loading. The first bolt is scheduled so the mark is always seen, however fast the game loads.
  2. The dare. When everything passed to until() has settled, a sonar ping (from echoes-generator.py) sounds and the line becomes a dare. There is no button and no "tap to continue". Any key, click, touch or gamepad button crosses.
  3. Clearing and signature. One last strike, the sky opens with a procedural echo bloom (the same echo algorithm as the ping, on a major chord), and feathers start to fall. The orquestrado por signature fades in while the feathers are pulled toward it. When it has arrived, the feathers are pushed away and the whole opening dissolves over the game. A second gesture during this act shortens the end.
import {MusicBed, create_studio_intro} from '@iandara/aldovisual/ui/studio-intro.mjs';

const intro = create_studio_intro({
    ready_sound_url: '/sound/ready.mp3',
    storm_music_url: '/sound/storm.mp3', // loops under the storm
    clearing_music_url: '/sound/clearing.mp3' // enters with the sun; without it, the echo bloom plays
}).start();
const game_music = new MusicBed({url: '/sound/game.mp3', volume: 0.16, loop: true});
intro.until(game_music.preload());
intro.until(load_the_game());
intro.progress(0.4); // optional thin progress filament, for loads that can measure themselves
await intro.finished;
await game_music.play({fade_ms: 6000}); // crosses with the clearing music, which fades out on its own

The clearing music keeps playing after the opening leaves and fades out over STUDIO_TIMING.clearing_music_tail_ms, so the game's own music can enter underneath it. MusicBed plays long files through an <audio> element (decoded in pieces, not as one buffer) with smooth fades, and resumes from where it stopped. The server must answer byte ranges for long files.

While the opening is on screen it swallows keyboard, pointer, wheel and context-menu events in the capture phase, so the game underneath never mistakes the crossing gesture for its own input. A rejected until() keeps the storm up with a failure line: a game that did not load has nowhere to go. The two signatures (uma produção de / a production by, orquestrado por / orchestrated by) and the waiting, dare and failure lines follow navigator.language (Portuguese for any pt, English otherwise). Where audio may start without a gesture (a native game window), the storm is audible from the first bolt and the ping plays on ready; in a regular browser the storm stays silent until the crossing gesture and the ping is skipped.

The opening depends only on the 2D canvas and Web Audio, so a bundle of ui/studio-intro.mjs carries none of the 3D engine.

Own the opening above the application's routes. Passing session_key: 'my-app' to create_studio_intro joins an existing controller for this document, including one that has already finished. Navigation, interrupted onboarding and unavailable local storage cannot start another presentation. replay: true creates another presentation only after the previous one finishes. Without a session key, existing callers keep their frequency policy. The legacy create_intro_controller factory accepts the same session options; a key identifies one opening composition and its controller API.

Use ResourceLoader.present(intro, preparation) after enqueuing critical resources. It starts the queue and presentation, forwards resource progress to the signal, and waits for both preparation and presentation completion, including when the presentation's session was already consumed. Queue resource IDs deduplicate pending and successful work; failed IDs can be retried. Cancellation rejects in-flight work and isolates subsequent queue generations. Task callbacks receive checkpoint() for a four-millisecond preparation slice and yield_frame() for an explicit yield.

For a covered cinematic, pass start_paused: true to create_aldovisual. Boot renders one initial frame, pauses the continuous loop, and still settles engine.ready after its asynchronous systems finish. Call engine.prepare({yield_frame, signal}) before handover and engine.resume() when revealing it. GPU preparation is reused only for the same renderer and unchanged material/texture versions; context loss and disposal invalidate it.

The default balanced storm reserves the studio's reveal strike, limits focal-cell bursts to two strokes at high quality and one at lower quality, and leaves at least 1.5 seconds between visual events from different cells. The final studio strike clears queued weather. Other mood presets remain available for intentionally intense weather. Automatic quality starts at the middle tier or below and promotes only after measured frame and drawing headroom. on_debug_update on the studio opening reports phase, fps, frame_ms, p95_frame_ms, draw_ms, density and weather counts. Hidden-document time pauses the presentation rather than accumulating overdue weather.

Unicode Catalog And Floating Messages

UnicodeCatalog turns Unicode variants into a reusable audiovisual primitive. It builds an extensible A-Z variant map, accepts custom collections, transforms strings, morphs unresolved characters, generates glyph IDs and can consume collection entries. Persistence is optional and injected, so Aldovisual does not depend on a specific database package:

const catalog = create_unicode_catalog({
    storage: {
        get: key => dbaldo.get(key),
        put: (key, value) => dbaldo.put(key, value)
    }
});

await catalog.add_collection(['☀', '☁', '✦', '✧']);
await catalog.transform_string('A origem');
await catalog.generate_id(8, {consume: true});

FloatingMessage is the cinematic, accessible consumer for short-lived screen messages. Replacements blur out, scramble through related Unicode variants and progressively resolve into the next copy. The final text is announced through a separate aria-live node, so assistive technology never receives the intermediate noise:

const message = create_floating_message(document.querySelector('[data-floating-message]'), {
    preset: 'oracle', // cinematic | oracle | terminal
    unicode_catalog: catalog,
    position: 'center'
});

message.show({glyph: true, label: 'Sinal', text: 'A passagem se abre.', detail: 'Respire antes de atravessar.'});
message.push('Esta mensagem espera a transição atual.');
message.play(['Primeiro pulso', 'Segundo pulso', 'Terceiro pulso'], {interval_ms: 3200});

It also binds directly to the Aldovisual event bus:

const binder = message.bind(event_bus);
event_bus.emit('message:show', {message: {label: 'Sistema', text: 'Portal sincronizado.'}});
event_bus.emit('message:hide');

ExperienceUi can create and bind it automatically with floating_message_selector and floating_message_config. Reduced-motion changes are propagated by the engine and resolve copy immediately without scrambling.

Backgrounds

Backgrounds follow an extensible lifecycle instead of being page-owned canvas snippets:

Background
├─ CanvasBackground
│  ├─ RainBackground
│  │  ├─ MatrixRainBackground
│  │  └─ WordRainBackground
│  └─ GlyphGridBackground
│     └─ MatrixGridBackground
└─ Silhouette
   └─ LayeredLandscapeSilhouette
      └─ ForestSilhouette

Create a registered background directly from a type or spec:

const matrix_rain = create_background('matrix_rain', {
    target: document.querySelector('[data-experience]'),
    seed: 42,
    color: '#00ff88',
    speed: 0.8
});

const matrix_grid = create_background({
    type: 'matrix_grid',
    target: document.body,
    seed: 84,
    font_size: 8
});

const word_rain = create_background('word_rain', {
    target: document.body,
    words: ['TERRA', 'RAIZ', 'FLORESTA', 'RIO', '∞'],
    seed: 21
});

Background owns mount, target observation, style, start/stop, reduced motion and disposal. CanvasBackground adds DPR-aware sizing, delta-normalized animation and snapshots. RainBackground owns lanes, drops, reset probability and movement; a visual variant only overrides drawing hooks:

class CaniveteRainBackground extends RainBackground {
    draw_drop(drop, frame) {
        const y = this.get_drop_y(drop);
        frame.context.save();
        frame.context.translate(drop.x, y);
        frame.context.rotate(Math.PI * 0.25);
        frame.context.fillStyle = '#d9e4ea';
        frame.context.fillRect(-1, -8, 2, 16);
        frame.context.restore();
    }
}

define_background('canivete_rain', CaniveteRainBackground);
const knives = create_background('canivete_rain', {target: document.body});

Static density fields belong to GlyphGridBackground, not RainBackground. They use a deterministic shuffled glyph pool and weighted color bands. MatrixGridBackground.render_to_canvas({width: 1080, height: 1920}) can render the same seeded composition at an export resolution.

Inside an Aldovisual cinematic, return one through the first-class background hook. The engine cancels its standalone loop and manages update, pause, reduced motion and disposal with the other systems:

const cinematic = {
    create_background: context =>
        create_background('matrix_rain', {
            target: context.root_element,
            quality: context.quality,
            reduced_motion: context.reduced_motion
        }),
    create_silhouette: context =>
        create_silhouette('forest', {
            target: context.root_element,
            reduced_motion: context.reduced_motion
        }),
    create_systems: context => [create_world(context)]
};

Silhouettes and layered landscapes

Silhouettes reuse the Background mount, target-observation, reduced-motion and disposal lifecycle, while keeping their own factory and semantic hierarchy. LayeredLandscapeSilhouette renders declarative SVG layers; each layer owns its fill, opacity, transform and shape list. The built-in forest is the extracted four-depth composition:

const forest = create_silhouette('forest', {
    target: document.querySelector('[data-experience]'),
    height: '38%',
    z_index: 3
});

Create another landscape by inheritance or by passing layers directly:

class MountainSilhouette extends LayeredLandscapeSilhouette {
    constructor(options = {}) {
        super({
            ...options,
            layers: [
                {
                    name: 'ridge',
                    fill: '#07100d',
                    shapes: [{type: 'path', attributes: {d: 'M0 320 L360 90 L720 320 Z'}}]
                }
            ]
        });
    }
}

define_silhouette('mountain', MountainSilhouette);
const mountain = create_silhouette('mountain', {target: document.body});

Territory Elements

aldovisual owns a simple OOP hierarchy for reusable territory elements. Apps subclass or compose these classes when they need project-specific aesthetics.

Hierarchy:

  • VisualElement
  • TerritoryElement
  • Liquid -> Water -> Lake, River
  • Solid -> Stone, GeometricStone, Rune
  • Living -> Nature -> Plant -> Tree, Araucaria, Fern, Samambaia

Factory usage:

import {Lake, Water, create_territory_element, territory_element_factory} from '@iandara/aldovisual';

class SacredLake extends Lake {
    constructor(options = {}) {
        super({id: 'sacred_lake', width: 10, depth: 7, ...options});
        this.add_tag('sacred');
    }
}

territory_element_factory.register('sacred_lake', SacredLake);

const lake = create_territory_element('sacred_lake', {position: [0, -1, -4]});

lake.apply_surface_state({
    elapsed: performance.now() / 1000,
    opacity: 0.8,
    gold: 0xb79551,
    pointer: {x: 0.5, y: 0.5, strength: 0.2}
});

console.log(lake instanceof Water); // true

Generate one texture-backed stone from the same geometric texture system used by backgrounds:

import {create_geometric_stone} from '@iandara/aldovisual';

const stone = create_geometric_stone({
    seed: 108,
    radius: 0.9,
    texture_spec: {
        layer_count: 4,
        background_repeat: 'space'
    }
});

renderer.scene.add(stone.object3d);

Procedural World Helpers

Reusable world primitives:

  • ParticleField
  • PerlinNoise
  • ProceduralTerrainWorld
  • TerrainSurface
  • WindField
  • SymbolicFeather
  • WingedFauna
  • PointerTrail
  • generate_heightmap
  • sample_heightmap
  • create_height_field_geometry
  • create_procedural_terrain_world
  • create_terrain_material
  • create_three_geometry_from_mesh_data
  • create_water_plane_geometry
  • create_ground_pattern
  • create_spiral_points
  • create_line_segments
  • create_points
  • create_polyline_segments
  • create_stage_presence_resolver
  • apply_stage_group_motion

Example:

import {ParticleField, SymbolicFeather, WindField} from '@iandara/aldovisual';

const wind = new WindField({strength: 1, direction: [1, 0.25], speed: 0.3});
const feather = new SymbolicFeather({quality: {low_power: false}});
const particles = new ParticleField({
    quality: {particle_count: 600},
    emitter_points: feather.get_emitter_points()
});

Heightfield terrain data is renderer-agnostic. Use it with the native WebGPU renderer, or adapt the generated arrays to another renderer.

import {create_height_field_geometry, generate_heightmap, sample_heightmap} from '@iandara/aldovisual';

const heightmap = generate_heightmap(129, 129, {
    seed: 77,
    scale: 7,
    amplitude: 8,
    octaves: 6
});

const mesh_data = create_height_field_geometry(heightmap, {
    size_x: 80,
    size_z: 80,
    uv_scale: 8
});

const center_height = sample_heightmap(heightmap, 64, 64);

For most apps, use the Three.js procedural world facade instead of wiring heightmaps manually:

import {create_procedural_terrain_world} from '@iandara/aldovisual';

const world = create_procedural_terrain_world({
    width: 80,
    depth: 70,
    segments_x: 96,
    segments_z: 96,
    seed: 108,
    terrain: {
        scale: 7,
        amplitude: 5,
        color: 0x5f8c54
    },
    water: {
        level: -0.35,
        opacity: 0.58
    },
    trees: {
        count: 34,
        min_height: 0.2
    },
    rocks: {
        count: 18
    }
});

renderer.scene.add(world.object3d);

function update(elapsed, pointer) {
    world.update({elapsed, pointer});
}

ProceduralTerrainWorld is built from reusable Aldovisual elements: TerrainSurface, Lake, Tree, Stone, GeometricStone and WindField. Apps can customize by passing create_element hooks for water, trees or rocks, for example to use a project-specific SacredLake extends Lake.

Geometric Textures

GeometricTexture turns the Iandara geometric background prototype into a reusable, declarative texture. It can style any DOM element and can also generate a Three.js CanvasTexture for materials.

Core exports:

  • GeometricTexture
  • GEOMETRIC_TEXTURE_PRESETS
  • create_geometric_texture
  • create_random_geometric_texture
  • random_geometric_texture_spec
  • normalize_geometric_texture_spec
  • resolve_geometric_texture_layers
  • create_geometric_texture_css
  • apply_geometric_texture
  • create_geometric_texture_canvas
  • create_geometric_texture_three_texture

Apply the Iandara stripes preset to a section, body or any container:

import {create_geometric_texture} from '@iandara/aldovisual';

const texture = create_geometric_texture({
    preset: 'iandara_stripes',
    colors: ['rgba(132,213,0,1)', 'rgba(0,91,145,1)', 'rgba(255,0,150,1)', 'rgba(255,125,0,1)'],
    angle_start: '45deg',
    angle_step: '-45deg',
    size_x_start: '10%',
    size_y_start: '10%',
    stripe_width_percent: 100,
    mix_blend_mode: 'difference'
});

texture.apply_to(document.querySelector('[data-texture-bg]'));

Update variables at runtime without rebuilding CSS:

texture.update({
    angle_start: '90deg',
    size_x_start: '14%',
    size_y_step: '3%',
    background_blend_mode: ['difference', 'screen', 'overlay', 'multiply']
});

Generate a unique texture when the app needs a one-off background. Pass seed when the result must be reproducible:

import {create_random_geometric_texture, random_geometric_texture_spec} from '@iandara/aldovisual';

const unique_texture = create_random_geometric_texture({
    seed: 108,
    layer_count: 5,
    background_repeat: 'space'
});

unique_texture.apply_to(document.body);

const reusable_spec = random_geometric_texture_spec({seed: 108});

Use the same spec in Three.js:

import {create_geometric_texture, create_geometric_texture_three_texture} from '@iandara/aldovisual';
import * as three from 'three';

const texture = create_geometric_texture({preset: 'iandara_stripes'});
const canvas_texture = texture.to_canvas_texture({width: 1024, height: 1024});

const material = new three.MeshStandardMaterial({
    map: canvas_texture,
    roughness: 0.86
});

const other_texture = create_geometric_texture_three_texture({preset: 'iandara_stripes', mix_blend_mode: 'difference'}, {width: 512, height: 512});

For plain CSS pipelines, create_geometric_texture_css(spec) returns JS style properties and texture.to_css_text('.selector') returns a ready CSS block.

Geome Art Integration

@iandara/geome is a dependency of Aldovisual: any art made with Geome (SGU lattices, Iandara stripe textures, stardust, organisms, custom programs) can be used as a texture on materials, as a live object in the 3D scene, or as a DOM background.

Core exports:

  • GeomeArtSource / create_geome_art_source
  • GeomeTexture / create_geome_texture
  • GeomeScreen / create_geome_screen
  • GeomeStone / create_geome_stone
  • GEOME_ART_PRESETS, register_geome_art_preset, resolve_geome_art_program
  • normalize_geome_art_spec, is_geome_art_source, resolve_geome_element_texture

Art Programs (Strategy)

An art program is an async (geome, spec) => {} function that composes Geome coordinate systems and drawers. Built-in presets: sgu_lattice, iandara_stripes, stardust (animated), organism (animated). Register your own without touching Aldovisual:

import {register_geome_art_preset} from '@iandara/aldovisual';

register_geome_art_preset('my_sigil', async (geome, spec) => {
    const cs = await geome.create_coordinate_system('sigil', {type: 'polar', point_count: 24, spacing: 9});
    await geome.draw_path(cs, 'spiral', 'static_path', {color: 'rgba(238,232,213,0.9)', line_width: 1.2}, true, 'art');
});

GeomeArtSource (Engine Encapsulation)

GeomeArtSource runs the Geome engine in an offscreen container and composites all its layers into one canvas. It is the only class that knows the engine; everything else depends on its small contract {get_canvas, start?, update?, dispose?} (Dependency Inversion). create_geome_instance() is a Factory Method hook for subclasses that need a custom registry or camera.

GeomeTexture (Adapter)

GeomeTexture offers the same consumption surface as GeometricTexture: to_canvas_texture() for Three.js materials, apply_to(element) for DOM backgrounds, update() to refresh animated art. Accepts an art spec, a preset name, or any custom art source object.

import {create_geome_texture} from '@iandara/aldovisual';
import * as three from 'three';

const texture = create_geome_texture({preset: 'sgu_lattice', width: 512, config: {proportion: 'golden_ratio'}});
const material = new three.MeshStandardMaterial({map: texture.to_canvas_texture(), roughness: 0.8});
texture.apply_to(document.querySelector('[data-geome-bg]'));

Territory Elements (GeomeScreen And GeomeStone)

Geome art as objects in the scene, registered in the territory factory:

import {create_geome_screen, create_geome_stone, create_territory_element} from '@iandara/aldovisual';

const screen = create_geome_screen({
    width: 4,
    height: 4,
    art: {preset: 'stardust', animate: true},
    opacity: 0.9
});
screen.set_position(0, 1.4, -3);
renderer.scene.add(screen.object3d);

const stone = create_geome_stone({radius: 0.8, seed: 108, art: 'iandara_stripes'});
const same_stone = create_territory_element('geome_stone', {radius: 0.8, art: 'iandara_stripes'});

GeomeScreen exposes Template Method hooks (create_geometry, create_material) so subclasses can change shape or shading; GeomeStone extends GeometricStone and is substitutable anywhere a geometric stone is used (Liskov), including ProceduralTerrainWorld rocks. Animated elements throttle texture refresh through update_interval (default 30 fps) inside the regular system update(context) cycle.

Warp, Rift, Horizon, Action And Take

Warp is the 3D portal system. Rift is the public alias for the video-session behavior of Warp: a portal opens a rift, the rift defines actions, and takes sequence those actions.

Direct usage:

import {create_warp} from '@iandara/aldovisual';

const warp = create_warp({
    portal_radius: 1.5,
    horizon_radius: 1.1,
    colors: [
        [255, 220, 0],
        [220, 30, 30],
        [30, 200, 120]
    ]
});

const rift = await warp.open_rift('/video/scene.webm', {
    muted: true,
    loop: false,
    on_open: current => {
        const intro = current.define_action('intro', 0, 3.5);
        const loop = current.define_action('loop', 3.5, 7);
        current.create_take('start_then_loop', ['intro', 'loop']).execute();
    }
});

rift.rate(1.15).seek(0);
warp.close_rift();

Runtime usage:

const warp = app.create_warp({portal_radius: 1.4});
await warp.open_rift('/video/portal.webm', {muted: true});

const horizon = app.create_horizon({
    camera_z_far: 40,
    camera_z_close: 5,
    video_plane_size: 16
});

await horizon.open('/video/horizon.webm', {muted: true, loop: true});

Horizon is a scroll-synchronized Three.js video plane with star/cluster ambience:

import {create_horizon} from '@iandara/aldovisual';

const horizon = create_horizon({camera_z_far: 36, camera_z_close: 4});

await horizon.open('/video/background.webm', {muted: true, loop: true});
horizon.define_action('flash', 1.2, 1.8).execute();
horizon.close();

Chyron

Chyron is the reusable lower-third / broadcast CG layer from the Iandara chyron prototype. The default AldoChyron provides the Aldovisual visual style; apps can subclass Chyron and override DOM creation or render_entry() for project-specific behavior.

Core exports:

  • Chyron
  • AldoChyron
  • ChyronStageBinder
  • CHYRON_PRESETS
  • DEFAULT_CHYRON_CONFIG
  • create_chyron
  • create_cinematic_chyron
  • create_chyron_stage_resolver
  • resolve_chyron_for_stage
  • normalize_chyron_config
  • normalize_chyron_entry

Direct usage:

import {create_chyron} from '@iandara/aldovisual';

const chyron = create_chyron(document.querySelector('[data-chyron]'), {
    preset: 'aldo',
    accent: '#3ae8b8',
    accent_secondary: '#f0a030',
    align: 'left'
});

chyron.show({
    label: 'AO VIVO',
    title: 'CUPULA DO CLIMA 2026',
    subtitle: 'Belem do Para - Amazonia'
});

Subclass when an app needs its own render strategy:

import {Chyron} from '@iandara/aldovisual';

class TravessiaChyron extends Chyron {
    render_entry(entry) {
        super.render_entry({
            ...entry,
            label: entry.label || 'TRAVESSIA'
        });
        this.root.dataset.chyronKind = `travessia-${entry.kind}`;
        return this;
    }
}

Bind a chyron to a cinematic timeline so it follows scroll:progress and stage:change automatically:

import {create_chyron, create_cinematic_chyron} from '@iandara/aldovisual';

const chyron = create_chyron(document.querySelector('[data-chyron]'));

create_cinematic_chyron({
    chyron,
    event_bus,
    entries: {
        origin: {hidden: true},
        forest: {label: 'CAPITULO', title: 'Mata', subtitle: 'Primeira passagem'},
        waters: {label: 'CAPITULO', title: 'Aguas', subtitle: 'Rio e memoria'}
    }
});

ExperienceUi can wire this without manual code when the app passes chyron_selector and chyron_copy:

create_experience_ui({
    event_bus,
    stage_copy,
    chyron_selector: '[data-chyron]',
    chyron_copy: {
        origin: {hidden: true},
        forest: {label: 'CAPITULO', title: 'Mata', subtitle: 'Travessia verde'}
    }
});

For more precise cinematic sections, pass an array with progress ranges:

create_cinematic_chyron({
    chyron,
    event_bus,
    entries: [
        {stage: 'forest', from: 0.18, to: 0.32, label: 'ENTRADA', title: 'Mata'},
        {stage: 'forest', from: 0.32, to: 0.48, label: 'DETALHE', title: 'Clareira'}
    ]
});

For full-screen story titles with an accessible navigation rail, use the composite passage facade. The engine can use the returned object directly as its cinematic UI because it implements update_progress, set_reduced_motion, get_stage_copy and dispose:

create_ui: context =>
    create_passage_ui({
        sections: [
            {stage: 'origin', glyph: 'I', kicker: 'I · Origin', title: 'The journey begins.', accent: 'begins', body: 'First passage.'},
            {stage: 'portal', glyph: 'II', kicker: 'II · Portal', title: 'Cross the veil.', accent: 'veil', center: true}
        ],
        title_options: {
            container: context.root_element.querySelector('[data-section-titles]'),
            reduced_motion: context.reduced_motion
        },
        rail_options: {
            container: context.root_element.querySelector('[data-passage-rail]'),
            reduced_motion: context.reduced_motion
        }
    });

The facade renders fixed cinematic layers, highlighted title fragments, staggered copy, optional actions and keyboard-enabled stage markers. Hidden sections become inert and aria-hidden; apps provide content and layout hooks while Aldo owns progress, motion and accessibility state. create_section_titles and create_passage_rail remain available independently for smaller compositions.

A procedural portal tied to a stage needs no video source:

const portal = create_stage_portal({stage: 'portal', linger_stages: ['entry'], position: [0, 3, 0]});

return {
    id: 'entry-portal',
    object3d: portal.group,
    update: frame => portal.update(frame),
    dispose: () => portal.dispose()
};

Stage-specific tableaux use the same system contract:

const elements = create_orbital_stage({stage: 'elements', colors: [0xff6338, 0x43b8ff, 0x8fcf55, 0xb69cff]});
const arcana = create_constellation_stage({stage: 'arcana', count: 22});
const decks = create_floating_cards_stage({
    stage: 'decks',
    count: thumbnail_urls.length,
    image_urls: thumbnail_urls,
    layout: 'cloud'
});

Each tableau exposes group, update(frame) and dispose(), and handles its own stage entrance and exit visibility. Card textures are loaded with cross-origin support and disposed with the tableau; large collections default to the 3D cloud layout.

Materials, Shaders And Rendering

Reusable rendering exports:

  • Renderer
  • PostPipeline
  • CameraController
  • WebGPURenderer
  • WebGPUScene
  • WebGPUTerrainScene
  • OrbitCamera
  • OrbitCameraControls
  • create_aura_material
  • create_water_material
  • create_webgpu_renderer
  • create_webgpu_scene
  • create_webgpu_terrain_scene
  • create_webgpu_shader_catalog
  • AURA_VERTEX_SHADER
  • AURA_FRAGMENT_SHADER
  • WATER_VERTEX_SHADER
  • WATER_FRAGMENT_SHADER
  • WEBGPU_TERRAIN_SHADER
  • WEBGPU_WATER_SHADER
  • WEBGPU_FULLSCREEN_SHADER
  • resolve_post_params
  • camera_focus_distance

Native WebGPU Terrain

The native WebGPU path is separate from the existing Three.js runtime. The default Aldovisual composition path is still Three.js (Renderer, TerrainSurface, ProceduralTerrainWorld). Apps can opt into WebGPU when the browser exposes navigator.gpu; otherwise they should keep using Renderer or a project fallback.

import {OrbitCamera, OrbitCameraControls, WebGPURenderer, create_webgpu_terrain_scene} from '@iandara/aldovisual';

const canvas = document.querySelector('canvas[data-webgpu]');

if(WebGPURenderer.is_supported()) {
    const renderer = new WebGPURenderer({canvas});
    await renderer.init();

    const scene = create_webgpu_terrain_scene({
        width: 90,
        depth: 90,
        segments_x: 128,
        segments_z: 128,
        terrain: {
            seed: 108,
            scale: 8,
            amplitude: 6,
            color_rgba: [0.34, 0.52, 0.31, 1]
        },
        water: {
            y: -0.25,
            color_rgba: [0.08, 0.28, 0.36, 0.72]
        }
    });

    const camera = new OrbitCamera({
        distance: 58,
        phi: Math.PI / 3,
        theta: Math.PI / 4,
        aspect: canvas.width / canvas.height
    });
    const controls = new OrbitCameraControls(camera, {element: canvas});

    function frame(time) {
        camera.update_projection(canvas.width / canvas.height).update();
        renderer.render(scene, camera, {time: time / 1000});
        requestAnimationFrame(frame);
    }

    requestAnimationFrame(frame);
}

The WebGPU shader catalog currently includes terrain, water and fullscreen WGSL. The API is intentionally data-oriented: WebGPUScene owns mesh data and materials, while app-specific composition still lives in the app package.

Audio And UI

Reusable UI/audio exports:

  • ExperienceUi
  • IntroController
  • IntroRenderer
  • IntroAudio
  • RainAudio
  • ThunderAudio
  • AudioManager
  • ScrollController
  • PassageAutoPlay
  • PageModeController
  • EventBus
  • IdleTaskQueue
  • ResourceLoader

Public API Policy

aldovisual should receive abstractions that are reusable across audiovisual apps. Project-specific story, copy, camera keys, colors and scene composition should remain in the app package and use these primitives.

When adding a new feature:

  1. Put generic logic in aldovisual.
  2. Keep project content in the app package.
  3. Export ESM from main.mjs.
  4. UMD exports mirror main.mjs automatically (the wrapper spreads the whole namespace); nothing to maintain in build.mjs.
  5. Add unit coverage in packages/aldovisual/__tests__.
  6. Validate the nested package through task test:unit.package -- @iandara/aldovisual.

Runtime controls

The booted runtime can be paused, resumed, inspected and captured:

const app = create_aldovisual(root, cinematic).boot();

app.pause(); // halts the rAF loop (idempotent); emits `app:pause`
app.resume(); // emits `app:resume`
app.stats(); // {fps, frame_ms, pressure, dpr, stage, progress, paused, draw_calls, triangles, systems}
app.snapshot(); // renders one fresh frame and returns a PNG data URL

snapshot() works with preserveDrawingBuffer off (the new default) because it reads the canvas right after rendering. Pass preserve_drawing_buffer: true in the options only if something else reads the canvas asynchronously.

The loop also pauses automatically while the tab is hidden (pause_when_hidden: false opts out) and on WebGL context loss, resuming on restoration. The bus emits renderer:context-lost / renderer:context-restored.

Adaptive frame budget

app.frame_budget (a FrameBudget) tracks smoothed frame time as a normalized pressure in [0, 1]. Under pressure the runtime lowers the render DPR by up to 30% (never below 0.7) and emits quality:pressure so systems can shed their own load. Disable with adaptive_resolution: false. create_frame_budget() is exported for standalone loops.

Timeline

Declarative beats bound to the 0..1 scroll progress instead of scattered listeners:

import {create_timeline} from '@iandara/aldovisual';

const timeline = create_timeline([
    {at: 0.2, do: () => warp.open_rift(url), undo: () => warp.close_rift()},
    {between: [0.3, 0.5], tween: t => portal.set_intensity(t)},
    {between: [0.55, 0.7], on_enter: () => chyron.show(entry), on_exit: () => chyron.hide()}
]);

app.register_system('timeline', timeline); // reads frame_context.stage_context.progress

{at} entries fire once when crossed forward and re-arm (calling undo) when scrolled back. {between} entries tween a clamped local t and always land exactly on 0/1 at the edges. advance(progress, context) drives it manually in tests.

AudioBed

A layered alternative to AudioManager: stems with per-stage gains, eased crossfades, and an optional analyser for audio-reactive visuals.

import {create_audio_bed} from '@iandara/aldovisual';

const bed = create_audio_bed({
    layers: {
        drone: {url: '/audio/drone.mp3', stages: {origin: 0.6, '*': 0.2}},
        birds: {url: '/audio/birds.mp3', stages: {forest: 0.8}}
    },
    crossfade_seconds: 2.4,
    analyser: true
});

// same surface as AudioManager: set_enabled(true) inside a user gesture,
// update_stage(stage) on stage changes, dispose() on teardown.
bed.sample_spectrum(); // {low, mid, high, level} in 0..1, per frame

New territory elements

  • Ovenbird (alias JoaoDeBarro, factory keys ovenbird / joao_de_barro): the monorepo's namesake — rufous low-poly bird, clay oven nest on a post, subtle head-bob in update() that respects reduced_motion.
  • Ipe (factory key ipe): a Tree with species: 'yellow' | 'pink' | 'white' | 'purple' and set_bloom(0..1) blending the canopy from foliage green into bloom — wire it to a stage or a timeline entry.

Every VisualElement has a real dispose(): children are disposed recursively and geometries/materials/maps created by the element are released, while anything the caller passed in (registered via mark_shared, done automatically for constructor-provided resources) is left alone. remove(child) is the counterpart to add(child).

Reduced motion

resolve_reduced_motion() honors the OS-level prefers-reduced-motion setting when matchMedia exists (SSR and tests keep returning false). Motion stays the default medium; pass {respect_system: false} to ignore the system preference deliberately.

Particle integration

Just like Geome, the @iandara/visualdo particle field plugs into the same art-source contract, so live particle art becomes a texture, a DOM background or a territory element:

import {create_particle_texture, create_particle_screen, create_territory_element} from '@iandara/aldovisual';

// A living painting floating in the 3D scene (transparent by default):
const veil = create_particle_screen({width: 4, height: 3, art: {config: {density: 900, zoom: 1.2}}});

// Or via the territory factory, anywhere a GeomeScreen/GeomeStone fits:
const stone = create_territory_element('particle_stone', {radius: 0.8, art: {width: 256}});

// Or straight onto any DOM element / three material:
const texture = create_particle_texture({config: {density: 600}});
material.map = texture.to_canvas_texture();

Notes:

  • ParticleTexture extends GeomeTexture and ParticleScreen/ParticleStone extend the Geome elements, so they are drop-in substitutes with identical lifecycle (throttled update_interval, ownership-aware dispose).
  • animate defaults to true (the field is live by nature); animate: false pauses the engine after boot — reduced-motion friendly.
  • spec.direct: true hands the engine canvas straight to consumers (zero-copy); the default composites through an owned 2D canvas on every update().
  • Programs follow the same Strategy registry: register_particle_art_preset(name, async (field, spec) => {...}); the built-in particle_default preset maps config.density/config.zoom/config.on onto the public field API (set_density, set_zoom, event emitter).
  • The UMD build bundles @iandara/visualdo via the same workspace alias used for @iandara/geome.

Constraints and invariants

  • "cinematic short" is the only public short-form vocabulary; names such as Short, Guise, Appearance, SceneEntity and VisualInstance are intentionally not exported.
  • Four weighted stages are mandatory for a cinematic short. Free-form cinematic descriptors remain supported and are not forced into the Short lifecycle.
  • Persisted Short definitions cannot contain functions. Register runtime behavior in StageCommandRegistry and reference it with command_id.
  • Short transport is owned by a single TransportController; never install a second PassageAutoPlay for the same experience.
  • forward_last() means the terminal frame at progress 1, including reconciled stage lifecycles and ending — not the previous mark.
  • VideoTake specializes the generic cancelable Take while keeping its video API.
  • MetamorphosisPath is built on Essence, Card, Form, Metamorphosis, PropsTable and SceneResourceManager. Its cards entries are materialized Card bodies, its target butterfly appearances are Forms on those same bodies, and reset() restores the resident Card state without reloading assets.
  • @iandara/sinapse is a runtime dependency. Aldovisual imports its side-effect-free installer and constants, never the singleton from main.mjs.
  • preserveDrawingBuffer defaults to false; use app.snapshot() for captures, or pass preserve_drawing_buffer: true.
  • The UMD wrapper spreads the ESM namespace, so every main.mjs export lands on window.aldovisual without a hand-maintained list.
  • WebGPU uniforms are per-object (dynamic offsets, 192-byte struct). Code touching uniform_buffer directly should go through write_uniforms(camera, object, scene, time, byte_offset) and ensure_uniform_capacity(count).
  • Physics in Warp rings, the portal vortex and StagePortal rings is dt-normalized: same feel at 60fps, correct at 120/144Hz. advance_vortex takes a trailing delta_seconds.

Development

task test:unit.package -- @iandara/aldovisual
task iandara-ovenbird:build

Run tasks from the repository root. The build rebuilds every Ovenbird package and writes the release artifacts under main/js, main/mjs and main/html, already named as they will be served; publishing them to the public CDN remains a separate operation.