> For the complete documentation index, see [llms.txt](https://xreal.gitbook.io/nrsdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xreal.gitbook.io/nrsdk/v1.10.2/development/depth-mesh.md).

# Depth Mesh

Depth mesh is the creation of triangle-based meshes surfaces detected by Nreal Light. The mesh is used for real-time occlusion rendering and for collision detection with digital content. Unlike Plane Detection, which only detects planar surfaces, Meshing can detect a variety of surfaces.

## Capabilities

Depth mesh expands many AR capabilities.

* **Visualization**: Provide visual feedback as users scan their environment.
* **Occlusion**: Hide virtual objects behind real ones, especially in larger outdoor environments where Depth-based Occlusion may not be practical.
* **Physics**: With the help of <mark style="color:purple;">MeshCollider</mark>s, virtual objects and characters interact with the environment and real objects.
* **Procedural Object Placement**: Populate the AR world with more flexibility than Plane Detection.

## Best Practice

The mesh quality depends on the image texture, related to the scene material, lighting, motion speed, etc.

**Good quality**:

* Uniform illumination
* Move smoothly and slowly
* Highly textured surfaces: carpets, wallpapers, wood floors
* The appropriate range of distances: 0.5m to 3m

**Poor quality**:

* Moving objects
* Dark environments
* Transparent/Semi-transparent or reflective surfaces
* Thin objects: chair legs, fences
* Textureless surface: white walls, painted desktop

## **Device compatibility**

Depth Mesh has been fully tested on the following Android phones:

* OnePlus: 7T / 9
* SONY: Xperia 5iii
* OPPO: Find X2 / Find x3 Pro
* HUAWEI: P30 / Mate40Pro
* LG: VELVET / V50s / G900N / style&#x20;
* SAMSUNG: Galaxy Note20Ultra / Galaxy Note20 / Galaxy S21 5G / Galaxy Z Fold3 5G / Galaxy S20 Ultra

Depth Mesh can also run on devices besides the above, the stability however is not guaranteed. For the complete compatibility list, please refer to[ Device Compatibility](/nrsdk/v1.10.2/nrsdk-fundamentals/xreal-devices/compatibility.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://xreal.gitbook.io/nrsdk/v1.10.2/development/depth-mesh.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
