Skip to content

Feature/webxr reversed depth - #92

Merged
mattvb91 merged 6 commits into
feature/webxr-mirrorfrom
feature/webxr-reversed-depth
Nov 25, 2026
Merged

mattvb91 merged 6 commits into
feature/webxr-mirrorfrom
feature/webxr-reversed-depth

Conversation

@mattvb91

Copy link
Copy Markdown
Member

No description provided.

…er with the head

The compositor reads the depth buffer by depthNear / depthFar to correct for head movement. Read the GL way, a
reversed buffer put the far landscape at the eyes. The session gets the planes swapped, the projections the headset
then hands out are turned the GL way for three, and the eyes keep one conversion a frame however often
updateCamera runs.
The page can see its connection before the server's log line about it comes
through the pipe, which failed the guest check on a slow Windows runner
Software GL on a CI runner can draw a VR frame far slower than a desktop, so a
session that was rendering failed 'frames render through the session'
@mattvb91
mattvb91 added this pull request to stack #87 November 25, 2026 16:18
The game reads the sticks once a frame, and a Windows runner can take long
enough over a frame that a 600ms push was never seen (moved 0.00m along X)
The orbit target stood still in VR while the character walked, and caught up
10% a frame after, so on a slow runner the camera was still 25m from where
VR started (25.53m from the character)
@mattvb91
mattvb91 merged commit 72eea61 into dev Nov 25, 2026
27 checks passed
@mattvb91
mattvb91 deleted the feature/webxr-reversed-depth branch November 25, 2026 16:46
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