Game Development Reference
In-Depth Information
How to do it...
We will begin by creating a terrain for the scene before exploring how to modify it. To do
this, perform the following steps:
1. First, we either create a new scene or load a scene we've worked with previously.
2. In the SceneExplorer window, right-click on the main scene node and select Add
Spatial and then Terrain.. .
3. To edit the terrain, we have to find the scene j3o file in the Projects window. It
should be present in the Scenes folder inside Project Assets . Right-click on the
scene file and select Edit Terrain .
4. Now, we have a flat and nice terrain. While it's perfectly functional, let's explore
the functions in the TerrainEditor window. These functions are shown in the fol-
lowing screenshot:
5. Next to the Add Terrain icon, you have the raise/lower terrain icon. This icon uses
the values of Radius and Height/Weight sliders to modify the terrain. Try it out
and see how it can be used to create hills and valleys. The Level terrain icon can be
used to create flat areas in the terrain. It works by right-clicking on an area, the
height of which you would like to have as a reference, and then holding the left
mouse button and flattening out the terrain at the selected height, creating plateaus.
Tip
If you're going to use this as a test bed for the other chapters, try to keep the area
just around Jaime at the default height, for now. This is because we don't have any
logic to keep it at the actual ground level, and we would like to see what is going
on in the recipes.
6. While the terrain comes with basic texturing, we might want to do something more
interesting. First of all, we need to add another texture layer. This is done with the
icon that looks like a plane with a plus sign on top (the Add another texture layer
icon).
Search WWH ::




Custom Search