Repository navigation
Replay 3D: FicTrac-style ball that rolls with the recorded data - #222
Merged
Merged
Conversation
- The replay core integrates the ball's orientation per FicTrac sample (ballDelta/ballStep, kinematics.js conventions: +Δheading about +Y, −forward about +Z, +side about +X; gaps/reset jumps skipped; heading wraps handled) and sends it as state.ball (quaternion) — seek-priming integrates the same path, so seeking and playing agree. - The viewer applies it and draws FicTrac-like markings in the ball shader: large black blobs + sharp-edged convex shapes (triangles, quad, pentagon, L) from a fixed seed — no texture seam, lit like before (LED glow too). - normalizeReplayState validates/carries the ball quaternion. - A reloaded 3D window re-links instead of being forgotten. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mbreiser
added a commit
that referenced
this pull request
Sep 25, 2026
Conflict: the arena_studio.html footer line — kept v0.89, refreshed the ET timestamp. tests/test-studio-replay.js pinned the footer to v0.88 (added by #222); bumped to v0.89 so the pixi test chain runs to the end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lab request: make the replay ball realistic.
ballDelta/ballStepinjs/studio-replay.js, kinematics.js conventions — yaw with heading changes, roll under forward and side steps; the tethered fly stays fixed facing the display). Gaps (>250 ms) and FicTrac-reset jumps are skipped; heading wrap at ±π handled. Sent to the viewer asstate.ball(quaternion, validated innormalizeReplayState). Seek-priming integrates the same path, so seek == play (tested).Tests: rotation directions (forward, right turn, right side-step, forward along a 90° heading), gap/reset skipping, heading wrap, seek-vs-play ball equality, quaternion normalization in the viewer protocol.
pixi run testgreen. Browser-verified in Chrome on Shubham's fu68da7q run.🤖 Generated with Claude Code