Hi everyone,
I’m experiencing an issue using Vuforia on Magic Leap 2, which does not occur when using an Android phone, leading me to believe the problem is specific to the Magic Leap platform.
Environment:
On Magic Leap 2:
- Unity Editor Version: 6000.0.037f1
- Magic Leap SDK Version: 2.6.0
- OpenXR Plugin Version: 1.14
- Vuforia Engine AR Version: 11.0.4
On Android Phone:
- Unity Editor Version: 6000.0.037f1
- Vuforia Engine AR Version: 11.0.4
Issue Description:
I’m developing an AR application in Unity 6 with Vuforia. The goal is to overlay a 2D green border precisely on top of a QR code (Image Target) detected by Vuforia.
This works perfectly on Android phones, the green border aligns exactly with the QR code.
However, on Magic Leap 2, the green border appears offset, it can be shifted significantly to the left, right, up, or down from the QR code. Interestingly, when I move or rotate the QR code, the border still tracks it correctly, just with a consistent offset. This suggests that Vuforia tracking is working but the alignment is off.
Other elements in the scene, such as a HUD panel (a Canvas set to Screen Space - Camera), display as expected, so it seems like the issue only affects elements positioned relative to the image target.
Setup Details:
- The green border is a 2D Sprite (not part of a Canvas).
- It is a child of the Image Target.
- Only one camera is used in the scene (the default AR camera).
- Vuforia Extended Tracking is enabled.
- I’ve tried both 2D and 3D GameObjects, the offset persists.
Request for Help:
Has anyone encountered similar alignment issues with Vuforia Image Targets on Magic Leap 2?
Any suggestions on how to resolve this or properly align AR elements to appear exactly on top of the detected target would be greatly appreciated!
Thanks in advance!