admin管理员组文章数量:1406312
Environment:
- Unity Editor Version: 6000.0.037f1
- Magic Leap SDK Version: 2.6.0
- Magic Leap MRTK3 Version: 1.4.0
- OpenXR Plugin Version: 1.14
- Vuforia Engine AR Version: 10.27.3
Issue Description:
I am developing an AR application using Unity 6, Vuforia, MRTK3, and Magic Leap 2. The goal is to overlay a 2D green border precisely on a QR code (Image Target) detected by Vuforia. However, I am facing a consistent issue where the green border does not align correctly with the QR code.
- The green border appears significantly to the left of the QR code instead of being centered on it.
- When moving or rotating the QR code while wearing the Magic Leap 2, the green border follows the motion perfectly, meaning that tracking works but with an offset.
- Other UI elements, such as a HUD info panel (which is a Canvas in Screen Space - Camera), display correctly and remain in place as expected.
Setup Details:
- The green border is a 2D sprite image, not a Canvas.
- The green border is a child of the detected QR code (Image Target).
- MRTK XR Rig is used, with Vuforia’s AR camera script attached to the main camera.
- Only one camera is used in the setup.
- Vufoira Extended Tracking is enable
What I Have Tried So Far:
- Changing the Image Target’s Physical Size
- The actual printed QR code size is 5cm × 5cm (0.05m in Unity units).
- Tested with different sizes (1m, 0.3m, etc.), but the offset issue persists.
- Resetting Transforms
- Set all objects to (0,0,0) in local space.
- Ensured Image Target scale is (1,1,1).
- Testing with 3D Objects
- Added a 3D cube on the Image Target to check if it was a 2D-specific issue.
- The cube also appears offset, meaning the problem is not limited to 2D sprites.
Request for Help:
Has anyone encountered a similar offset issue when working with Vuforia Image Targets on Magic Leap 2?
Would appreciate any guidance on how to properly align AR elements so that they appear exactly on top of the detected image target!
Thanks in advance!
本文标签: unity game engineMagic Leap 2Image Target Misalignment Issue with Vuforia amp Unity6Stack Overflow
版权声明:本文标题:unity game engine - Magic Leap 2 - Image Target Misalignment Issue with Vuforia & Unity6 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744987638a2636186.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论