What’s the best way to map an indoor room?

Asked on 08/02/2024

1 search

To map an indoor room effectively, you can leverage the new room tracking capabilities in ARKit. Here are some key points and best practices:

  1. Room Tracking with ARKit:

    • ARKit can identify the boundaries of the room you are in and compute precisely aligned geometries of the detected walls and floor.
    • It can recognize transitions between rooms and switch to delivering data for the new space you occupy.
    • This information is surfaced through the new room tracking data provider, which requires world sensing authorization.
    • The room tracking provider can tell you about the rooms that have been visited and provide spatial information about the current room, which can be used to shape your experience according to the interior's layout.

    For more details, you can refer to the session Create enhanced spatial computing experiences with ARKit.

  2. Object Capture with Area Mode:

    • When capturing an area, aim for diffuse lighting with no harsh shadows.
    • Move around slowly in regular paths to ensure clear images with enough overlapping features.
    • Capture in multiple rows from different heights to cover every angle of your subject.
    • Use the new camera pose visualization to check where you've captured images and ensure you have all the data you need.

    For a practical demonstration, you can check the session Discover area mode for Object Capture.

By combining these techniques, you can create detailed and accurate maps of indoor rooms, enhancing the spatial computing experiences in your applications.