One Landscape Material to RULE THEM ALL - Unreal Engine Tutorial #ue5
Table of Contents
Introduction
In this tutorial, you will learn how to create a versatile landscape material in Unreal Engine 5 that serves as a solid foundation for all your landscape projects. This material allows for easy customization and includes features such as displacement and the ability to eliminate grid lines for a more natural appearance.
Step 1: Set Up Your Project
- Open the Unreal Engine and press
Control + Space
to access the Content Browser. - Create a new folder for your landscape materials to stay organized.
- Download the following materials using the Quixel Bridge:
- Western Ground Gravel Slate 01
- Icelandic Rocky Ground
- Soil Ground
Step 2: Create the Landscape Material
- Right-click in the folder you created and select
Material
, naming itmmore_landscape_R2
. - Open the material editor by double-clicking the material.
Step 3: Import Textures
- In the material editor, press
Control + Space
and navigate toMega scans > Surfaces
. - Drag and drop your downloaded textures into the material editor.
Step 4: Set Up Material Attributes
- Create a
Break Material Attributes
node. - Add a
Landscape Layer Blend
node. Set it to use three layers for now. - Connect the output of the
Break Material Attributes
to theLandscape Layer Blend
.
Step 5: Create Color Control
- Add a
Make Material Attributes
node. - Use a
Desaturation
node to adjust the texture colors. - Connect nodes as follows:
- Create a
Constant Vector
for RGB control. - Use a
Multiply
node to combine color values. - Create parameters for
Base Color Tint
andBase Color Control
.
- Create a
Step 6: Configure Normals and Roughness
-
Set up the normal map:
- Create a
Parameter
node for the normal map. - Connect it to a
Flatten Normal
node.
- Create a
-
For roughness:
- Use a
Power
node, followed by aMultiply
node for roughness control. - Create parameters named
Base Rough Contrast
andBase Rough Intensity
.
- Use a
Step 7: Set Up Ambient Occlusion and Displacement
-
Connect ambient occlusion, roughness, and displacement maps:
- Use a
Power
node for roughness. - Connect the correct channels to ensure proper functionality.
- Use a
-
For displacement, connect directly to the displacement input, enabling it in the material properties.
Step 8: Eliminate Grid Lines
- To remove grid lines, add a
Texture Coordinate
node. - Create parameters for tiling and variation:
- Connect the nodes accordingly and adjust settings to achieve a natural look.
Step 9: Duplicate and Organize
- Copy and paste the material setup to create variations.
- Rename parameters for better organization, such as changing the mid-layer names to
Mid Layer
.
Step 10: Apply the Material Instance
- Save the material and create a material instance.
- Assign the material instance to your landscape in the level editor.
- Adjust the landscape layers using the
Weighted Layer Blend
to define different materials across your landscape.
Conclusion
You have now created a comprehensive landscape material in Unreal Engine 5 that can be easily modified and reused in future projects. Play around with the parameters and textures to achieve the desired look for your landscapes. For further enhancements, consider exploring additional texture variations and blending techniques to refine your landscapes even more. Happy developing!