Skip to end of metadata
Go to start of metadata

Now that the initial flat terrain has been created, let's have the engine generate procedural hills and valleys to make things more interesting. In most cases the procedurally generated terrain will be a starting point for a level and have to be tailored to your own game design. Note the the procedural terrain generator is not random, but produces predictable results based on the parameters you choose.

How to Generate Procedural Terrain

  1. Note that using the Generate Terrain tool overrides any maximum terrain height setting you've applied in Edit > Set Terrain Max Height. You can lower the highest points afterwards if it is too steep for your taste.
  2. In the Terrain Editor menu, navigate to File -> Generate Terrain where you'll see several sliders that will help shape the style:

    • Feature SizeDetermines the amount of land created.
    • Bumpiness/NoiseDetermines the degree of bumpiness or deformation of the surface.
    • DetailDetermines the number of times that effects will be applied.
    • VariationDetermines the random seeding of the islands.
    • BlurringSets the number of times that smoothing will be applied to the noise filter.
    • CoverDetermines the sharpness of the surface.
    • SharpnessDetermines the number of times that the sharpness filter will be used on the surface.

  3. Varying these parameters will result in radically different kinds of terrain from one gentle hill to mountains to near-vertical spikes. Let's try changing the Feature Size to be 4 and clicking OK.
  4. Go to File -> Generate Terrain Texture.  This will export our terrain texture to disk so we can play it in our final application. This will be a common step you must complete throughout your development to see the changes in the Editor look identical to that of your final game.
  5. Lastly, go to Terrain Editor -> Edit –> Make Isle and click it twice to get a more rounded border as you would typically find with an island.

Step 1

 

 

Step 2

 

 

Step 3

 

 

Step 4

 

 

Step 5

 

 

Result

 

 

 

  • No labels