Game Development Reference
In-Depth Information
With your terrain defined, you are ready to sculpt the features. The Terrain component is well
covered in the Unity documentation, at http://docs.unity3d.com/Documentation/Components/
script-Terrain.html , so you will just be covering the basics in this exercise. Painting is achieved by
pressing the left mouse button down while moving the mouse.
The first of the Modules is Raise/Lower Terrain. With it, you can paint mountains and valleys using a
variety of brush shapes. The two parameters are Brush Size and Opacity (strength of the effect). In
this module, painting is additive.
1.
Select the Raise/Lower Terrain section.
2.
Rotate the view so that the terrain is closer to a top view.
3.
Set the Brush Size to 100 and the Opacity to 20 .
4.
Using the default brush (the soft round brush), paint some hills around the
outside of the terrain.
5.
Paint a couple of passes to turn them into mountains.
6.
Experiment with different brushes to see the results (Figure 2-24 ).
Figure 2-24. Newly formed hills and mountains around the perimeter of the terrain
Note how the detail softens as soon as you release the mouse button (Figure 2-25 ). This is Unity's
LOD at work. If you zoom in, you will see the detail you originally saw as you painted.
 
Search WWH ::




Custom Search