Add OBS Spout render packet bridge

This commit is contained in:
Meta Vens 2026-05-18 16:08:14 +01:00
commit 63606980e3
13 changed files with 4021 additions and 11 deletions

View file

@ -30,3 +30,4 @@
{"ts": "2026-05-18T14:50:58+00:00", "type": "verification", "status": "partial", "note": "Audio profile updated for actual distributed rig: local Focusrite shielded cardioid and neighbor Focusrite shotgun are dialogue anchors; Kiyo/PS Eye mics are spatial/context sources. Local PortAudio/WASAPI probe: Scarlett input accepts 48 kHz and rejects 96 kHz; Scarlett output accepts 44.1 kHz and rejects 48/96 kHz, so ASIO/native Focusrite access must be checked before high-rate calibration."}
{"ts": "2026-05-18T14:55:13+00:00", "type": "decision", "status": "ok", "note": "Audio field live output may use bounded buffering: latency is acceptable while delay/SRO estimates settle, but cache depth must converge toward real-time. Core audio code now has testable seams for buffers, latency policy, injectable capture/alignment/encoder/sink ports, and pipeline orchestration."}
{"ts": "2026-05-18T14:57:32+00:00", "type": "decision", "status": "ok", "note": "Sensor-fusion sidecar starts with semantic observation authority: calibrated cameras plus timestamped 2D marker observations triangulate into cached 3D point claims, then lower to PLY/brush/splat packets. Capture adapters and render lowerings stay outside the pure fusion core so unit tests can inject synthetic cameras, frames, and observations."}
{"ts": "2026-05-18T15:07:24+00:00", "type": "decision", "status": "ok", "note": "OBS visualization boundary: LocalCastBridge should emit typed render-frame packets from the sensor-fusion cache; Aquarium Engine should consume them, render points/brushes/splats to a GPU render target, and publish that texture as Spout sender 'LocalCastBridge Point Cloud'. Render packets carry visual presentation and audio-alignment timestamps so latency can converge with the ambisonic output timeline."}

View file

@ -97,7 +97,7 @@ research:
before adding RGB projection or Gaussian splat rendering. For a
Dreams-like volumetric brushstroke look, keep the world model as truth and
lower semantic scene claims into cached brush/splat packets under budget.
gpu_fusion_splatting:
gpu_fusion_splatting:
summary: research/gpu-fusion-splatting/summary.md
bibliography: research/gpu-fusion-splatting/bibliography.md
key_decision: >
@ -106,6 +106,15 @@ research:
GPU-shaped observation and brush packet buffers, and CUDA/Vulkan/D3D
splat rendering with minimal readback. CPU owns orchestration and
semantics; kernels do not own calibration truth.
spout_obs_bridge:
summary: research/spout-obs-bridge/summary.md
bibliography: research/spout-obs-bridge/bibliography.md
key_decision: >
OBS should receive a named Spout2 shared texture from Aquarium Engine,
not desktop capture or file polling. LocalCastBridge emits typed
render-frame packets with source timestamps, intended presentation time,
audio-alignment time, target size, Spout sender name, and point/brush
claims. Aquarium owns GPU rendering and Spout publication.
sensor_fusion_architecture:
summary: docs/sensor-fusion-architecture.md
key_decision: >
@ -156,14 +165,21 @@ current_status:
timestamped 2D observations, DLT triangulation, reprojection/confidence
gating, a TTL track cache, and PLY point-cloud export; adapters own
FFmpeg/raw-frame ingress; `scripts/sensor_fusion.py fuse-file` can turn an
observation file into a sparse PLY. Unit tests inject synthetic cameras and
frames so the core does not depend on live camera drivers.
observation file into a sparse PLY. The render bridge now lowers cached
points into `localcast.sensor_fusion.render_frame.v1` packets carrying
source time ranges, intended visual presentation time, audio-alignment
time, target render size, Spout sender name, and point draw metadata for
Aquarium/Spout. Unit tests inject synthetic cameras and frames so the core
does not depend on live camera drivers.
next_action: >
Capture real ChArUco intrinsics/extrinsics for the PS3 Eyes and Kiyos,
replace `config/sensor-fusion.example.json` placeholder transforms with a
local `config/sensor-fusion.json`, then add a detector adapter that turns
FFmpeg PS3 Eye frames into marker `Observation2D` records for the fusion
core. In parallel, create local `config/audio-field.json`, confirm local
core. Then add an Aquarium Engine consumer for render-frame packets that
renders cached points/brushes into a GPU render target and publishes it as
Spout sender `LocalCastBridge Point Cloud` for OBS. In parallel, create local
`config/audio-field.json`, confirm local
Kiyo/PS Eye/Focusrite device matches, confirm the neighbor Focusrite
shotgun capture/transport path, replace placeholder mic/speaker geometry
with measured world coordinates, then build the delay/SRO alignment stage