Here is a playground where the issue repros, only on VR. The text block is displayed correctly when looking at one half of the dome, while it renders incorrectly when looking at the other half of the dome.
Bug repro on: https://www.babylonjs-playground.com/#M0EBV0#2
On VR, the message ‘Can you read me now?’ should be displayed properly for every camera degree
This is VR on a camera angle where it doesn’t show:
We starting seeing this issue when we updated from 4.2.0-alpha.2 to 4.2.0-alpha.20.
On the playground example, the distance for the box and 2 planes from the camera is very clear and the order is correct at every moment. However the rendering doesn’t seem to be working as expected. On half of the dome, the menu renders correctly and on the other half, it doesn’t.
Yup it sounds real strange and looks like a regression. @RaananW will investigate it in the morning to understand what changed. Thanks a lot for the report.
Sorry, couldn’t find the time today. I’ll make sure to inspect that later today or tomorrow.
As I wrote on github, I believe it’s because the mesh is flipped due to the last lookAt call. Still need to figure out what changed
Sorry, i take it back - something is off:
Seems like the two eyes invert the render order. Still no solution, but working on it.
Great let me reopen the issue during this time then as it is a confirmed bug. Thanks again @RaananW
LOL you beat me on the reopen button
This PR fixed the issue (and also explains what happened) - [XR] View Matrix calculations by RaananW · Pull Request #8445 · BabylonJS/Babylon.js · GitHub So I hope alpha 21 will bring everything back to normal