arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

ARKit confidenceMap

Open trandzik opened this issue 5 years ago • 2 comments

Please is it possible to access confidenceMap (provided by ARKit) whithin arfoundation? I have been wondering whether it would be possible to build something similar to point cloud demo from this video - at 21:27. It seems like confidenceMap is used to determine distribution of point cloud. Thanks.

trandzik avatar Dec 17 '20 12:12 trandzik

See AROcclusionManager.environmentDepthConfidenceTexture for the GPU texture. https://docs.unity3d.com/Packages/[email protected]/api/UnityEngine.XR.ARFoundation.AROcclusionManager.html#UnityEngine_XR_ARFoundation_AROcclusionManager_environmentDepthConfidenceTexture

And AROcclusionManager.TryAcquireEnvironmentDepthConfidenceCpuImage to access the texture on the CPU. https://docs.unity3d.com/Packages/[email protected]/api/UnityEngine.XR.ARFoundation.AROcclusionManager.html#UnityEngine_XR_ARFoundation_AROcclusionManager_TryAcquireEnvironmentDepthConfidenceCpuImage_UnityEngine_XR_ARSubsystems_XRCpuImage__

todds-unity avatar Dec 17 '20 17:12 todds-unity

I must have missed that in the docs, thank you very much.

trandzik avatar Dec 17 '20 17:12 trandzik