Skip to content

Camera suddenly changes it's position and rotation after some time in WebXR but not in model-viewer's WebXR #4484

Discussion options

You must be logged in to vote

Thanks for the hint! I actually found what resolves the issue in this file. But it was not what I expected.
So if anyone having the same problem. Solution for me was to just add 'light-estimation' to the list of required features while starting the new WebXR session:
navigator.xr.requestSession("immersive-ar", { requiredFeatures: ['light-estimation'] });
It seems that without this feature, scanning isn't good enough to produce a valid result right away, so the camera repositions itself after some time to match the new belated data.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@SuperCaptainWOW1
Comment options

Answer selected by SuperCaptainWOW1
@elalish
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants