setstats
View Cart
Category Tutorial TopicsLevel DesignGame Environment Art+DesignGame Modeling: MayaUnreal Engine 4UDKCryEngine 3 SDKCounter-Strike: Global OffensiveLeft4Dead 1 and 2Time Management and ProductivityGetting StartedBrowse Full Tutorial List

NEW: How to Create Game Environment Assets for Unreal Engine in 6 Easy Hours

UE4: How to Create Your First Decal Material

Category: Unreal Engine 4
March 31, 2016
Full Text Tutorial and Notes:

Do you want to add dirt, stains, leaks, blood splatter, stenciled numbers, posters or graffiti on the wall?

One way is create a new texture variation with added detail baked into the texture itself. So you end up with one clean texture without any detail and second texture with added detail, such as a wall stain leak for example.

But, what if you want to have that detail in a different part of the wall? Top instead of bottom?

What about having that stain leak detail on totally different texture in another section of the level? Well, that is another texture you would have to create.

That is wasteful.

What do you do?

The answer: use decals!

Apply a decal to one part of the wall but not to another. Resize the decal to fit a specific Static Mesh and you can even control which geometry receives projected decals and which does not.

Here is an environment without and with decals:

Environment without decals.

Environment with decals.

What are decals exactly?

Decals are materials that can be projected onto existing geometry (Static Meshes, BSP brushes or Skeletal Meshes) that are already placed inside the level.

Majority of games out there use decals:

Max Payne 3 - blood decal on the floor.

Counter-Strike: Global Offensive - paint decals on the wall, floor trash decal.

Crysis 2 - wall leaking stain decal.

Decals are one of the best ways to add additional detail into a level without having to create a new texture or material variation.

How do you create your very first decal in UE4?

Before we jump into creating custom decals you must know the basics first. Decals could get very complex, especially when dealing with texture transparencies and opacities.

So, let's create a simple decal entirely inside UE4. This will show you the essential steps you need to know.

Step 1: Launch/Create UE4 Project

Launch an existing project or create a new project.

Step 2: Create New Material

Create a new material by using the Add New drop down menu in Content Browser and selecting Material:

Name the Material. I named mine "MAT_BasicDecal":

Step 3: Set Material to Deferred Decal

Double-click on the decal material to open Material Editor:

Change Material Domain from Surface to Deferred Decal:

Decal Blend Mode: Translucent

With Translucent blend mode you can assign Diffuse, Metallic, Specular, Roughness, Emissive, Opacity, and Normal properties to material decal.

One side note is that Translucent blend mode does not work in baked, static lighting.

See this tutorial on how to make decals work in baked, static lighting (coming soon).

Step 4: Assign a Base Color Value

Use Constant3Vector node and connect it to Base Color of the Decal:

Select Constant3Vector and in Details panel click on Constant black bar to open Color Picker:

Choose a color to use then click OK:

The material decal will now have Base Color:

Step 5: Save the Material

Click Apply and Save in the Material Editor toolbar to save the decal:

What's Next?

Next is to apply the material to your existing geometry (BSP brushes or Static Meshes) in the level.

Recommened Next Tutorial: UE4: How to Insert, Apply and Use Decals Inside Your Level

Want More on How to Create Custom Decals?

Want to learn more about creating custom decals for UE4? Such as how to create dirt, stains, blood, and stenciled numbers decals?

See this tutorial series for detailed info...

UE4: Custom Static Mesh Formula: Step-by-Step Pipeline to Static Meshes for UE4

© 2008-2017. All articles on World of Level Design™ are copyrighted.
Not to be reproduced without prior written consent.