EnoxSoftware / HoloLensWithOpenCVForUnityExample

HoloLens With OpenCVforUnity Example (Support for Hololens1 and Hololens2)
MIT License
266 stars 50 forks source link

ARGameObject position is incorrect when switching from MRTK2 to MRTK3 #59

Open wangyanmeego opened 2 months ago

wangyanmeego commented 2 months ago

Hi,

I am using the HLArUcoExample from this repository on a HoloLens 2 device. The project works perfectly with MRTK2, and the AR objects are recognized and positioned correctly. However, when switching to MRTK3, the ArUco marker recognition still works, but the ARGameObject's position is incorrect. Specifically, the ARGameObject keeps moving to my feet instead of the intended position.

Has anyone encountered this issue, or is there a recommended solution for MRTK3 compatibility?

Thank you!

EnoxSoftware commented 1 month ago

Hi, We too are trying to migrate from MRTK2 to MRTK3 The way to fix the misalignment of the ARGameObject's position in the ArUco example is to change the Y in the “Camera Offset” position in the “XR Rig” from 1.6 to 0. We will release an example package for MRTK3 soon.