Tutorial_20_TerrainViewWidget

Description

abstract class Tinman.Demo.Tutorials._2_HighLevel.Tutorial_20_TerrainViewWidget

Full source code is included in the Tinman 3D SDK download.

Tinman 3D tutorial #20 : TerrainViewWidget

This is the base class for tutorials that demonstrate how to use the High-level Terrain API.

Protected / Constants

Material_​Construction_​Concrete_​Base_1


protected static readonly attribute Material_Construction_Concrete_Base_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Construction_​Concrete_​Base_2


protected static readonly attribute Material_Construction_Concrete_Base_2 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Construction_​Concrete_​Base_3


protected static readonly attribute Material_Construction_Concrete_Base_3 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Construction_​Gravel_1


protected static readonly attribute Material_Construction_Gravel_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Construction_​Gravel_2


protected static readonly attribute Material_Construction_Gravel_2 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Construction_​Rubble_1


protected static readonly attribute Material_Construction_Rubble_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Grass_​Dried_1


protected static readonly attribute Material_Grass_Dried_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Grass_​Wild_1


protected static readonly attribute Material_Grass_Wild_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Grass_​Wild_2


protected static readonly attribute Material_Grass_Wild_2 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Other_1


protected static readonly attribute Material_Other_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Rock_​Sediment_1


protected static readonly attribute Material_Rock_Sediment_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Rock_​Sediment_2


protected static readonly attribute Material_Rock_Sediment_2 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Rock_​Sediment_3


protected static readonly attribute Material_Rock_Sediment_3 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Rock_​Sediment_4


protected static readonly attribute Material_Rock_Sediment_4 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Clay_1


protected static readonly attribute Material_Soil_Clay_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Dirt_1


protected static readonly attribute Material_Soil_Dirt_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Dirt_2


protected static readonly attribute Material_Soil_Dirt_2 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Dirt_3


protected static readonly attribute Material_Soil_Dirt_3 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Dirt_4


protected static readonly attribute Material_Soil_Dirt_4 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Dirt_5


protected static readonly attribute Material_Soil_Dirt_5 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Dirt_6


protected static readonly attribute Material_Soil_Dirt_6 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Dirt_7


protected static readonly attribute Material_Soil_Dirt_7 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Dirt_8


protected static readonly attribute Material_Soil_Dirt_8 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Mud_1


protected static readonly attribute Material_Soil_Mud_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Mud_2


protected static readonly attribute Material_Soil_Mud_2 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Mud_3


protected static readonly attribute Material_Soil_Mud_3 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Mud_4


protected static readonly attribute Material_Soil_Mud_4 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Mud_5


protected static readonly attribute Material_Soil_Mud_5 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Mud_6


protected static readonly attribute Material_Soil_Mud_6 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Mud_7


protected static readonly attribute Material_Soil_Mud_7 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Mud_8


protected static readonly attribute Material_Soil_Mud_8 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Sand_1


protected static readonly attribute Material_Soil_Sand_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Soil_​Sand_2


protected static readonly attribute Material_Soil_Sand_2 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Stone_1


protected static readonly attribute Material_Stone_1 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Stone_2


protected static readonly attribute Material_Stone_2 → (TerrainMaterialTexture)

A terrain material texture.

Material_​Stone_3


protected static readonly attribute Material_Stone_3 → (TerrainMaterialTexture)

A terrain material texture.

Texture​Atlas_​RGB_​Compressed_512


protected constant TextureAtlas_RGB_Compressed_512 → (0:int32)

Texture atlas for block-compressed values (red, green, blue), with a tile size of 512.

This texture atlas is used for albedo resp. surface imagery textures.

Texture​Atlas_​RGBA_​Compressed_256


protected constant TextureAtlas_RGBA_Compressed_256 → (1:int32)

Texture atlas for block-compressed values (red, green, blue, alpha), with a tile size of 256.

This texture atlas is used for rasterized vector shapes.

Texture​Atlas_​RGBA_​Uncompressed_512


protected constant TextureAtlas_RGBA_Uncompressed_512 → (2:int32)

Texture atlas for uncompressed values (red, green, blue, alpha), with a tile size of 512.

This texture atlas is used for combined material textures (e.g. physically-based rendering), such as maps for normal vectors, ambient occlusion, reflectivity and gloss.

Protected / Constructors

Tutorial_20_​Terrain​View​Widget


protected constructor Tutorial_20_TerrainViewWidget → ()

Creates a new instance of Tutorial_20_TerrainViewWidget.

Protected / Methods

Create​Terrain


[ThrowAny]
protected method CreateTerrain → (2)

options in : MeshOptions own

[not-null]
The terrain mesh options.

gravity opt : IHeightmap = null

Optional heightmap that stores gravity-related offsets from the ellipsoid surface (see VerticalType.Gravity).

returns → TerrainView

The view on the created terrain.

Creates the terrain, using the given options.

The tutorials only use one terrain at a time. When this method is called multiple times, only the most recent terrain is kept, all others are disposed. Other applications can of course create and use more than one terrain at a time.

Material​Texture


[Pure] [ThrowAny]
protected static method MaterialTexture → (3)

name in : string

The file name from which to construct the texture file paths.

scaleDisplacement in : float64

See TerrainMaterialTexture.ScaleDisplacement.

scaleTexture in : float64

See TerrainMaterialTexture.ScaleTexture.

returns → TerrainMaterialTexture

The loaded model.

Loads a terrain material texture.

Plant​Model

2 overloads


[ThrowAny]
protected static method PlantModel1 → (1)

file in : string

The file name.

returns → IModel

The loaded model.

Loads a plant model.


[ThrowAny]
protected static method PlantModel2 → (2)

file in : string

The file name.

name in : string

The variant name.

returns → IModel

The loaded model.

Loads a plant model variant.

Protected / Attributes

terrain​Buffer​Options


protected attribute terrainBufferOptions → (TerrainBufferOptions)

The options to use for creating the TerrainBuffer object when IWidget.Initialize is called.