Skip to content

Keep Xray markers out of OBS Game Capture on Windows - #1

Merged
AuronNetwork merged 1 commit into
mainfrom
feature/stream-mode
Oct 15, 2026
Merged

AuronNetwork merged 1 commit into
mainfrom
feature/stream-mode

Conversation

@AuronNetwork

@AuronNetwork AuronNetwork commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Xray markers were drawn into Minecraft's framebuffer and therefore appeared in OBS Game Capture. Add an optional Insert → Streaming → Stream mode toggle that draws them in a separate transparent Windows window, preserving a clean game frame while showing local highlights.

The click-through overlay verifies Windows capture exclusion before showing, follows the game's client area, and hides on stale frames, lost focus, menus and HUD hiding. Native failure suppresses markers rather than drawing them into the game. The feature defaults OFF and requires Windows 10 version 2004+/Windows 11 in windowed/borderless mode; menus, zoom and Fullbright remain captured. JNA is supplied by Minecraft, with no extra native binary bundled.

Validation for Minecraft 26.3:

  • All 12 unit tests pass.
  • Full isolated client tests pass without shaders and with Iris 1.11.6, Sodium 0.9.2 and Complementary Reimagined r5.9.3.
  • Actual OBS 32.2.2 Game Capture shows all four marker colors in normal mode, exactly zero while Stream mode is ON, and all four again after switching OFF. The native GDI buffer retains the marker colors while capture affinity stays0x11.
  • Existing filters, zoom/Fullbright restoration, menu/mouse/slider, singleplayer combat damage, settings and world lifecycle checks pass.

See TESTING.md for boundaries. Other capture methods and live Twitch broadcasting were not tested.

@AuronNetwork
AuronNetwork merged commit 1fb0067 into main Oct 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant