Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

2024-03-13_13-13.png

Learn how to export and import your terrain tiles from other projects or in some cases, even from external tools.


Export terrain tiles

Here’s how you can export some or all of your tiles.

  1. Open the Terrain Edit Tools.

  2. You can export terrain by selecting either a specific selection of your tiles or all of your tiles. Don’t have any yet? Create your terrain tiles (if you haven’t already), and assign a material for them in the Material tab:

image-20240311-140841.png

Info

It’s important to keep in mind the resolution and LOD config that you are currently using, as it will be important to have your exported and imported tiles in the same resolution and settings later!

image-20240311-141018.png

  1. You can select the tiles that you want to export by either individually selecting by Ctrl + LMB or by choosing the Select all tiles button at the bottom left corner of the Terrain edit dialog.

2024-03-11 15-13-48.mkv2024-03-11 15-14-10.mkv
  1. Once you have your tiles selected, head on over the Import / Export tab and at the middle, under the Export Tiles button, select the Heightmap and colormap mode, then click on the Export Tiles button.

image-20240311-141754.png
  1. In the Open-File-Dialog select the desired location for your exports. Once the editor is done exporting the tiles, you will see the following structure at your export path location:

d1ed3b92-4e67-4687-a35e-dd94d9c7d550.png

  • t_output.csv: The filename may vary based on the name you gave at the Open-File-Dialog. This file is responsible for stating the offset and resolution of the exported tiles at the very top row. e.g. 0 - 0 - 32 - 32
    Where each digit does the following from left to right:

  1. There is 0 offset on the X axes. This number can be added to each tile's x coordinate as an offset value.

  2. There is 0 offset on the Y axes. This number can be added to each tile’s y coordinate as an offset value.

  3. The next two digits is basically the resolution X, Y axes wise. So the resolution is 32x32.

The rest of the rows are exact path info of all the exported tiles:

c7ca0643-4685-4102-aef8-838487952136.png
  • The two folders above the csv file,
    <filename>_input: Here you can add all the tiles that you want to import into the engine.
    <filename>_output: This is the place where all the exported tiles are located, each tile is in a png format, where the name states the x and y coordinate of the current tile.


Import terrain tiles

Imagine you have another project with an empty world, but you want to import all of the tiles exported from the previous one to import full terrain.

1. Open the Terrain Edit Tools,

Note

IMPORTANT: Remember to set the exact same LOD config and resolution options as it was in the previous project.

  1. Then select Import full terrain. Now select the folder where all the exported tiles are located from the previous project, so that we can import them in here:

image-20240311-143929.png

image-20240311-144036.png

  1. You’ll be presented with the following dialog stating with some information before the import process:

image-20240311-144108.png
  1. Click on Yes and wait until the process if finished.

image-20240311-144246.pngimage-20240311-144312.png
  1. If you only want to import some of the tiles but not all of them from a previous world next to your already existing terrain, put the tiles that you want to import inside the <filename>_input folder, then navigate to the Import / Export tab, and select Import Tiles.

image-20240311-150550.png
  1. Then select the previously exported .csv file that is located next to the <filename>_input folder.

Table of contents:

Table of Contents
minLevel3
maxLevel6
outlinefalse
styledisc
typelist
printablefalse