Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Merge point clouds

Discussion in 'Handheld AR' started by ST_ProductVIz, Jan 20, 2019.

  1. ST_ProductVIz


    Nov 29, 2017
    Hi all,

    I use the AR foundation package and try to collect the point clouds i get from the ARPointCloudManager. Therefor, I subsribe to the pointCloudUpdated event and save the points to a global cloud every time an update is raised. Is this the right approach to get a global point cloud or am I something missing here?

    According to, it was suggested to add an anchor to each individual point cloud to take into account later pose refinements. Would this still be necessary when using the AR foundation package?

    Code (CSharp):
    2.     void Start()
    3.     {
    4.         pointCloudManager.pointCloudUpdated += PointCloudManager_pointCloudUpdated;
    5.     }
    7.     private void PointCloudManager_pointCloudUpdated(ARPointCloudUpdatedEventArgs obj)
    8.     {
    9.         var points = new List<Vector3>();
    10.         obj.pointCloud.GetPoints(points);
    11.         globalCloud.AddRange(points);
    12.     }