triode

Hydra User Translation Layer

Use this map when translating familiar Hydra workflows into triode.

Common equivalences

In HydraIn triodeNotes
osc(...).render()osc(...).render()Still valid for signal-only output.
src(o0) feedback flowsrc(o0) and .tex()triode can sample an output in a JSX material.
Final image chainChain or scene pipelineChain can become final output or a 3D material input.
Mostly UV-space compositionUV-space + scene graph spaceScene APIs handle geometry, camera, lights, world.
Global helper usageGlobal or non-globalmakeGlobal: false recommended for apps.

Typical migration examples

Hydra-style 2D chain:

osc(10, 0.1, 0.7).modulate(noise(2), 0.2).render(o0);

For a JSX material bridge, see the first patch.

Hydra-style global workflow in triode:

const triode = await Triode.create({ makeGlobal: true });
osc().render();

triode host-safe workflow:

const triode = await Triode.create({ makeGlobal: false });
const H = triode.synth;
H.osc().render();

Not the same

  • triode runtime internals are Three.js-based, not regl-based.
  • 3D API additions are first-class, not lightweight wrappers.
  • Some defaults differ when legacy mode is off (makeGlobal, liveMode).

Source docs/interop/hydra-equivalents.md