All projects
mc

3D scanning / Mobile

Model Craft (LiDAR 3D scanning)

An iPhone and iPad app that captures rooms and objects with the LiDAR sensor and turns the scans into 3D point clouds.

Overview

Model Craft turns an iPhone or iPad Pro with a LiDAR sensor into a 3D scanner. You walk around a room or object, the app records color and depth together, tags the scan with GPS, and uploads it to a server that builds a point cloud. I wrote the native iOS app, a later Flutter version, and the backend that processes the scans.

What I built

The main parts of the app I worked on.

  • Native iOS app in Swift that records RGB frames, LiDAR depth, confidence maps and camera poses with ARKit.
  • Metal compute pass that converts ARKit depth (32-bit float, meters) to 16-bit millimeter frames for upload.
  • Scan library, 2D and 3D scan views, and GPS and map tagging with MapKit.
  • Background upload of zipped scans, with task status polling and token refresh.
  • Flutter version that calls a Swift ARKit mesh scanner through platform channels.
  • FastAPI backend that receives RGB-D uploads and builds point clouds with Open3D.

How it works

Technical details from the code.

  1. 01Each frame saves four things side by side: the RGB image, the LiDAR depth map, a confidence map and the camera pose, so the server can line every frame up in 3D.
  2. 02ARKit gives depth as 32-bit floats in meters. A Metal compute shader converts it on the GPU to 16-bit millimeter values, which halves the file size before upload.
  3. 03Scans are zipped and uploaded in the background. The app polls the server for task status and refreshes the auth token on its own, so a long upload survives an expired session.
  4. 04The Flutter version keeps the scanning in Swift (ARKit mesh anchors and SceneKit) and talks to it over a method channel, so the UI is cross-platform while the sensor work stays native.
  5. 05The FastAPI backend stores projects in PostgreSQL, takes RGB-D uploads, and uses Open3D to fuse the frames into a point cloud. It runs in Docker with Temporal handling the long jobs.

Need something like this?

Tell me about your app and I'll tell you how I'd approach it.

Start a conversation

Keep exploring

All projects