Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.03k stars 1.13k forks source link

[Bug] Image Tracking: Position slightly off #807

Closed stetttho closed 3 years ago

stetttho commented 3 years ago

Unity bug report case number 1333921

Describe the bug The overlay image is slightly off to the bottom and to the right.

To Reproduce Can be reproduced with the sample project 'BasicImageTracking' .

Expected behavior Overlay image should be placed exactly on the trigger image

Actual behavior slightly offset to the right and bottom. As a temporary fix, I use this:

    // temporary fix for slightly off position
    position += overlayGameObject.transform.right * 0.00035f;
    position += overlayGameObject.transform.forward * 0.00035f;

Smartphone (please complete the following information):

tdmowrer commented 3 years ago

This doesn't look like a bug -- it looks like a very slight (0.35 mm) error in detection. That seems within expected tolerance to me. What use case do you have that requires accuracy higher than that?

stetttho commented 3 years ago

I think that might have something to do with the scaling of my prefabs, have not tested my temporary fix with the sample project. It is definatly more than 0.35mm, probably 2-3mm as far as I can tell. So it is noticable and parts of the trigger image can always be seen behind the overlay.

I also wouldn't call it a bug if it wouldn't always be the same offset. But as it is (tested not only with my 2 devices but also by other iOS users) I think it would be worth looking into it.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.