How to Create a Mirror Material in Unreal Engine 5

Share this post:

As you may be aware, we are working on a project – “Digital Storytelling with VR: Visual Conservation of Kowloon City’s Heritage“. Our goal is to digitally preserve the local cherished old shops in Kowloon City that are at risk of being demolished due to the upcoming government redevelopment. This article is written by one of our student assistants (SHEN Xiao Yuan) who is actively participating in the project, contributing from taking photos to building virtual scene of the old shop. Below, she shares her tips on how to create a mirror material in Unreal Engine 5 while she is constructing the Yuen Mao Hing Kee Tea Shop (源茂興記茶莊) for this project.

Since the reflective objects are difficult to be rendered from photos to 3D model, Xiao Yuan tried to create mirror materials in Unreal Engine to fill in the gaps and unclear areas of the model. Above is an example.

Introduction

Creating a mirror material in Unreal Engine 5 can significantly enhance the visual realism of your environment.
Follow this step-by-step tutorial to build a basic mirror material.

Steps

Step 1: Create a New Material

  1. Open Unreal Engine.
  2. Navigate to the Content Drawer.
  3. Right-click in the Content Drawer and select Material.
  4. Name your material (e.g. M_Mirror).

Step 2: Set Up Material Properties

  1. Double-click on your new material to open the Material Editor.
  2. In the Details panel, configure the following properties:
    • Forward Shading: Check both High Quality Reflections and Planar Reflections boxes.

Step 3: Add Reflection in Material Graph

  1. Add a Color Node:
    • Press 3 and click the left mouse button to create a 3D Vector node.
    • Set all constants to 1 to create a white color, and connect it to the Base Color of the Material node.
  2. Add Parameter Nodes:
    • Press 1 and click the left mouse button three times to create three Constant nodes.
      • Metallic: Set this constant to 1 and connect it.
      • Specular: Set this constant to 1 and connect it.
      • Roughness: Set this constant to 0 and connect it.
  3. Click the Apply button to compile the material.
  4. Close the Material Editor.

Step 4: Apply the Material to a Surface

  1. Add a Reflection Capture Actor:
    • Go to the Place Actors panel.
    • Search for and drag a Cube or Plane into your scene.
  2. Adjust its size and position to encompass the area you want to reflect.
  3. In the Content Drawer, find your new mirror material (M_Mirror) and drag it onto the object.

Step 5: Test Your Mirror

  1. Play the scene and move around to see the reflections in your mirror material.
  2. Adjust the properties as needed to achieve the desired look.

Conclusion

You now have a basic mirror material in Unreal Engine 5! Feel free to experiment with additional nodes and settings to create more complex effects, such as distortion or tinted mirrors. Happy developing!

 

– By SHEN Xiao Yuan (student from MPhil in Chemical and Biological Engineering)

September 13, 2024

You may also be interested in…