Game Development Reference
In-Depth Information
There's more...
Now that we have generated a heightmap and exported it to an image, we can actually use
it as a base in Terrain Editor. The process is similar to the one where we created a terrain
for our scene in Chapter 1 , SDK Game Development Hub .
After creating a new scene (by all means, we can use an existing scene as well) and open-
ing it, we can right-click on the main node in the SceneExplorer window and select Add
Spatial.. and then select Terrain.. .
It's important that we select the same total size as that of the pixels of our image. Then, in
the Heightmap screen, we choose Image Based from the HeightMap drop-down menu
and select our image.
The Roughness slider will define how much the heightmap will be smoothed out before it
is added. A higher smoothness will remove finer details, and this is a must if we want to
have characters that will run or drive on top of it.
The Height Scale option will define the maximum altitude that the heightmap can have and
scale it accordingly.
Search WWH ::




Custom Search