Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
2.99k stars 1.11k forks source link

[Bug] Point cloud and anchors floating #1006

Closed hasionerin closed 9 months ago

hasionerin commented 1 year ago

After the point cloud is detected , then shake the mobile phone , point cloud floating , sometings the point cloud will return in a few minutes, sometimes can't . i add some anchors on point cloud. anchors will floating with these point clouds. It happens more frequently on lower end devices and less on higher end . so i wonder if there is any solution to this problem . looking forward to your reply !thanks @DavidMohrhardt

andyb-unity commented 1 year ago

From our docs: AR Foundation allows you to work with augmented reality platforms in a multi-platform way within Unity. This package presents an interface for Unity developers to use, but doesn't implement any AR features itself.

Questions about point cloud tracking performance are in the domain of platform providers:

Google: https://github.com/google-ar/arcore-android-sdk Apple: https://developer.apple.com/forums/

aru1702 commented 1 year ago

After the point cloud is detected , then shake the mobile phone , point cloud floating , sometings the point cloud will return in a few minutes, sometimes can't . i add some anchors on point cloud. anchors will floating with these point clouds. It happens more frequently on lower end devices and less on higher end . so i wonder if there is any solution to this problem . looking forward to your reply !thanks

As far as I know, AR tracking always have tracking error which in result a drift is happened. Even with multiple sensor in used, it will always have in centimeters/millimeters drift from original location.

ARKit, probably ARCore too, with the ARFoundation for Unity, is using VIO method to perform this SLAM-like system, as well as the extended tracking (in some platform, they mention this terms). Brute forcing solution, I think by tracking the area first with very slow and detail, this will give the system very much enough information when the camera "looking back again" to the same scenery and environment condition. More solution, is combination of another device, like GPS-technique, to measure and estimate camera/device location outside of AR system.

For small solution, it is depending on the user situation. Whether the user must hold-steady the device so it won't shake and make tracking error, or the developer did something with the environment to create better tracking environment.

Good luck!

stale[bot] commented 1 year 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.

andyb-unity commented 9 months ago

Closing this issue as asked and answered. Feel free to re-open it if you have further questions.