I've gotten AR Foundation up and running with ARKit. I'm able to spawn planes and see them visualized as well as the Cloud Points. My question is how do I now access that point cloud data and use it? I only see the one webpage that is a get started guide for AR Foundation. Does the ARKit for unity documentation apply to ARFoundation too? Or not really? I've really enjoyed AR Foundation thus far, just looking for more documentation....
Yes, there is a shortage of samples and documentation at the moment, but we're working on it. You can look at the source for ARFoundation to see how it handles point clouds etc. See https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@1.0/manual/index.html and ARPointCloudManager and ARPointCloud source files by double clicking on them in the Editor.
Thanks @jimmya , the classes themselves appear to be pretty simple, so that's helpful. Can you describe the Point Cloud confidence values? Is this a normalized 0 - 1 value? Or something else?
Every public property and method of the API is documented (the "Scripting API" link is easy to miss). This might be easier than digging through the code: https://docs.unity3d.com/Packages/c...gine.XR.ARFoundation.ARPointCloudManager.html
Add an event handler to ARPointCloudManager.pointCloudsChanged. https://docs.unity3d.com/Packages/c...dation_ARPointCloudManager_pointCloudsChanged
Hi, As mentioned in AR Point Cloud Manager, each feature point have a unique identifier, so is this unique across different AR sessions? I wanted to use this identifier to build a custom localization solution
@niksasaw, no, these ids will be different for new AR session. What you are looking for is ARWorldMap. Here is an official example of using it: https://github.com/Unity-Technologi...review/Assets/Scripts/ARWorldMapController.cs
Thanks for the response, Yes I know about ARkit's ARWorldMap feature, but I'm looking into something cross-platform so I can use in Android as well
I'm going to try out ARWorldMap on iOS. Isn't Cloud Anchor from Google ARCore the counterpart to ARWorldMap? Are you planning to make available those APIs as well? Cheers and thanks a lot for your work! ✌
I didn't test it myself, but it seems like you can run ARCore Cloud Anchors on iOS with this plugin (NOT AR Foundation): https://github.com/google-ar/arcore-unity-sdk As far as I understand it, Google Cloud Anchors is very similar to ARKit ARWorldMap, but Google Cloud Anchors also saves your anchors to the cloud.