The Terrain Layer is a special map layer that visualizes the elevation of the scene topography using image data. It also serves as reference elevation for align operations for scene objects such as shapes or graph nodes.
Creating a Terrain Layer
A terrain layer can be created in the following ways:
- An image is dragged from the Navigator into the scene
- A Terrain is imported with
- A new Terrain layer is created with
Heightmap File: Choose an image from your workspace which will be used as heightmap mesh / Digital Elevation Model. Normally this is a greyscale image. When a georeferenced image is selected, elevation and bounds are set automatically.
Texture File: Choose an image from your workspace which will be used to texture the heightmap mesh. Normally this is a greyscale image. When a georeferenced image is selected, elevation and bounds are set automatically.
The texture file is applied over the exact extent of the heightmap mesh. It is therefore crucial that your texture file has the same extent as the heightmap file.
Channel: Choose the source channel from the image that is used to read the data for the elevation. For most imagesis the best choice.
Min. elevation: The minimum value / the lower bound for the elevation in meters. For specific images this value is read automatically from the file.
Max. elevation: The maximum value / the upper bound for the elevation in meters. For specific images this value is read automatically from the file.
Bounds Dimensions: The Width and Height of the resulting terrain in meters. When a georeferenced image is selected, this value is set automatically.
Bounds Location: The location of the resulting terrain in meters. When a georeferenced image is selected, this value is set automatically.
Note that the button right of Location can be used to change the reference point of the terrain's position.
16-bit and 32-bit images are supported for heightmap files. The 16/32-bit range is scaled to the elevation bounds similar as it is done with standard images.
Due to the fact that the images displayed in CityEngine all need to fit in the graphics card memory, it is highly recommended to use as small images as possible. CityEngine will restrict resolutions to a max of 4000x4000 pixels per image.
Terrain Layer in CityEngine scene
The new terrain is added as a new layer in the scene editor. If the terrain is not visible in the 3D viewport, right-click on the terrain layer and choose.
Terrain layers (like all map layers) can not be selected in the 3D viewport directly, but only via scene editor.
Setting terrain parameters in the InspectorTo change the parameters of a Terrain, select the terrain layer in the scene editor, and look for its parameters in the Inspector.
Map Layer attributes
|Locked||Lock terrain layer|
|Color||Color value multiplied onto layer|
|Dimensions||Extent of layer|
|Location||Location of layer|
|Elevation offset||Elevation offset applied to layer|
Select which image you want to have active as your basemap.Click the blank active iamge to add another basemap.
Elevation and Layer attributes
|Heightmap File||Heightmap file location|
|Resolution||The number of terrain mesh vertices in u and V direction.|
|Apply Alignments||If enabled, the built-in function "elevationDelta" returns the elevation deltas resulting from the terrain alignment tool. If disabled, the function returns 0.|
|Heightmap Sampling||Bilinear and Nearest Neighbor (hard edges) determine the smoothness of the layer value.|
|Layer attributes||Elevation attribute expression of terrain layer|
- Align Graph to Terrain
- Align Shapes to Terrain
- Align Static Models to Terrain
- Align Terrain to Shapes
- Georeferenced Image Data
Copyright ©2008-2018 Esri R&D Center Zurich. All rights reserved.