Repository navigation
fix(xr): opaque, depth-tested panels so content behind never reads through - #68
Merged
Merged
Conversation
…rough Info cards drew every surface with depthTest:false, and A-Frame 1.7.1 draws transparent objects in DOM order rather than by distance, so virtual screens and the guide (appended later) painted over a card in front of them and the two texts interleaved (audit PANELS-1). Panel backings were also 3-34% transparent (PANELS-2), clicks passed through cards to the Share button behind them (PANELS-4), and the idle status line was 1.4 m wider than its screen (PANELS-6). - common tooltip: no depthTest:false; opaque background that carries the raycaster class (opt-out with raycastClass: ''). - dependency-graph path chip, virtual-screen frame, screen manager list, guide, mapping panel, comparison card and evolution overlay: opaque. - virtual-screen status width = frame width - 0.3. - tests: tooltip material/raycast assertions, a scan that forbids depthTest:false in every runtime and pins the opaque backings; the screen chrome characterization re-recorded (only the frame material and status width differ). Verified headless with real A-Frame: the card now hides the screen behind it and the ray's first hit is the card. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FkKtAtQus8TVjhG9bhytC
…(Windows CI) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FkKtAtQus8TVjhG9bhytC
This was referenced Nov 25, 2026
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.
Requested by Adrián · project thread
Summary
Fixes the bug in the maintainer's screenshot: opening a directory's info card in front of a virtual screen or the guide mixed the text of both panels. Story S1 of the XR review epic; audit findings PANELS-1, 2, 4 and 6 (
docs/xr-audit/panels.md, PR #67).Cause. The info card drew every surface with
depthTest: false, and A-Frame 1.7.1 draws transparent objects in DOM order rather than by distance (sortTransparentObjects: false). Virtual screens and the guide are appended to the end of the scene, so they were drawn after the card and painted over it; only the card's own glyphs wrote depth, which is why the texts interleaved.Changes
codexrCommonRuntime.js): nodepthTest: falseon any surface; the background is opaque and carriesbabiaxraycasterclass, so a click on the card no longer falls through to the screen's Share button behind it (opt out withraycastClass: '').[1.2.1]→ Fixed entry (behaviour change, as agreed for this epic).Test plan
npm test(typecheck, lint, compile-tests, unit): 1068/1068.test/analysis/xrPanelLayering.test.cjs: forbidsdepthTest: falsein every shipped runtime and pins the opaque backings; new tooltip test incodexrCommonRuntime.test.cjs(materials + raycast class).virtualScreenRuntime.test.cjsre-recorded; I diffed the old and new transcripts and the only changes are the frame material and the status width.test:xr-harness,test:xr-mode-harness,test:project-evolution-harness,test:xr-immersive-harnessgreen.Generated by Claude Code