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 + Spaceto 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 + Spaceand navigate toMega scans > Surfaces. - Drag and drop your downloaded textures into the material editor.
Step 4: Set Up Material Attributes
- Create a
Break Material Attributesnode. - Add a
Landscape Layer Blendnode. Set it to use three layers for now. - Connect the output of the
Break Material Attributesto theLandscape Layer Blend.
Step 5: Create Color Control
- Add a
Make Material Attributesnode. - Use a
Desaturationnode to adjust the texture colors. - Connect nodes as follows:
- Create a
Constant Vectorfor RGB control. - Use a
Multiplynode to combine color values. - Create parameters for
Base Color TintandBase Color Control.
- Create a
Step 6: Configure Normals and Roughness
-
Set up the normal map:
- Create a
Parameternode for the normal map. - Connect it to a
Flatten Normalnode.
- Create a
-
For roughness:
- Use a
Powernode, followed by aMultiplynode for roughness control. - Create parameters named
Base Rough ContrastandBase Rough Intensity.
- Use a
Step 7: Set Up Ambient Occlusion and Displacement
-
Connect ambient occlusion, roughness, and displacement maps:
- Use a
Powernode 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 Coordinatenode. - 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 Blendto 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!