Using `Enter AR` Button Causes Renderering Issues With Markers Resulting In Offset Positions, And AR Markers Move When Headset/Camera Changes Position #298
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.
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
https://github.com/pmndrs/react-xr/assets/1308524/bb6343c5-ad08-43db-89fb-a766fbb8dd9f
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.