Mastering Unreal Engine 4: Painting The Ground

how to paint the ground in unreal engine 4

The Unreal Engine 4 (UE4) is a powerful tool for creating expansive outdoor environments, with its Landscape system offering a collection of tools that allow users to sculpt and paint virtual terrains. To paint the ground in UE4, users must first create a landscape material with multiple layers, each with different textures, scaling, rotation, and panning. These layers are then selectively applied using the Landscape Paint mode tools, which adjust layer weights to modify the appearance of the landscape. Weight-blended layers are the most common, where painting one type of surface, like mud, will remove another, like grass. Non-weight-blended layers, on the other hand, are independent and can be used for more advanced effects, like blending snow onto other layers.

Characteristics Values
Versions 4.27, 5.5, 5.6
Landscape Layers Define which material you are painting on your landscape
Layer Info Objects Contain information about a particular landscape layer
Types of Layer Info Objects Weight-Blended, Non Weight-Blended
Weight-Blended Layers Painting one will decrease the weight of all other weight-blended layers
Non Weight-Blended Layers Independent of each other and do not affect the weights of other layers
Landscape Paint Mode Tools Adjust layer weights to selectively apply materials and modify landscape appearance
Sculpting Tools Manipulate heightmaps
Painting Tools Manipulate the weightmap of the landscape
Default Texture Grey squares
Landscape System Collection of tools that allow the creation of expansive outdoor environments

cypaint

Creating a landscape material

To paint the ground in Unreal Engine 4, you need to create a landscape material with several layers. This allows you to select a specific layer to paint, such as rock, gravel, or grass. Here is a step-by-step guide on creating a landscape material:

First, you need to create a new folder called "Landscape" in your project's Content folder. Inside the "Landscape" folder, create three additional folders: "Textures", "Materials", and "Maps". These folders will help you organise your content and keep your project structured.

Next, migrate some textures into your "Textures" folder. You can find textures in the Landscape Mountains learning project under the "Learn" tab in the Epic Games Launcher. These textures will provide visual details for your landscape material.

Now, open the "Materials" folder and create a new material. Name it something descriptive, such as "Landscape_Material". Double-click on this new material inside the Content Browser to open the Material Editor.

In the Material Editor, you will create nodes that define the properties of your landscape material. The first node to create is a LandscapeLayerCoords UV node. This node generates UV coordinates to map your landscape material to the landscape actor. You can find landscape-specific nodes by searching for them in the Materials Palette box using "Landscape" as a keyword.

After creating the necessary nodes, it's time to apply your landscape material to the landscape itself. Find your material in the Content Browser under the "Materials" folder. Click on it to select it. Then, in the world, select the landscape you want to apply it to. In the Details panel, expand the Landscape section and look for the Landscape Material input. Here, you will assign your landscape material to the selected landscape.

With your landscape material set up, you can now use the Paint tools to start painting your landscape. Remember that each layer in your landscape material defines the material you are painting on that landscape. You can adjust layer weights to selectively apply materials and modify the appearance of your landscape. For example, you can have layers for rock, gravel, grass, or even create advanced effects like blending snow onto other layers.

By following these steps, you can create a landscape material and use it to paint the ground in Unreal Engine 4, customising the look and feel of your virtual environment.

cypaint

Using the paint tools

To paint the ground in Unreal Engine 4, you will need to use the Landscape Paint mode tools. These tools allow you to adjust layer weights to selectively apply materials and modify the appearance of your landscape.

First, you need to create a landscape material with several layers. You can then select which layer to paint when painting, with each layer corresponding to a different material such as rock, gravel, or grass.

The Paint tools manipulate the weightmap of the landscape, similar to how the Sculpting tools manipulate heightmaps. There are two types of layers: Weight-Blended and Non Weight-Blended. When you paint a weight-blended layer, it will decrease the weight of all other weight-blended layers. For example, if you paint mud, it will remove grass, and vice versa. Painting a non weight-blended layer, on the other hand, does not affect the weights of the other layers. These are used for more advanced effects, such as blending snow onto other layers.

To create a layer, you need to assign a layer info object to it. You can create layer info objects in the Landscape Mode panel. Each layer must use a different layer info object. Once you have created your layers, you can select your active layer from the Target Layers list in the Landscape Mode panel.

Before you can start painting the landscape, you need to apply your Landscape Material to the Landscape. Find your Material in the Content Browser, select it, and then select your Landscape in the world. In the Details panel, expand the Landscape section and look for the Landscape Material input.

cypaint

Weight-blended layers

When creating a landscape layer in Unreal Engine 4, you have the option to choose between a "Weighted (normal)" layer and a "No Weight-Blend" layer. Painting with a Weight-Blended layer will decrease the weight of all other weight-blended layers. For example, painting mud will remove grass, and painting grass will remove mud. This is the most commonly used type of layer info object.

Each landscape layer must have a layer info object assigned to it, and you can create these in the Landscape Mode panel. There are two types of layer info objects: Weight-Blended and Non Weight-Blended. Weight-Blended layers are dependent on each other, so painting with one will affect the weights of the others. Non Weight-Blended layers, on the other hand, are independent, so painting one will not influence the weights of the other layers.

To create a Weight-Blended layer, go to the Landscape Mode panel and click the Plus icon next to the Layer name. Select "Weight-Blended Layer (normal)" and choose a save location for the new layer info object. This layer info object will be saved as an asset in the Content Browser and can be reused with other landscapes. Remember that each layer of your landscape must use a different layer info object.

When using Weight-Blended layers, the Paint tools will manipulate the weightmap of the landscape, similar to how the Sculpting tools manipulate heightmaps. The weightmap and other information about a particular landscape layer are contained within the Layer Info Object. By adjusting the layer weights, you can selectively apply materials and modify the appearance of your landscape.

cypaint

Non-weight-blended layers

When painting the ground in Unreal Engine 4, you will need to create a landscape material with several layers. You can then select which layer to paint, with each layer corresponding to a different type of ground material, such as rock, gravel, or grass.

There are two types of layer info objects: weight-blended and non-weight-blended. This answer will focus on non-weight-blended layers.

To create a non-weight-blended layer, you can either create a layer info object from the layer itself or reuse an existing layer info object from another landscape. Click the Plus icon to the right of the Layer name, select "Non Weight-Blended Layer," and choose the save location for the new layer info object. Each layer of your landscape must use a different layer info object.

It is important to note that when painting textures on different landscape layers, you must understand the differences between blend types (LB Weight Blend, LB Height Blend, and LB Alpha Blend) and layer info types (Weight-Blended Layer Normal and Non-Weight-Blended Layer). When assigning layer info for a texture for the first time, you must select which landscape layer you want to assign the texture to.

cypaint

Applying the material to the landscape

To apply the material to the landscape, you must first create a landscape material with several layers. This can be done by following one of the many free tutorials available online. Each layer will define the material you are painting on your landscape, such as rock, gravel, or grass.

Once you have created your landscape material, you can start applying it to the landscape using the Paint tools. Before you begin painting, you must first locate your material in the Content Browser. This should be located under a folder labelled "Materials". Click on the material to select it, then select the landscape in the world.

In the Details panel, expand the Landscape section and look for the Landscape Material input. Here, you can select the active layer from the Target Layers list in the Landscape Mode panel. The Target Layers list will display each layer with its name and a small thumbnail image.

When painting, you can select which layer to paint, and the paint tools will adjust the layer weights to selectively apply the materials and modify the appearance of your landscape. You can also manipulate the weight of layers using the Ctrl + Shift shortcut while painting.

It is important to note that each landscape layer must have a layer info object assigned to it. There are two types of layer info objects: Weight-Blended and Non Weight-Blended. Weight-Blended layers will decrease the weight of other weight-blended layers when painted, for example, painting mud will remove grass. Non Weight-Blended layers, on the other hand, are independent of each other and do not affect the weights of other layers. These are used for more advanced effects, such as blending snow onto other layers.

Painting Mugs: Making Your Art Last

You may want to see also

Frequently asked questions

To paint the ground in Unreal Engine 4, you need to create a landscape material with several layers. You can then select which layer to paint. For example, one layer might be rock, another gravel, and another grass.

You can find tutorials on how to create a landscape material by searching "ue4 landscape material tutorial" on YouTube.

You can select your active layer from the Target Layers list in the Landscape Mode panel.

There are two main types of layers: Weight-Blended and Non Weight-Blended. Weight-Blended layers affect the weights of other layers (e.g. painting mud will remove grass), while Non Weight-Blended layers are independent and do not affect other layers (e.g. used for blending snow onto other layers).

This means you have likely gone over the texture sample limit. You can either erase a layer or optimize the material to use fewer textures.

Written by
Reviewed by
Share this post
Print
Did this article help you?

Leave a comment