> For the complete documentation index, see [llms.txt](https://amazing-assets.gitbook.io/terrain-textures-exporter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://amazing-assets.gitbook.io/terrain-textures-exporter/readme.md).

# Terrain Textures Exporter

[**Terrain Textures Export**](https://assetstore.unity.com/packages/tools/terrain/terrain-textures-exporter-287695?aid=1011lvgVb) is a powerful Unity editor tool and runtime API that allows exporting all types of textures and maps from [TerrainData](https://docs.unity3d.com/ScriptReference/TerrainData.html) asset.

#### **Key Features:**

* **Comprehensive Terrain Data Export:** Effortlessly export a wide range of terrain textures, including:
  * **Splatmaps** - Capture terrain blending information for materials.
  * **Holesmap** - Export terrain holes and cavities.
  * **Heightmap** - Get the full 16-bit uncompressed heightmap from terrain.
  * **Heightmap Normal** - Export heightmap normals with detailed layer information for better lighting and surface interaction.

* **Basemap Support:** Export essential maps for enhanced terrain rendering:
  * **Diffuse** - Export the base color texture from terrain.
  * **Normal** - Export normal maps for realistic surface detail.
  * **Mask** - Capture masks for terrain layers or specific features.
  * **Specular, Metallic, Smoothness, Occlusion** - Export a complete set of PBR maps for accurate material representation.

* **Object Placement Maps:** Export key placement data from terrain objects:

  * **Trees** - Extract tree placement data in texture form for custom processing or re-use.
  * **Grass** - Export grass placement data for more control over grass scattering.
  * **Detail Meshes** - Capture mesh placements and their associated data for custom visual effects or external processing.

* **High-Resolution Export (Up to 8K):** All textures can be exported in up to 8K resolution, ensuring high-quality terrain data for any project.

* **Map Splitting for Unlimited Resolution:** The tool supports **map splitting**, allowing each exported map to be split horizontally and vertically into any number of tiles. Each tile can be exported in **up to 8K resolution**, meaning the exported map quality can scale as large as you need—unlimited resolution for your terrain needs.

* **Run-Time API**: Export terrain data dynamically at runtime, perfect for procedural generation, game editors, and tools that require real-time terrain export functionality.

{% hint style="warning" %}
Note, **Terrain Textures Exporter** works only with Unity [TerrainData](https://docs.unity3d.com/ScriptReference/TerrainData.html) asset (not [Terrain](https://docs.unity3d.com/ScriptReference/Terrain.html) component) and exports textures and maps only from it. Custom terrain shaders and tree/grass placement assets may not be fully supported.
{% endhint %}
