The editor's terrain tools let you create and edit terrain meshes by sculpting, and by importing and exporting terrain files that you work on in other applications.
To create terrain:
From the Create panel (Window > Create), select the Objects category, then select Terrain from the Objects sub-category.
In the New Terrain options that appear, set the following and click Create:
In the file browser that appears (Save Terrain Unit), enter a name for the terrain and click Save. We recommend that you also create a new folder to contain the terrain units in your project '/content' folder.
The editor creates a terrain plane unit in the level, with a default checkerbox material assigned. This default material (core/stingray_renderer/shaders/terrain_basic) sets up the connection between the material map and actual textures. In the Asset Browser, you can see the terrain unit, its material, and the associated textures.
New terrain Sculpting Tools display in the Property Editor, and you can immediately start to paint the height and material maps in the Level Viewport. The terrain plane updates as you sculpt.
Sculpting Tools hotkeys | |
---|---|
Enter paint mode | B |
Brush radius | B + drag |
Brush falloff | N + drag |
Brush strength | M + drag |
Lower terrain (only in paint mode) | Ctrl + drag |
Note: With terrains if you do a frame all (A) or frame selection (F) the view does not focus the entire terrain, instead it shifts toward a different position based on camera rotation.
Note: Avoid creating very dense terrains, since performance lags could occur when highly tessellated terrains are used with complex rigid bodies. You can reduce the density of the terrain by reducing the size of the heightmap and mask textures.
Export a sculpted mesh as a height map
You can export the sculpted terrain mesh as a .dds or .raw file. In the Property Editor, under Height Map, click Export and enter a name and the file type to save the terrain mesh.
To edit the material for the terrain: