godot icon indicating copy to clipboard operation
godot copied to clipboard

Get WebXR minimally working again in Godot 4

Open dsnopek opened this issue 2 years ago • 2 comments

~This is a draft PR, because it includes the changes from PR #65800 which is necessary for this to work.~

Not a draft anymore!

This includes the changes from PR #55869, which got merged into 3.x only, since it was impossible to port to Godot 4 without WebGL support (which we now have, yay!)

With the PR, WebXR will render fine on mono devices (like smartphone AR), but with stereo devices it will only render the left eye, because the 'opengl3' driver doesn't support multiview yet.

dsnopek avatar Aug 17 '22 00:08 dsnopek

I rebased this on PR #65800, which is the latest attempt to fix the rendering issues with XR on the 'opengl3' driver. I think this one is the one! ;-)

For whatever reason, this PR is no longer working on the WebXR emulator (I suspect it's something related to PR #65727) but it still works fine on an actual device.

Once PR #65800 (or its successor :-)) gets merged, this one will still be ready to go in: it accomplishes what aims to do (get WeXR minimally working) and I can fix the issue with the WebXR emulator in a follow-up PR.

dsnopek avatar Sep 14 '22 20:09 dsnopek

PR #65800 was merged (yay!) so I just rebased and re-tested this: it's still working just as well as my last comment!

This one is ready to go :-)

dsnopek avatar Sep 16 '22 13:09 dsnopek

Thanks!

akien-mga avatar Sep 20 '22 06:09 akien-mga