Camera suddenly changes it's position and rotation after some time in WebXR but not in model-viewer's WebXR #4484
Answered
by
SuperCaptainWOW1
SuperCaptainWOW1
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
SuperCaptainWOW1
Oct 11, 2023
Replies: 2 comments 2 replies
-
Huh, it's been awhile since I wrote that code, but I'm glad it's working at least! Maybe you'll find your answer in here? |
Beta Was this translation helpful? Give feedback.
2 replies
-
SuperCaptainWOW, please feel free to contact me. I need help. Goal: hack modelviewer. access the modelviewer through three.js to create an editor based on the modelviewer. Three.js is an important part of the project. Пожалуйста, можете связаться со мной. Мне нужна помощь. Цель: взломать modelviewer. обращаться к modelviewer через three.js, чтобы создать редактор на основе modelviewer. Three.js важная часть проекта. telegram: https://t.me/f_game_over |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.