Click or drag to resize
DigitalRuneSceneNodeMaxDistance Property
Gets or sets the maximum distance up to which the scene node is rendered. (Needs to be normalized - see remarks.)

Namespace: DigitalRune.Graphics.SceneGraph
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public float MaxDistance { get; set; }

Property Value

Type: Single
The view-normalized distance. The default value is 0, which means that distance culling is disabled and the scene node is visible from any distance.
Remarks

The MaxDistance determines the distance up to which the scene node is visible. The value stored in this property is a view-normalized distance as described here: GetViewNormalizedDistance(SceneNode, CameraNode). The method GetViewNormalizedDistance(Single, Matrix44F) can be used to convert a distance to a view-normalized distance. The resulting value is independent of the current field-of-view and can be used for "distance culling".

Important: The MaxDistance only affects the current scene node. It does not affect the visibility of child nodes.

See Also