Camera suddenly changes it's position and rotation after some time in WebXR but not in model-viewer's WebXR #4484
-
Beta Was this translation helpful? Give feedback.
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.
-
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.
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.