triode

Scene Graph Guide

The Playground accepts JSX scene graphs. Nest geometry and material under a mesh, and group objects under a <group> when they share transforms.

osc(8, 0.1, 0.8).out(o1);
renderScene(
  <mesh>
    <boxGeometry />
    <TriodeMaterial signal={src(o1)} />
  </mesh>,
  o2,
  { cameraPosition: [2, 2, 3], controls: true },
);
src(o1).layer(src(o2)).out(o0);
render(o0);

The signal on the box samples the live texture at o1. The composite samples the pattern and the transparent scene layer. render(oN) changes the display while each destination continues drawing in order.

Use useFrame for scene animation. Keep the type, key, parent and geometry arguments stable for compatible edits to a direct ref-bound mesh. Use Clear Scene to remove one scene and keep its camera and the other outputs.

The scene and camera helpers from d8a4d2c are available through the original sketches in the pinned archive.

Source docs/concepts/scene-graph.md