Skip to content

visuals transforms

Aisjam edited this page Nov 15, 2026 · 1 revision

Spatial transform destinations

Home · Section index

Working manual · 0.0.1-alpha · source snapshot 16 November 2026

The existing two VFX generators, tracker matrix automation, ParameterMapping, seeded Perlin utility, CPU SPACE projection, glyph rendering and track compositor are reused. The former destination range 00-07 had no shared spatial transform or routing context. This extension adds one portable destination registry and one evaluated transform per Engine; SDL plane rendering stays in render/VIS.

Controls

The 16-cell matrix is unchanged. A on PC4 or PD4 opens the existing controller selection overlay: PARAMETERS (00-07), POSITION (08-17), ROTATION (18-27), SCALE (28-44), DEFORMATION (45-62). A selects; B returns. X on PC1/PC4 or PD1/PD4 opens source, lane, depth, inversion, tracker automation, mode, neutral offset, clamps, route enable and pivot X/Y/Z. Only valid routing modes are offered. The context shows the selected destination and model/plane fallback. Editing remains in VIS.

Evaluation and spaces

VFX 1 then VFX 2 evaluate once per visual frame. Saved parameters are immutable inputs; effective direct parameters and 63 transient contributions are separate. Additive sums signed contributions; Offset adds a baseline displacement using the neutral-offset setting. Replace discards earlier contributions to that destination. Multiplicative scales direct parameters by 1 + signal; transform scales combine in log space. Angles and enumerations cannot multiply. Inversion changes signal sign before the neutral offset and configured clamp. Signal bounds are -1 to 1. Destination metadata describes normalized translation/angle/curvature controls, positive final scale bounds and discrete algorithm bounds; mappings perform the conversion. Basic axis rotations map full input to pi radians. Scale is exponential and clamped to 0.125-8, with no negative or zero singularities.

Algorithm 00 is Replace only, quantized to 1-42 with a 0.65-index hysteresis band and 150 ms candidate dwell. Its macro labels follow the effective algorithm. Algorithm changes reset that algorithm's simulation while preserving the VFX and transform frame. Position/rotation/scale do not rebuild the algorithm.

Transforms use model-local coordinates for SPACE and a centred layer plane for CELL/MOVE/MASK. Positive X is right, Y down, Z depth; existing SPACE camera projection remains unchanged. Local deformation, scale, fixed Euler X/Y/Z rotation, then translation are applied before projection. Pivot defaults to zero and applies to all local operations. Rotation Orbit moves around the external pivot (origin.x + 1, origin.y); it does not spin the object. Position Orbit/Spiral use signal as signed radius and phase, with the configured pivot contribution weighted by absolute signal so neutral input remains identity. Spiral adds depth movement. Wave X travels in X and displaces Y; Wave Y displaces Z; Wave Z displaces X. Noise and jitter reuse seeded coherent Perlin noise. Melt varies spatially.

Pulse follows its source immediately; Breathe smooths it with a 300 ms time constant. Elastic uses a bounded analytical damped spring. Spin integrates elapsed seconds, wrapped to one turn. Runtime phases remain continuous across transport pause/start and BPM changes; song-derived VFX timing still uses the shared signals. Project loading, seed changes and authored algorithm resets start runtime phases afresh. These transient phases are intentionally not saved; replay requires the same seed, inputs and elapsed-time history. Per-update elapsed time is capped at 250 ms.

Capabilities, cost and fallbacks

SPACE 21-31 transforms real generated positions and mesh sample points before projection, preserving glyph atlas/mesh-cell sampling. Glyph stamps remain the existing billboards. Other algorithms render through a reusable transparent plane, with nearest-filtered 160x120, 320x240 or 640x480 targets by quality. Warp meshes are 12x9, 24x18 or 32x24 quads in fixed buffers. Collapse's underlying fixed simulation grid and cached tile surface are unchanged. Matrix/trigonometric scale work is cached per frame; deformation has a bounded per-point cost. Targets allocate only on first use, renderer replacement or quality changes, outside audio processing.

2D X/Y rotation tilts the plane. Z scale/Flatten changes plane depth instead of claiming physical thickness; Flatten defaults to Z. Plane Bend Z uses Y curvature, Twist Z is a radial twirl, and Wave Z uses XY phase. Inflate uses uniform expansion. Explode uses stable radial displacement, not geometry fragmentation; the UI states this for SPACE. MASK alpha and Cut remain part of the rendered plane. The compositor applies track order and normal source-over opacity; legacy blend modes are ignored.

Persistence

VIS body schema 4 appends two route records (uint8 mode, bool enabled, float neutral, float minimum, float maximum, bool legacyZeroOff), then three float pivot values, to schema 3. CTV container 1 and CTP/CTL 46 chunk framing remain unchanged. Readers accept body schemas 1-4. Schemas 1-3 retain destination 00 as disabled through a migration flag, including automation switching between zero and direct IDs 1-7. Explicit destination selection clears that flag and adopts the new 00 Algorithm. Authored state, source, routing and pivot survive CTV/CTP/CTI saving and mutation history. Invalid/truncated state is rejected transactionally. Frozen creative v42 encoding and existing VIS publication restrictions are unchanged.

MIDI implementation remains deferred. Hardware performance on RG35XX H/H700 has not been measured; desktop verification does not establish handheld frame rate.

What should be here

Documentation still to add
Annotated current-build screenshots and a recorded controller walkthrough for this topic.

Evidence and verification

Repository sources used for this page:

  • docs/vis-transforms.md

This is a documentation/source review, not a new runtime or hardware test. Physical response, screenshots and listening examples still need verification on a recorded build.

Clone this wiki locally