Scattering meshes on a Landscape using the Foliage tool

Foliage Mode extends the Landscape tools, and sits alongside Landscape Mode in the editor. In this recipe we'll scatter rock meshes on a Landscape surface, since the Foliage tool, while great for making forests and grass, is not limited to just that.

Scattering meshes on a Landscape using the Foliage tool

Getting ready

Open the file Packt_01_Foliage_Start.UDK. This extends from the previous example.

How to do it...

  1. Press Foliage Mode, shown on the right-hand side in the previous image. Then press Ctrl + Shift + F and in the Browser search for rock to expose StaticMesh assets of that type (although you can use whatever meshes you like).
  2. In the Foliage dialog there is an area, Meshes, to drop assets to be used. You can drag in several.
    How to do it...
  3. The meshes will appear there and each will have parameters for setting scale, count, and angle when brushed. They can also be assigned to separate layers in the Landscape using existing Parameter Names (such as first, second, third).
  4. There are three icons that allow you to control the StaticMesh assets used. The first icon is Hide Details [ How to do it... ], which deselects and effectively disables the mesh from being brushed to the Landscape. The next screenshot shows one of the layers grayed out. The second icon is Show Paint Settings [ How to do it... ], which exposes values for controlling scale and density. Highlight an available mesh and set a Scale Min value of 1 and a Max value of 5 (though a good value depends on the actual size of the mesh used). The third icon is Show Settings for Placed Instances [ How to do it... ], which returns info for the meshes where they are used, such as the total count in the scene.
  5. To paint, at the top of the Foliage Editor, you can adjust a slider for Brush Size and Paint Density, which you should see update in the scene as a pulsing white circle cursor. Then in the view, move the cursor over the Landscape, hold Ctrl, and click or stroke.
    How to do it...
  6. The last thing to point out is that you can remove meshes from the list using the icon [ How to do it... ] and you can swap out meshes from the browser using the assign icon for the Foliage Editor [ How to do it... ], and locate the current mesh in the browser using the magnifying glass [ How to do it... ].
    How to do it...

    Tip

    In versions from September 2011, two new tools shown here (individual instance selection and paint selection) have been added to the foliage edit mode. Selected instances can be moved, rotated, and scaled with the widget, and also snapped to the floor, deleted, and cloned with Alt-drag.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.138.134