PTCInc / vuforia-engine

Bug and feedback issue tracker for the Vuforia Engine SDK
https://developer.vuforia.com
19 stars 0 forks source link

have deviation using image target on hololens2 #133

Closed begkonfrank closed 2 weeks ago

begkonfrank commented 2 weeks ago

Summarize the bug: I'm having locating deviation using image target on hololens2

Observed problem I create a image target in the scene where a white cube appear closely on the image. The test through pc camera is good but when I install it on hololens2 ,the cube will be floating above the image and will move when I move with the hololens. 20240611_132113_HoloLens

Expected result According to hololens vuforia sample, the virtual item should be sticking cloesly on the image just like I created in unity. However, the test on pc webcam is good, but have deviation on hololens.

Other observations the locating cordinates and rotations of vuforia engine will change due to the distance and angel between hololens and the image on hololens.

Reproducible steps Steps to reproduce the behavior:

  1. using unity 2020.3.48f1 and vuforia 9.6.3/9.8
  2. upload the image and set up the database and vuforia camera lisence. According to the tutial, the image target I uploaded have the same scale of the real world image, and the camera is at (0,0,0) the image is a QR code: 002
  3. the settings were as follows bulidsetting playersetting-xrsetting
  4. and when bulid to hololens you will see the floating white cube around the image 20240611_132113_HoloLens

Additional comments I've tried the hololens vuforia simple pacage(unity 2022.3.25f1 and vuforia 10.22), when I build it on hololens2, the app will open and then will have nothing in display and have no response at all. The same problem occur as long as I use unity 2022.3.25f1 and vuforia 10.22 but that's another problem.

ptc-thesbyro commented 2 weeks ago

Hi @begkonfrank,

Note that we no longer support Vuforia Engine 9.8 or earlier. We only assist with issues found in the 10.x and later.

In general, offset issues are caused by the Image Target not precisely matching in scale. You could try a different image and see if the offset is consistent. Check that the World Center Mode is set to Device. You can try to disable Extended Tracking to see if the offset relates to that.

You mentioned that nothing is displaying when trying the latest Vuforia HoloLens Sample. Could you verify that you added a license key to the sample project before building to your device?

Thank you,

begkonfrank commented 2 weeks ago

Thank you for your help, I'll try them tomorrow.

To answer your question, I've added the license key to the project. The hololens vuforia sample can still work perfectly on pc camera, but not on hololens2.

begkonfrank commented 2 weeks ago

I've tried all the methods yet still have deviation, however by locating mutiple times, it is sufficient enough for me. So I'm closing this issue and will explore vuiforia 10.22 later.