Click or drag to resize
AB4D logo

DXViewIsTransparencySortingEnabled Property

Gets or sets a Boolean that specifies if sorting transparent objects by their distance to the camera is enabled. This property sets the DXScene.IsTransparencySortingEnabled property. Default value is false. See remarks for more info.

Namespace: Ab3d.DirectX.Controls
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public bool IsTransparencySortingEnabled { get; set; }

Property Value

Boolean
Remarks

IsTransparencySortingEnabled gets or sets a Boolean that specifies if sorting transparent objects by their distance to the camera is enabled.

When rendering transparent and semi-transparent objects with using alpha blending (standard technique to render transparent objects), then the objects behind transparent objects needs to be rendered before the transparent objects. Otherwise the depth clipping will prevent them to be rendered and therefore they will not be visible through the transparent objects. This means that for correct rendering of transparent objects, then need to be rendered so that those farther away from the camera are rendered first and then objects closer to the camera are rendered.

Setting this value sets the IsSortingEnabled property on the CameraDistanceSortedRenderingQueue.

Default value is false.

See Also