---
title: "DepthMapMesh"
description: "API documentation for DepthMapMesh"
url: https://developer.disguise.one/python-api/docs/depthmapmesh/
---

# DepthMapMesh

A mesh which update its depth based on a depth map texture, mapped to it using a DepthMapProjection.

The bounds of the mesh are defined by a frustum based on the field of view, near plane and far plane.

See also: [Stage Guide](/plugins/guides/stage)

Base class (inherits properties and methods): _[Mesh](/python-api/docs/mesh#mesh)_

## Properties

#### **blurRadius** : _float_

Radius of texture area to implement blur on. Value of 1 means entire width of input texture

_UserName: Blur radius_

#### **depthOffset** : _float_

Z offset in metres of the origin of the mesh relative to the frustum eye point

_UserName: Depth offset (m)_

#### **depthType** : _int_

The type defining how the depth map is interpreted.  
Raw: Normalised between 0 and 1, with 0 being near plane and 1 far plane.  
Relative inverse: Inverse normalised depth, with 0 being far plane and 1 near plane.

_Options: {0: ‘Raw’, 1: ‘Relative inverse’}  
UserName: Depth type_

#### **dilateRadius** : _float_

Radius of texture area to implement dilate on. Value of 1 means entire width of input texture

_UserName: Dilate radius_

#### **fov** : _[Vec2](/python-api/docs/vec2#vec2)_

The field of view of the frustum representing the bounds of the mesh, in degrees

_UserName: Field of view (degrees)_

#### **maxDepth** : _float_

The maximum depth of the mesh or far plane of the frustum, in metres

_UserName: Max depth (m)_

#### **minDepth** : _float_

The minimum depth of the mesh or near plane of the frustum, in metres

_UserName: Min depth (m)_

#### **resolution** : _[Int2](/python-api/docs/int2#int2)_

The X/Y resolution of the vertices of the mesh

_UserName: Resolution_

#### **showFrustum** : _bool_

Whether to display the frustum showing the bounds of the mesh

_UserName: Show frustum_
