How to do FAQ

This page will be updated with more how to do’s.

TerrainComposer

 

How to flatten terrain for the use with Horizon[ON]?

You need to use a 16 bit raw greyscale image mask (can be easily created in photoshop). I made one that can be downloaded here:
Horizon Mask

Then do the following steps:

  1. Enable the ‘Height’ button in the top of the TerrainComposer window.TCHorizonMask
  2. Add a heightmap layer (click the yellow ‘+’ button). The layer should be at the bottom of all your layers.
  3. Unfold the layer and ‘Height Select0’ filter.
  4. Set filter ‘Output’ -> ‘Change’ and ‘Level’ -> ‘Layer’.
  5. Add a mask (click the green ‘+’ button) and unfold it.
  6. Set mask ‘Input’ -> ‘Raw Heightmap’.
  7. Click the ‘>Open’ button to load the HorizonMask file.
  8. If you use multiple terrains, in settings (unfold) set ‘Stretch Mode’ -> ‘Multi Terrain’.
  9. Click the ‘Generate’ button.

 

How to export and re-import the splatmap so that the manual painting with Unity terrain brush stays intact? And how to add additional splat texturing with TerrainComposer on top of that?


First you need to export the splatmap(s).

  1. Enable the ‘Splat’ and ‘Export’ button in to of TerrainComposer window.
  2. In the bottom of the TerrainComposer window choose a name and folder.
  3. Click the ‘Export .PNG’ button.

For every 4 splat textures Unity terrain uses 1 splatmap image, where each color channel (RGBA) is used for 1 splat texture. E.g. if you use 8 splat textures there will be 2 splatmap images. The image import settings for the splatmap images need to be:
Texture Type -> ‘Texture’.
Format -> ‘Truecolor’.

In TerrainComposer you need to add a layer for each 4 splat textures. And those layers need to be at the top of the layer list:

  1. Disable the ‘Export’ button in the top of TC window and enable the ‘Splat’ button.
  2. Click the yellow ‘+’ button to add a splat layer. Choose the splat textures you want to use for your splatmap.
  3. Unfold the splat layer and click the grey ‘+’ button to add a 4th splat texture.
  4. Unfold the ‘Splat Select0’ filter and put ‘Input’ -> ‘Image’.
  5. Drag and drop your first splatmap (A_0) into the texture slot.
  6. Unfold settings and enable the toggle ‘Splatmap’.
  7. Repeat steps 2-6 if you use more then 4 splat textures. Then step 5 use the second/third/etc splatmap. Can use shift click yellow ‘+’ button to duplicate your just created splat layer for step 2.
  8. Make sure the splat import layers are at the top of the layer list.

Now you can click the ‘Generate’ button and the splat texturing that was on the terrain before exporting will be there.

To do additional splat texturing on top with TerrainComposer we can add more layers. We need to use the filter output ‘Change’ (overlay) for this, as we want to over-paint the imported splatmap(s). We want to over-paint based on masks. In this example we will over-paint based on steepness (mask), where we use filter input also on steepness (to choose splat textures based on steepness).

  1. Click the yellow ‘+’ button to add a splat layer.
  2. Unfold the splat layer and unfold the ‘Splat Select0’ filter.
  3. Set the filter ‘Output’ -> ‘Change’ and ‘Level’ -> ‘Layer’ (We want to over-paint the previous layers).
  4. Set the filter ‘Input’ -> ‘Steepness’, as we want to select splat textures based on steepness (can choose your own input rules here).
  5. Choose the splat textures in the layer you want to use, you can use the min-max sliders to change the paint range of each splat texture.
  6. Click the green ‘+’ button to add a mask.
  7. Unfold the ‘Splat Alpha0’ mask and set the ‘Input’ -> ‘Steepness’ (can choose your own masks with input rules here).
  8. In the Curve (Normal) you can click the curve graph (with the line) to define your steepness rules (add/move curve keys).
  9. Can add more masks with rules based on your needs.
  10. Click the ‘Generate’ button.

 

 

 

Comments are closed.