Inspiration

A football replay should let a coach or player ask: where was everyone, what passing lane was available, and what did the original cameras actually see? A fixed broadcast angle cannot answer every question. PitchTrace 3D explores a more accessible way to review a match: connect structured movement data, an interactive 3D scene, and the source recordings on one match timeline.

What it does

The working browser viewer turns match data into an explorable football replay. Visitors can play a built-in 60-second simulated match, switch between six virtual camera views, follow a player, scrub the timeline, change playback speed, and inspect skeletons. A showcase demonstrates player body types and animation. The interface supports English and Chinese.

For local workflows, the Node.js gateway accepts and validates scene submissions over HTTP, stores replay data in SQLite, distributes scene updates over WebSocket, and serves scene and media archives. The viewer supports archive replay and paused comparisons with original camera recordings aligned by exposure time, plus external HLS playback and recording export.

The macOS Edge preview provides a repeatable, generated two-camera offline example. It produces scene snapshots with provenance back to source frames. Edge includes file, RTSP, and AVFoundation inputs, exposure-time mapping, calibration, player/ball tracking, pose and action candidates, and scene/media upload and recovery paths. Field camera synchronization, model accuracy, and sustained multi-camera performance still need target-device validation.

How I built it with Kiro

I started this project on November 24, 2026, during the hackathon, and used Kiro primarily in the IDE. Kiro participated in actual implementation and refinement of the Live browser frontend, the local gateway, the v2 scene/media protocols, and the Edge Web UI. This describes its contribution scope, rather than claiming that every line in these modules was generated by Kiro.

The Edge Web UI provides a concrete development example: a Swift/Swifter HTTP server, browser monitoring interface, runtime status collection, thread-safe caching, WebSocket updates, and browser reconnection with HTTP polling fallback. Its implementation sequence is recorded in source commits from November 27, 2026. The English development record also links the actual browser, v2 scene gateway, archive replay, and exposure-indexed media commits.

The committed .kiro directory contains product, structure, technology, protocol, testing, and commit steering; Edge and Live development roles; three PostFileSave reminder hooks; and a release-checklist skill. The hooks request tests and gateway bundle regeneration. These configuration files describe the intended workflow; they are not independent CI jobs or proof that every hook executed. The revised record does not claim measured productivity gains, regression-rate improvements, or unsupported test-failure stories.

English contribution scope, source history, and configuration details: https://github.com/winixi/pitchtrace-3d/blob/main/docs/KIRO_DEVELOPMENT.md

The implementation combines Swift/SwiftPM, Python with OpenCV and NumPy, FFmpeg, Node.js with WebSocket and SQLite, and a Vite/Three.js browser viewer. This is my Frankenstein entry: stitching camera evidence, edge processing, indexed video, and a game-like 3D replay into a shared match-time experience.

Challenges and what I learned

A timestamp is not automatically an exposure time. File presentation timestamps, camera clock resets, and new stream epochs need explicit mapping before two recordings can be compared honestly. A missing ball or unknown jersey must remain unknown instead of becoming a convincing invented observation. I also learned to distinguish a compelling visualization from validated reconstruction: simulated fixtures make the pipeline repeatable, while source-frame provenance makes its output inspectable.

Keeping the gateway source, generated runnable bundle, protocol fixtures, and browser behavior in sync was another challenge. Kiro steering, focused agents, hooks, and the release checklist made those boundaries explicit.

Accomplishments and next steps

The submission includes a public interactive viewer, open-source code, English setup and testing instructions, a two-minute narrated demonstration, and a downloadable Apple Silicon Edge preview with generated sample inputs. The source is MIT licensed and retains third-party asset credits.

The public website uses simulated data; it is not a live camera feed. The video explains a planned eight-camera match-day workflow before showing the current working software. The repeatable Edge preview uses two generated camera inputs. Next steps are field validation with calibrated cameras, better reconstruction accuracy, longer target-device runs, and production authentication and streaming operations.

Try it: https://winixi.github.io/pitchtrace-3d/

Source, setup, Kiro development notes, and asset credits: https://github.com/winixi/pitchtrace-3d

Edge preview: https://github.com/winixi/pitchtrace-3d/releases/tag/edge-v0.1.0-alpha.2

Share this project:

Updates

Submission history