This was ceated to make the wwdc20 sample into a usable utility app.
Place points in the real-world using the scene's depth data to visualize the shape of the physical environment.
The old version is on the outer most folder The current version is SceneDepthPointCloud
- Basic operations (toggle scanning/sampling, toggle rgb, toggle points, clear/reset point buffer)
- Save Scans as .ply files In ASCII or BINARY formats
- Export/Delete previously saved scans
- Increased Sampling rate
- Header of .ply file
ply
comment Created by SceneX (IOS)
format ascii 1.0
element vertex 326798
property float x
property float y
property float z
property uchar red
property uchar green
property uchar blue
property uchar alpha
element face 0
property list uchar int vertex_indices
end_header
-
format ascii 1.0
: Encoded in ASCII -
element <element name> <number in file>
: Vertices, faces, edges, etc -
property <data_type> <property name 1>
: coordinates(x,y,z), color(RGBA) -
Example of Data
0.13072823 -0.17935549 -0.57639885 204 190 174 255
0.116889425 -0.18985172 -0.5403765 194 178 160 255
0.09710844 -0.19442658 -0.49314854 205 189 174 255
0.05077581 -0.17531422 -0.39471784 243 230 215 255
-
Make sure that you are using a device with Lidar (iPhone 12 pro & pro max+)
-
Connect your device to Xcode Link to add physical device
- If you got an error reads "This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibility." , Please check the iOS version of your device and download corresponding version from link to device support. Then unzip the .zip folder into path: '''diff /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ ''' Then RESTART Xcode
-
Open the Developer Mode on your device (Settings-> Privacy & Security)
-
Trust the bundle of our project after installing (Settings -> General -> VPN & Device management -> Developer APP)