Post

Replies

Boosts

Views

Activity

Accessing and displaying LiDAR depth data
Hello! I'm new to Swift and currently trying to get and display the distance from the lidar sensor to the middle of the screen, however, I'm having difficulty accessing LiDAR data. I'm using the sample code from: https://developer.apple.com/documentation/arkit/environmental_analysis/displaying_a_point_cloud_using_scene_depth that uses ARKit, and I believe that I should be accessing ARDepthData's depthMap property to get the distances but I'm unable to do so. Does anyone know how to do this or have any advice in general? Thanks!
3
0
1.3k
Dec ’22