When I load the ARScene and use ARjs to scan a marker I am able to render a box, however when I move my camera/headset around the offset of the marker moves in opposite directions and goes out of scene.
I have tried to make a code sandbox here, but for some reason it can't find the @artcom/react-three-arjs in the local library or something?
If you copy and paste it locally it should work just the same.
Relevant Information
I'm using a react library called @artcom/react-three-arjs that's a very basic wrapper of ARjs for React, so the syntax looks different, but it's the same.
Bug
Current Behaviour
When I load the ARScene and use ARjs to scan a marker I am able to render a box, however when I move my camera/headset around the offset of the marker moves in opposite directions and goes out of scene.
I have tried to make a code sandbox here, but for some reason it can't find the
@artcom/react-three-arjs
in the local library or something?You can find the code here https://codesandbox.io/s/vx2dj4
If you copy and paste it locally it should work just the same.
Relevant Information
@artcom/react-three-arjs
that's a very basic wrapper ofARjs
for React, so the syntax looks different, but it's the same.Magic Leap 2
deviceRelated Code
The code for it is this
Expected Behaviour
I am expecting the marker to show up, in the center of the mark, and not move.
However when it renders it's offset and moves when my camera/headset moves.
I think this may be related to #543
Demonstration
Please see the images below. The
![image](https://github.com/AR-js-org/AR.js/assets/1308524/08050e52-c22f-40ee-96c5-4e5547244bc6)
pink cube
is the marker.