Click or drag to resize
AB4D logo

HeightMapVisual3D Properties

The HeightMapVisual3D type exposes the following members.

Properties
 NameDescription
Public propertyCenterPosition Gets or sets the plane center position
Public propertyGradientColorsCount Gets or sets the number of individual colors that are created from the gradient. Default value is 256. This value need to be changed before the CreateHeightTextureFromGradient(LinearGradientBrush) method is called.
Public propertyHeightData Gets or sets a two dimensional array of double that defines the height of each point in height map.
Public propertyIsSolidSurfaceShown Gets or set a boolean that specifies if the HeightMapVisual3D shows solid surface for the height map. Default value is true.
Public propertyIsWireframeShown Gets or set a boolean that specifies if the HeightMapVisual3D shows wireframe for the height map. Default value is false.
Public propertyMaxValue Gets or sets the maximum value of the HeightData. When the value is not manually set, then the maximum value from the HeightData is get. When manually setting the value, this must be done before the geometry or the texture is created.
Public propertyMinValue Gets or sets the minimum value of the HeightData. When the value is not manually set, then the minimum value from the HeightData is get. When manually setting the value, this must be done before the geometry or the texture is created.
Public propertySize Gets or sets the size of the HeightMap. Note that the Size.Y defines the scale that is used to multiply each height data value with.
Public propertyUseHeightValuesAsTextureCoordinates When UseHeightValuesAsTextureCoordinates is true, then height values are used for texture coordinates - texture coordinate (0, 0.5) is set the minimum height value and texture coordinate (1, 0.5) is set to the maximum height value. This requires a one dimensional gradient texture and usually produces more accurate results than when UseHeightValuesAsTextureCoordinates is false. When false (by default) then texture coordinates are generated as fraction of x and y position - texture coordinate (0, 0) is used for the first position and (1, 1) for the last position. This requires a two dimensional texture where each pixel in the texture represents the color for the point in the height map. Because pixels are actually squares this does not interpolate the colors as good as when UseHeightValuesAsTextureCoordinates is true. In another worlds: when true, then height values are interpolated between height map positions, when false colors from height values are interpolated between height map positions. When using a custom texture (for example a satellite image) then this property must be set to false.
Public propertyWireframeColor Gets or sets the color of the wireframe lines.
Public propertyWireframeDistance Gets or sets a double that specifies the distance between wireframe and solid model. Default value is 0.001.
Public propertyWireframeThickness Gets or sets the thickness of the wireframe lines.
Top
See Also