You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Enter AR Button Causes Renderering Issues With Markers Resulting In Offset Positions, And AR Markers Move When Headset/Camera Changes Position
#298
Open
loganknecht opened this issue
Oct 19, 2023
· 0 comments
Really love your library! Thank you so much for making it
Environment
Magic Leap 2
Helio Browser
Remote Debugging via Chrome
Expected Behaviour
I expect AR Markers to render correctly where the AR Marker is.
The Problem
I am using a Magic Leap 2 headset to test WebXR development.
I am encountering an issue where AR Markers are being incorrectly rendered when I am in AR Mode after selecting the Enter AR Mode button. This is when the web browser is expanded into a full screen mode.
The issue is that when I am rendering my scene outside of AR mode, the markers are correctly translating and placed correctly in world space. It's perfect. There are no complaints.
However when I enter AR Mode my markers are incorrectly placed and offset in the opposite direction of my camera movement. I have no idea why this is.
Demo Video
I have created a video here to demonstrate the issue
I have reason to believe that there is something going on in AR Mode that is causing the rendering to get messed up with the camera itself.
I don't know why, or how.
Are there settings that I need to be mindful of when entering AR Mode?
Work Around Request
Is there a way to emulate AR Mode without using your library? I have a sneaking suspicion if I were able to do AR Mode in a different approach I might see the correct behaviour.
The text was updated successfully, but these errors were encountered:
Hello!
Really love your library! Thank you so much for making it
Environment
Expected Behaviour
I expect AR Markers to render correctly where the AR Marker is.
The Problem
I am using a Magic Leap 2 headset to test WebXR development.
I am encountering an issue where AR Markers are being incorrectly rendered when I am in
AR Mode
after selecting theEnter AR Mode
button. This is when the web browser is expanded into a full screen mode.The issue is that when I am rendering my scene outside of AR mode, the markers are correctly translating and placed correctly in world space. It's perfect. There are no complaints.
However when I enter AR Mode my markers are incorrectly placed and offset in the opposite direction of my camera movement. I have no idea why this is.
Demo Video
I have created a video here to demonstrate the issue
bad_performance_small.mp4
The Code
package.json
index.html
index.js
Code Sandbox
It is available here to reproduce
https://codesandbox.io/s/example-react-ar-js-vx2dj4
Speculation
I have reason to believe that there is something going on in AR Mode that is causing the rendering to get messed up with the camera itself.
I don't know why, or how.
Are there settings that I need to be mindful of when entering AR Mode?
Work Around Request
Is there a way to emulate AR Mode without using your library? I have a sneaking suspicion if I were able to do AR Mode in a different approach I might see the correct behaviour.
The text was updated successfully, but these errors were encountered: