Table of Contents

, ,

Start Page » Game Development with the Drag[en]gine » Skin Texture Properties » Texture Property Database » clip.plane

Skin Texture Property: clip.plane

Defines blend factor for clipping model geometry based on the distance to a clip plane.

Excepted Data Source1 component value
Data Rangebetween 0 and 1 inclusive
Default Value0
Affected ModulesGraphic
Linked Propertiesclip.plane.border, solidity, solidity.masked

Description

The clip plane is defined by the coordinate system of a named bone assigned this the clip.plane texture property. The position of the bone is the origin of the clip plane. The positive Z axis of the bone is the plane normal. Vertices in front of the clip plane (along the positive bone Z axis) are rendered while vertices on the back side are hidden.

Clipping

Using the clip.plane.border texture property allows to create a smooth transition between the two sides.

Clipping is multiplied with the solidity texture property. Hence clipping can be used together with solidity. The solidity.masked affects clipping too. Hence if you want to use clip.plane.border to create a smooth transition set solidity.masked to 0. For performance reasons it is recommended to set solidity.masked to 1 unless you need it.

This property is specified using a single value in the range from 0 to 1. A value of 0 disables clipping. A value of 1 enables clipping. Values in between gradually blend between clipped and unclipped.

The default value for this texture property is 0 which disables clipping.

Examples

Bone at portal pointing right. Value 0 (no clipping)

Bone at portal pointing right. Value 1 (fully clipped)