Log in or register to post comments

Image Tracking Misalignment

February 1, 2020 - 11:18am #1

Reproduction steps

  • Using Unity-Project-Template-2019.2..3f1 with the same Unity version
  • Imported Vuforia npm package scripts and updated to latest
  • Added image target database
  • Added imagetargetbehavior with a cube as the child
  • Pushed build to Magic Leap device
  • Image tracking appears to work but seems to be misaligned to the right by approximately 10%

Any advice on how to correct this misalignment?

 

Thanks,

Sunny

Image Tracking Misalignment

February 11, 2020 - 9:31am #7

I'm also experiencing misalignment with an image target with Unity 2019.2.20f1. Testing on my computer with a webcam everything works fine but on the Magic Leap the augmentation appears floating in front of the target about 10cm. Also moving or rotating the target affects this offset (seen form a steep angle the content is not only floating but pushed forward) which makes me think it's a projection matrix discrepancy between real world and scene space. I'm using a printed target and the dimensions have been entered correctly.

 

EDIT: Problem solved. I wasn't aware that in Magic Leap the size of the target has to match very precisely with the physical target. On iOS or Android this doesn't seem to matter as the content always scales to the size of the physical target.

Image Tracking Misalignment

February 11, 2020 - 2:48am #6

Hi,

I was able to *partially* reproduce the offset by looking at the digital copy of the image target, basically watching in on my screen.

However when I had the hard copy of the image target the offset was not visible.

The behavior is as expected, as the digital copy does not have the correct scale.

Coming back to your use-case, if you run in to the above, you will need to print the target, if not, please make sure that the scale of the image target is the same in both Unity and real life.

Thank you.

Vuforia Engine Support

Image Tracking Misalignment

February 10, 2020 - 10:44am #5

Sent you a PM, thanks!

Image Tracking Misalignment

February 4, 2020 - 11:41pm #4

Hi,

Would it be possible to get the barebones project from your side to further test it internally?

If you don't feel comfortable sharing the project here, please pm me the link for dl.

Also could you please confirm the Lumin SDK version? 0.22 or 0.23

Thank you.

Vuforia Engine Support

Image Tracking Misalignment

February 4, 2020 - 11:46am #3

The child go is aligned to zero. I also have a mesh renderer on the parent that shows the original image target. Both the mesh renderer on the parent and cube child appear to be misaligned.

Thanks,

Sunny

Image Tracking Misalignment

February 4, 2020 - 5:44am #2

Hi,

I've tested the behavior and the alignment is good for me.

Could you please check the cube in the scene and confirm that it is not off there?

Thank you.

Vuforia Engine Support

Log in or register to post comments