[GH-ISSUE #475] F3 axes bob while walking #133

Closed
opened 2026-11-02 15:36:40 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @asprintf on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/475

Version: 2026.10.16.03, Linux, RX 6650 XT
Steps: open F3, walk or sprint with View Bobbing on.
Expected (vanilla 26.3): the F3 axes do not shake.
Actual: they bob with the camera.

Possible cause: DebugCrosshairRenderer lines (gizmos.rs
debug_crosshair) seem to be drawn with the world view
projection that includes the bob matrix (gfx.rs
view_projection). Drawing them without bob may fix it.

Originally created by @asprintf on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/475 Version: 2026.10.16.03, Linux, RX 6650 XT Steps: open F3, walk or sprint with View Bobbing on. Expected (vanilla 26.3): the F3 axes do not shake. Actual: they bob with the camera. Possible cause: DebugCrosshairRenderer lines (gizmos.rs debug_crosshair) seem to be drawn with the world view projection that includes the bob matrix (gfx.rs view_projection). Drawing them without bob may fix it.
Author
Owner

@ludovic111 commented on GitHub (Oct 16, 2026):

Thanks @asprintf, your diagnosis was right: the axes were drawn with the world projection, which includes the bob matrix. In vanilla 26.3, GameRenderer.render3dHud draws DebugCrosshairRenderer after the hand, with the HUD projection (hudFov) and no bob. #476 does the same. Measured while walking with View Bobbing on: on main the axes moved up to 40 px between frames; with #476 they stay on the same pixels while the hand bobs.

<!-- gh-comment-id:6211689530 --> @ludovic111 commented on GitHub (Oct 16, 2026): Thanks @asprintf, your diagnosis was right: the axes were drawn with the world projection, which includes the bob matrix. In vanilla 26.3, `GameRenderer.render3dHud` draws `DebugCrosshairRenderer` after the hand, with the HUD projection (`hudFov`) and no bob. #476 does the same. Measured while walking with View Bobbing on: on main the axes moved up to 40 px between frames; with #476 they stay on the same pixels while the hand bobs.
Author
Owner

@asprintf commented on GitHub (Oct 16, 2026):

You're welcome!

<!-- gh-comment-id:6211948334 --> @asprintf commented on GitHub (Oct 16, 2026): You're welcome!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#133
No description provided.