Terrain To Mesh
  • Terrain To Mesh
  • Quick Start
  • Editor Window Settings
    • Mesh
    • Material
    • Objects
    • Save
  • Update Splatmap Shader
  • Run-time API
    • TerrainToMesh
      • ExportMesh
      • ExportTerrainLayers
      • ExportSplatmapMaterial
      • ExportSplatmapTextures
      • HasHoles
      • ExportHolesmapTexture
      • ExportBasemapDiffuseTexture
      • ExportBasemapNormalTexture
      • ExportBasemapMaskTexture
      • ExportBasemapOcclusionTexture
      • ExportGrassTextures
      • ExportGrassAtlasTexture
      • HasPrototypes
      • CountPrototypes
      • ExportPrototypes
    • TerrainToMeshUtilities
      • GenerateGrassMesh
      • GenerateEdgeFallTexture
      • ConvertMeshToOBJ
      • ConvertMeshToOBJAndSaveToFile
      • ConvertMeshToOBJAndAppendToFile
      • GetDefaultMaterial
      • GetDefaultShader
      • GetDefaultShaderProperty
      • SetupDefaultMaterial
      • SetupAlphaCutoutForDefaultMaterial
      • ConvertPrototypesToTreeGameObjects
      • ConvertPrototypesToGrassGameObjects
      • ConvertPrototypesToGrassMeshes
      • ConvertPrototypesToDetailMeshGameObjects
      • ConvertPrototypesToDetailMeshes
      • CalculateExportedMeshVertexCount
      • SetMeshPivotPoint
    • TerrainToMeshEdgeFall
    • TerrainToMeshPrototype
    • TerrainToMeshConversionDetails
  • Help & Contact
Powered by GitBook
On this page

Quick Start

PreviousTerrain To MeshNextEditor Window Settings

Last updated 2 months ago

Open Quick Start scene from the Amazing Assets → Terrain To Mesh → Example Scenes folder:

Open Terrain To Mesh editor window from the Main Toolbar → Window → Amazing Assets → Terrain To Mesh:

Before using TTM editor tool, reset its settings using Context Menu → Reset option:

For converting terrain into a mesh, drag and drop it from the Hierarchy windows inside TTM editor window or by clicking on the Add All Scene Terrains button.

TTM window will display terrain and its resources usage:

Click on the Run button at the bottom of the TTM editor window.

TTM will convert terrain (SnowTerrain) into a mesh, create material for it using Splatmap shader and instantiate ready to use prefab in the scene in the same position as the source Unity terrain object:

Note, Terrain To Mesh asset does not create holes in meshes.

Terrain holes in generated meshes are rendered using alpha cutout shader.

Adjust generated mesh resolution by increasing Vertex Count and click on the Run button again.

Terrain mesh will be re-generated and prefab in the scene will be automatically updated to reflect those changes.

Note, if the Unity Console window displays Splatmap shader compilation errors, check the chapter below.

Update Splatmap Shader
To see generated prefab, move it inside Scene view or hide the source Unity terrain object