Skip to main content

22 docs tagged with "Perception"

View All Tags

Marker Tracker API Overview

This section provides an overview of the marker tracker and references to create a custom Marker Tracking script.

Marker Tracker Events Example

The Magic Leap 2's marker tracker API is light weight and can be extended depending on your application's needs. This section provides an example of extending the API to broadcast an event when a marker is found, lost or updated based on the amount of time that has passed since the marker was update.

Marker Tracker Example

This section includes an example of detecting Fiducial Markers on the Magic Leap 2 headset.


Meshing is the creation of triangle-based meshes from the World Reconstruction model created by Magic Leap devices. The mesh is used for real-time occlusion rendering and for collision detection with digital content.


Learn how to create meshes from surfaces detected by the Magic Leap.

Plane Detection

Plane Extraction enables users to extract rectangular planar regions of the world reconstruction model. Plane candidates are returned as simple geometric rectangles.

Query Planes

Learn how to query planes Magic Leap that were detected by the Magic Leap.


Learn how to use the Spaces app to localize into and create spatial maps.

Spatial Anchors

Learn about Spatial anchors and how they can be used inside your application.

Spatial Anchors

Learn how to link objects to Spatial Anchors and use them to create persistent content.

Spatial Anchors API

Learn the core API calls required to implement Magic Leap 2's Spatial Anchors API.

Spatial Anchors Examples

Contains code that can be used as a reference or demo Magic Leap 2's Spatial Anchors functionality.

Spatial Mapping

Magic Leap 2's Spatial Mapping APIs build a digital representation of the real-world surfaces around the user in real-time using the ToF sensors on the device. Apps can use this representation to occlude rendering, place digital objects, and for physics-based interactions or ray-casting. The depth sensor has the resolution of 544 x 480 and a felid of view of 75° (h) x 70°