F34.us
Menu

Architecture deep dive · 2 MIN READ

From Render Texture to Fixture Path

A closer look at image sampling, OPC transport, shared pattern controls, and fixture-aware visual testing.

Render once, sample for the room

In DungeonOPC, the room is rendered before it is transmitted. Unity produces a visual field through the OPC camera; a sampling component then reads colors along configured paths. Each effect can concentrate on what the room should look like while the output layer turns that image into fixture data.

From rendered space to fixtures

That boundary keeps artistic code separate from transport code. Pattern authors work with light, geometry, motion, color, and shared show controls. The output layer validates pixel counts, constructs Open Pixel Control headers and bodies, and handles practical network constraints such as splitting oversized unbuffered UDP frames into safe chunks. A visual pattern does not need to know how its pixels eventually cross the network.

Where art meets transport

Patterns create the image. Sampling and transport handle the fixture-facing work.

flowchart TD
    Controls[Shared show controls] --> Patterns[Active patterns]
    Patterns --> Camera[OPC camera image]
    Camera --> Samples[Path color samples]
    Samples --> Frames[Validated OPC frames]
    Frames --> Output[Fixture transport]

One control surface for every visual

The pattern layer follows the same separation of concerns. Existing Timeline scenes and newer procedural effects are wrapped behind common controls for activation, triggering, intensity, speed, palette, blend, and audio reactivity. A registry and orchestrator decide which primary pattern and overlays receive the current show state, so inactive visuals do not continue drifting or consuming unnecessary work in the background.

Visual testing is fixture-aware as well. The editor coverage system opens an isolated temporary scene, records a black baseline, drives each registered pattern with deterministic synthetic show state, and samples the same paths used by the output system. It evaluates exposure, path coverage, timing, trigger response, and other intent-specific metrics while retaining images as review aids. This makes the regression contract about whether a pattern reaches the intended output—not whether every future frame remains pixel-for-pixel identical.

PROJECT

More from DungeonOPC

F34.us Background Image