Unreal Engine Materials Guide: Mastering the Basics

16 min read
Unreal Engine Materials Guide: Mastering the Basics
Illustrative image.

Behind the Scenes of Unreal Engine Materials

Let's kick things off with a behind-the-scenes look at what really goes into creating materials in Unreal Engine. You know, the kind of stuff that experts wish everyone knew. It's not just about slapping some textures on a model and calling it a day. There's a whole lot more to it, and understanding the basics can make a huge difference in your projects.

Advertisement

So, what are Unreal Engine materials? Basically, they're the stuff that gives your 3D models their look and feel. Think of them like digital paint that you can apply to your models to make them look realistic, or fantastical, or whatever you're going for.

The thing is, materials in Unreal Engine are way more than just textures. They're actually a combination of textures, shaders, and parameters that work together to create the final look. And that's where things can get a bit tricky, but also really interesting.

In this guide, we're going to dive deep into the world of Unreal Engine materials. We'll cover everything from the basics of how materials work to more advanced techniques for creating complex materials. By the end, you'll have a solid understanding of how to create materials that look great and perform well in your games and simulations.

So, let's get started.

Getting Started with Unreal Engine Materials

What You Need to Know First

Before we jump into the nitty-gritty, there are a few things you need to know. First off, Unreal Engine uses a node-based system for creating materials. This means you'll be connecting different nodes together to create your material. It might sound a bit confusing at first, but once you get the hang of it, it's actually pretty intuitive.

Another thing to keep in mind is that materials in Unreal Engine are highly customizable. You can tweak just about every aspect of a material to get the look you want. This is great because it gives you a lot of control, but it also means there's a lot to learn.

Alright, so let's start with the basics. The first thing you need to do is create a new material. You can do this by right-clicking in the Content Browser and selecting Material. This will create a new material asset that you can double-click to open in the Material Editor.

Once you're in the Material Editor, you'll see a bunch of different panels. The main ones you need to worry about are the Preview panel, the Details panel, and the Graph panel. The Preview panel shows you what your material looks like on a model. The Details panel lets you adjust various settings for your material. And the Graph panel is where you'll be doing most of your work, connecting nodes together to create your material.

Understanding the Material Graph

The Material Graph is where all the magic happens. This is where you'll be connecting different nodes together to create your material. There are a bunch of different types of nodes, but the main ones you need to know about are:

  • Texture Sample: This node lets you sample a texture. You can use it to apply a texture to your material.
  • Constant: This node lets you set a constant value. You can use it to set things like the color or roughness of your material.
  • Math: This node lets you perform mathematical operations on your material. You can use it to do things like multiply or add values together.
  • Parameter: This node lets you create a parameter that you can adjust in the Details panel. You can use it to make your material more customizable.

To connect nodes together, you just drag from the output pin of one node to the input pin of another node. It's pretty straightforward once you get the hang of it.

Creating Your First Material

Alright, so let's create our first material. We'll start with something simple, like a basic colored material. Here's what you need to do:

  1. Create a new material and open it in the Material Editor.
  2. In the Graph panel, right-click and select Constant to create a new Constant node.
  3. Set the color of the Constant node to whatever color you want your material to be.
  4. Connect the output pin of the Constant node to the Base Color input pin of the Material node.

And that's it! You've created your first material. You can see what it looks like in the Preview panel. Pretty simple, right?

Of course, this is just the beginning. There's a lot more you can do with materials in Unreal Engine. But before we get into that, let's talk about some of the basic properties of materials.

Basic Material Properties

So, you've created your first material. Great! But there's a lot more to materials than just the base color. In this section, we'll cover some of the basic properties of materials and how you can use them to create more interesting and realistic materials.

Base Color

The Base Color is the main color of your material. It's what you see when you look at the material straight on. You can set the base color using a Constant node, like we did in the previous section, or you can use a Texture Sample node to apply a texture to the base color.

One thing to keep in mind is that the base color is affected by lighting. So, if you have a light shining on your material, the base color will be brighter in the areas where the light is hitting it.

Metallic

The Metallic property determines whether your material looks like metal or not. If you set the metallic property to 1, your material will look like metal. If you set it to 0, it will look like a non-metallic material, like plastic or wood.

You can set the metallic property using a Constant node, or you can use a Texture Sample node to apply a metallic map to your material. A metallic map is a black and white texture that determines which parts of your material are metallic and which parts are not.

Roughness

The Roughness property determines how rough or smooth your material is. A rough material will scatter light in all directions, while a smooth material will reflect light in a more focused way.

You can set the roughness property using a Constant node, or you can use a Texture Sample node to apply a roughness map to your material. A roughness map is a black and white texture that determines how rough or smooth different parts of your material are.

Emissive Color

The Emissive Color property determines the color of light that your material emits. This is useful for creating materials that glow, like neon signs or lava.

You can set the emissive color using a Constant node, or you can use a Texture Sample node to apply an emissive map to your material. An emissive map is a texture that determines the color and intensity of the light that your material emits.

Opacity

The Opacity property determines how transparent your material is. A material with an opacity of 1 is completely opaque, while a material with an opacity of 0 is completely transparent.

You can set the opacity property using a Constant node, or you can use a Texture Sample node to apply an opacity map to your material. An opacity map is a black and white texture that determines how transparent different parts of your material are.

Normal

The Normal property determines the surface detail of your material. It's used to create the illusion of depth and detail on a flat surface.

You can set the normal property using a Texture Sample node to apply a normal map to your material. A normal map is a texture that contains information about the surface detail of your material. It's usually created from a high-poly model and then applied to a low-poly model to create the illusion of detail.

Putting It All Together

Alright, so those are the basic properties of materials in Unreal Engine. But how do you put it all together to create a material? Well, it's actually pretty straightforward. You just need to connect the appropriate nodes to the appropriate input pins on the Material node.

For example, let's say you want to create a material that looks like rusty metal. Here's what you might do:

  1. Create a new material and open it in the Material Editor.
  2. Add a Texture Sample node and set it to your base color texture.
  3. Connect the output pin of the Texture Sample node to the Base Color input pin of the Material node.
  4. Add another Texture Sample node and set it to your metallic map.
  5. Connect the output pin of the metallic map to the Metallic input pin of the Material node.
  6. Add another Texture Sample node and set it to your roughness map.
  7. Connect the output pin of the roughness map to the Roughness input pin of the Material node.
  8. Add another Texture Sample node and set it to your normal map.
  9. Connect the output pin of the normal map to the Normal input pin of the Material node.

And that's it! You've created a material that looks like rusty metal. You can see what it looks like in the Preview panel.

Of course, this is just one example. There are endless possibilities when it comes to creating materials in Unreal Engine. The key is to experiment and see what works best for your project.

Advanced Material Techniques

Alright, so you've got the basics down. But what if you want to create more complex materials? In this section, we'll cover some advanced material techniques that you can use to take your materials to the next level.

Using Parameters

One of the most powerful features of materials in Unreal Engine is the ability to use parameters. Parameters allow you to create materials that are highly customizable. You can adjust parameters in the Details panel to change the look of your material without having to go into the Material Editor and make changes to the nodes.

To create a parameter, you just need to right-click in the Graph panel and select Parameter. This will create a new parameter node that you can connect to other nodes in your material graph. You can then adjust the value of the parameter in the Details panel to change the look of your material.

For example, let's say you want to create a material that has adjustable roughness. Here's what you might do:

  1. Create a new material and open it in the Material Editor.
  2. Add a Parameter node and set its name to Roughness.
  3. Connect the output pin of the Parameter node to the Roughness input pin of the Material node.
  4. Adjust the value of the Roughness parameter in the Details panel to see how it affects the look of your material.

And that's it! You've created a material with adjustable roughness. You can use parameters to create all kinds of customizable materials. The possibilities are endless.

Using Math Nodes

Another powerful feature of materials in Unreal Engine is the ability to use math nodes. Math nodes allow you to perform mathematical operations on your material. You can use them to do things like multiply or add values together, or to create more complex effects.

For example, let's say you want to create a material that has a glowing effect. Here's what you might do:

  1. Create a new material and open it in the Material Editor.
  2. Add a Texture Sample node and set it to your emissive map.
  3. Connect the output pin of the Texture Sample node to the Emissive Color input pin of the Material node.
  4. Add a Math node and set its operation to Multiply.
  5. Connect the output pin of the Texture Sample node to the A input pin of the Math node.
  6. Connect the output pin of the Math node to the Emissive Color input pin of the Material node.
  7. Adjust the B input pin of the Math node to control the intensity of the glowing effect.

And that's it! You've created a material with a glowing effect. You can use math nodes to create all kinds of complex effects in your materials. The key is to experiment and see what works best for your project.

Using Masks

Masks are another powerful feature of materials in Unreal Engine. A mask is a black and white texture that you can use to control which parts of your material are affected by certain properties. For example, you can use a mask to control which parts of your material are metallic, or which parts are rough.

To use a mask, you just need to add a Texture Sample node and set it to your mask texture. You can then connect the output pin of the Texture Sample node to the appropriate input pin on the Material node. For example, if you want to use a mask to control the metallic property of your material, you would connect the output pin of the Texture Sample node to the Metallic input pin of the Material node.

You can also use masks in combination with other nodes to create more complex effects. For example, you can use a mask to control which parts of your material are affected by a normal map, or which parts are affected by an emissive map.

The possibilities are endless when it comes to using masks in your materials. The key is to experiment and see what works best for your project.

Using World Position Offset

World Position Offset is a powerful feature of materials in Unreal Engine that allows you to create materials that move or change over time. You can use World Position Offset to create effects like flowing water, or moving clouds.

To use World Position Offset, you just need to add a World Position Offset node to your material graph. You can then connect the output pin of the World Position Offset node to the appropriate input pin on the Material node. For example, if you want to create a material that flows like water, you would connect the output pin of the World Position Offset node to the World Position Offset input pin of the Material node.

You can also use World Position Offset in combination with other nodes to create more complex effects. For example, you can use World Position Offset in combination with a noise texture to create a material that looks like moving clouds.

The possibilities are endless when it comes to using World Position Offset in your materials. The key is to experiment and see what works best for your project.

Tips and Tricks for Creating Great Materials

Alright, so you've got the basics down and you've learned some advanced techniques. But how do you create materials that really stand out? In this section, we'll cover some tips and tricks for creating great materials in Unreal Engine.

Start Simple

One of the biggest mistakes people make when creating materials is trying to do too much too soon. It's easy to get overwhelmed by all the possibilities and end up with a material that's overly complex and doesn't look good.

So, start simple. Begin with a basic material and gradually add more complexity as you go. This will help you stay focused and avoid getting overwhelmed.

Use Reference Images

Another tip for creating great materials is to use reference images. Reference images are photos or illustrations of the material you're trying to create. They can help you get a better idea of what your material should look like and give you inspiration for how to create it.

For example, if you're trying to create a material that looks like rusty metal, you might search for photos of rusty metal online and use them as reference images. You can then use these images to guide you as you create your material.

Experiment

Experimentation is key when it comes to creating great materials. Don't be afraid to try out different techniques and see what works best for your project. You might be surprised by what you come up with.

For example, you might try using a different type of noise texture to create a more interesting effect, or you might experiment with different math nodes to see how they affect the look of your material.

Get Feedback

Getting feedback on your materials is another important tip. Show your materials to other people and get their opinions. They might notice things that you hadn't thought of, or they might have suggestions for how to improve your material.

You can also join online communities and forums to get feedback from other Unreal Engine users. There are plenty of people out there who are willing to help and offer advice.

Keep Learning

Finally, keep learning. Materials in Unreal Engine are a complex topic, and there's always more to learn. Keep experimenting, keep getting feedback, and keep learning new techniques.

There are plenty of resources available online to help you learn more about materials in Unreal Engine. You can find tutorials, videos, and articles that cover all kinds of topics related to materials. So, keep learning and keep improving your skills.

Wrapping Up

So, that's it for our guide to Unreal Engine materials. We've covered a lot of ground, from the basics of how materials work to more advanced techniques for creating complex materials. By now, you should have a solid understanding of how to create materials that look great and perform well in your games and simulations.

Remember, the key to creating great materials is to experiment and see what works best for your project. Don't be afraid to try out different techniques and get feedback from others. And most importantly, keep learning and keep improving your skills.

Happy material creating!

FAQ

What is the base color of a material?
The base color is the main color of your material. It's what you see when you look at the material straight on.
How do I make a material look metallic?
To make a material look metallic, you need to set the metallic property to 1. You can do this using a Constant node or a Texture Sample node with a metallic map.
What is a normal map?
A normal map is a texture that contains information about the surface detail of your material. It's used to create the illusion of depth and detail on a flat surface.
How do I create a glowing material?
To create a glowing material, you need to set the emissive color property. You can do this using a Constant node or a Texture Sample node with an emissive map. You can also use math nodes to control the intensity of the glowing effect.