-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebXR mode broken on Vision Pro with A-Frame 1.6.0 #5530
Comments
Sadly not in possession of an AVP to test. @dmarcos can you reproduce the issue? The strange thing is that even when meshes are sorted incorrectly, the depth buffer should still prevent outcomes like this. For completion sake:
Can't immediately think of a change in A-Frame that could cause this. I suspect that it's due to a change in Three.js. If you could A stab in the dark, but could you try adding |
I have one error appearing in the console but I don't know if it's related. I only observed the issue with the gltf-model but I did only few tests. AVP_RPReplay_Final1716983607.mp4I tried |
Can you try a different simpler gltf model? Could be the shaders / materials of that model |
only idea is the soring change from #5341 |
From the video it's clear that something is up with the depth buffer. It's as if it isn't being used, but the helmet seems fine, so perhaps it's somehow cleared/invalidated after each draw. The sorting is behaving as you'd expect, the closest objects are drawn first. Looking up most likely causes the sky to end up being drawn last, which makes the rest disappear. Someone with an AVP really just needs to do a git bisect and we'll know the exact change causing this. |
I found the commit causing the issue: a6ec417 I also did some more tests and it is not related to the gltf-model. |
@JL-Vidinoti Thanks for digging into this. That commit most likely causes the AVP to be considered mobile by A-Frame. The puzzling part is still how this in turn causes these weird rendering issues (as even on mobile devices things should just work). One thing that differs is that antialiasing is disabled by default for mobile devices. |
Good catch! It works by enabling antialiasing. |
Thanks for investigating. Much appreciated. This means that We gotta correct that so antialising is enabled by default again on AVP Gott understand why lack of antialising affects the rendering order but probably need to be handled in a separate issue. |
If that helps, there is this link that was shared on discord a few days ago to detect if you're on Vision Pro: |
Also had problems with models on Vision Pro that I didn't encounter before, wondering if it's related to Vision OS 1.2 rather than an AFrame update. |
Vision OS 2 has been released. Is this still a problem? |
Tried on Vision OS 2 today and everything worked as expected, including the initial Glitch shared to open the issue. IMHO it can be closed unless there is something else specific. |
Thanks for testing @Utopiah Closing and can reopen if necessary |
Description:
In WebXR mode (VR) using the Vision Pro, the gltf-model do not appear correctly. The ordering of the elements is wrong.
It was working fine with version 1.5.0 but the bug appears with the latest 1.6.0 version.
In browser mode, it works properly.
The issue appears in VR mode
The text was updated successfully, but these errors were encountered: