Create test pattern
create_test_patternGenerate a calibration test-pattern network for projector alignment, LED mapping, or camera registration. Supports grid, crosshair, color bars, ramp, or circle-grid patterns with configurable resolution, overlay number/label, and colors.
Instructions
Generate a projector calibration / alignment source — a standalone test-pattern network that every media server ships and tdmcp was missing. Builds a baseCOMP containing a GLSL TOP with a baked-in static pattern (grid, crosshair, SMPTE-ish color bars, horizontal ramp, or circle-grid), optional text/number overlay (for per-projector ID), and a Null TOP as the stable output handle. The shader is generated per pattern and baked into the payload — no custom uniforms or live bindings needed. Use the output as a routing source during projector alignment, LED mapping calibration, or camera registration. Pattern, resolution, divisions, overlay number/label, and colours are all configurable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_path | No | Parent COMP path to build inside (e.g. '/project1'). The container is created here. | /project1 |
| name | No | Base name for the container COMP that wraps the pattern network. | test_pattern |
| pattern | No | Pattern type: grid = even line grid; crosshair = centred cross + corner marks; color_bars = vertical SMPTE-ish colour columns; ramp = smooth horizontal grey ramp; circle_grid = repeated concentric ring tiles. | grid |
| width | No | Output width in pixels (must be > 0; e.g. 1920, 2560, 3840). | |
| height | No | Output height in pixels (must be > 0; e.g. 1080, 1440, 2160). | |
| divisions | No | Number of grid cells across the frame for grid and circle_grid patterns (must be >= 1). Ignored by other patterns. | |
| output_number | No | Projector / output ID drawn as a large label in the lower-right corner (must be >= 0). 0 = no number. | |
| label | No | Optional extra caption text overlaid bottom-right (e.g. 'LEFT', 'CAM 2'). Empty = none. | |
| line_color | No | Pattern line colour as [R, G, B] in 0–1 range. Default is green [0, 1, 0]. | |
| bg_color | No | Background colour as [R, G, B] in 0–1 range. Default is black [0, 0, 0]. |