# Glass with Decals help

**URL:** <https://forums.unrealengine.com/t/glass-with-decals-help/4025>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [May 8, 2014, 9:38pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025 "2014-05-08T21:38:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![derezzed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@derezzed](https://forums.unrealengine.com/u/derezzed)\
**Post date:** [May 8, 2014, 9:38pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/1 "2014-05-08T21:38:53Z")

</div>

Hi All,

Can someone explain how I would create a texture for a glass panel with some sort of decals/sticker on it, similar to what you see in this image: [http://crazysexycool.co.za/wp-content/uploads/2012/04/frosted-glass.jpg](http://crazysexycool.co.za/wp-content/uploads/2012/04/frosted-glass.jpg)

I’ve been playing around with composite materials in Max and got it working about 50% of the time in Max, not really knowing why or how.

I’d like to get this working in Unreal engine for a project I’m about to start.

Can someone help me out here please 🙂

---

<div class="post-metadata">

**Author:** ![iamgoret](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@iamgoret](https://forums.unrealengine.com/u/iamgoret)\
**Post date:** [May 9, 2014, 12:45am UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/2 "2014-05-09T00:45:55Z")

</div>

I haven’t created decals myself but I believe you need to create a material with the decal function enabled. You can then apply this material to a deferred decal actor which you then place on a surface in your map, such as a glass wall/window.

> **[Decal Actor User Guide](https://docs.unrealengine.com/4.27/en-US/Basics/Actors/DecalActor/)**
>
> A guide to using the Deferred Decal actor.

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [May 9, 2014, 1:01am UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/3 "2014-05-09T01:01:51Z")

</div>

I don’t think decals work on translucent materials currently. You can do that example in only the glass material, btw, and it would probably be cheaper than a decal anyway.

---

<div class="post-metadata">

**Author:** ![Michael\_Boeni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Michael\_Boeni](https://forums.unrealengine.com/u/Michael_Boeni)\
**Post date:** [May 9, 2014, 1:17pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/4 "2014-05-09T13:17:56Z")

</div>

Translucency is a bit of a weakness of Engine at this time, due to the deferred approach.

@: How would you go about that with only the glass material? An opacity mask?

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [May 9, 2014, 1:50pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/5 "2014-05-09T13:50:06Z")

</div>

> [@IMX;33526](#):
>
> @: How would you go about that with only the glass material? An opacity mask?

Yeah, simple as that. 🙂

---

<div class="post-metadata">

**Author:** ![derezzed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@derezzed](https://forums.unrealengine.com/u/derezzed)\
**Post date:** [May 9, 2014, 8:32pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/6 "2014-05-09T20:32:31Z")

</div>

OK I got decals working, but they seem to be semi-transparent? I couldn’t figure out how to make them opaque, see images attached.

With regards glass, I applied the glass material to the wall and my decals disappeared. What’s the best option for adding decals to glass?

What I want to achieve is a white strip going across a glass panel.

![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/c/4ca9d5b48ff87c724da720368b88b35ec1a83a2f.png)

 ![Capture2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/8/8824ab867290739a267b9640d2e2650f4ceb0236.jpeg)

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [May 9, 2014, 9:01pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/7 "2014-05-09T21:01:23Z")

</div>

You are either ignoring my posts or not seeing them for some reason, drezzed. 😜

Forget about decals for this purpose. Make sure your glass mesh is properly UV mapped, then make your alpha mask for the shape you want to have on the glass and use it for opacity and diffuse masks.

---

<div class="post-metadata">

**Author:** ![derezzed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@derezzed](https://forums.unrealengine.com/u/derezzed)\
**Post date:** [May 9, 2014, 11:20pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/8 "2014-05-09T23:20:00Z")

</div>

> [@;35096](#):
>
> You are either ignoring my posts or not seeing them for some reason, drezzed. 😜
> 
> Forget about decals for this purpose. Make sure your glass mesh is properly UV mapped, then make your alpha mask for the shape you want to have on the glass and use it for opacity and diffuse masks.

Thanks , sorry I didn’t try your suggestion before!

I think I’ve done what you said, see the pics below - now, that obviously doesn’t look like a piece of glass with a sticker on it, how would I do that?

Do I need to add another colour (light blue?) based on the reverse of the alpha map or something? (it’s late and my brain isn’t working, sorry)

 ![capture3.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/b/ab001a6273987254d3e368f7eb641072a647442c.png) ![Capture4.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/5/857353ba5c363ac3c5c93c0c02ba926d1e8960bb.png)

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [May 9, 2014, 11:27pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/9 "2014-05-09T23:27:48Z")

</div>

Now use that opacity mask as the alpha of a Lerp, and give 1 for A and 0,5 for the B values(or vice versa) then plug that Lerp into opacity. Currently the rest of your mask is pure black and pure black means completely transparent. For the rest of the values to achieve glass looks check out the glass material that comes with the engine.

---

<div class="post-metadata">

**Author:** ![derezzed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@derezzed](https://forums.unrealengine.com/u/derezzed)\
**Post date:** [May 9, 2014, 11:47pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/10 "2014-05-09T23:47:58Z")

</div>

> [@;35477](#):
>
> Now use that opacity mask as the alpha of a Lerp, and give 1 for A and 0,5 for the B values(or vice versa) then plug that Lerp into opacity. Currently the rest of your mask is pure black and pure black means completely transparent. For the rest of the values to achieve glass looks check out the glass material that comes with the engine.

I get an error

 ![6c287a3eb23c5b97417016cb64cdbbc88c050cbb.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/2/6c287a3eb23c5b97417016cb64cdbbc88c050cbb.jpeg)

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [May 9, 2014, 11:54pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/11 "2014-05-09T23:54:19Z")

</div>

Plug the red channel of the mask into the alpha.

Erm…and change the blend mode from masked to translucent and translucency lighting mode to surface.

---

<div class="post-metadata">

**Author:** ![derezzed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@derezzed](https://forums.unrealengine.com/u/derezzed)\
**Post date:** [May 10, 2014, 9:41am UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/13 "2014-05-10T09:41:52Z")

</div>

> [@;35534](#):
>
> Plug the red channel of the mask into the alpha.
> 
> Erm…and change the blend mode from masked to translucent and translucency lighting mode to surface.

That looks closer to what I’m looking for!

Thanks for your help, I’ll have a play and see what results I can produce.

 ![6bf86ae75879339332831e1a19ab57d4b5aeb749.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/f/6bf86ae75879339332831e1a19ab57d4b5aeb749.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e8033d6f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e8033d6f](https://forums.unrealengine.com/u/anonymous_user_e8033d6f)\
**Post date:** [September 3, 2014, 10:42am UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/14 "2014-09-03T10:42:06Z")

</div>

Hi,

Did you get this working ?

If so can you show the settings here please.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e8033d6f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e8033d6f](https://forums.unrealengine.com/u/anonymous_user_e8033d6f)\
**Post date:** [September 3, 2014, 12:31pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/15 "2014-09-03T12:31:44Z")

</div>

Got it working…

Please attached if this helps anyone.

The only thing I don’t get is the diamonds should be light grey.

Cheers

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [September 3, 2014, 1:06pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/16 "2014-09-03T13:06:59Z")

</div>

> [@classic12;133095](#):
>
> The only thing I don’t get is the diamonds should be light grey.

Decrease the metallic value, that should help.

---

<div class="post-metadata">

**Author:** ![jonzie23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jonzie23](https://forums.unrealengine.com/u/jonzie23)\
**Post date:** [November 14, 2014, 9:25pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/17 "2014-11-14T21:25:26Z")

</div>

I’m not sure if it help in any way, nor if it’s relevant, but when I had similar problem I just noticed that I was saving my TGA files in 24 bit instead of 32. Once I changed it everything started to work.

---

<div class="post-metadata">

**Author:** ![Jonas\_Molgaard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonas\_Molgaard](https://forums.unrealengine.com/u/Jonas_Molgaard)\
**Post date:** [November 11, 2015, 7:09am UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/18 "2015-11-11T07:09:58Z")

</div>

Hi there, im kinda new to this. And from the above i havent really figured out how to apply a defeered decal with a solid look to say a wooden surface or concrete. Can someone point me out to a solution?

---

<div class="post-metadata">

**Author:** ![MalinduDazz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/malindudazz/32/569669_2.png) [@MalinduDazz](https://forums.unrealengine.com/u/MalinduDazz)\
**Post date:** [May 3, 2022, 7:33am UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/19 "2022-05-03T07:33:26Z")

</div>

easiest thing is apply maked material in to the plane and move it close to the glass

---

<div class="post-metadata">

**Author:** ![utopia.Game2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/utopia.game2/32/763789_2.png) [@utopia.Game2](https://forums.unrealengine.com/u/utopia.Game2)\
**Post date:** [December 27, 2023, 4:05pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/20 "2023-12-27T16:05:15Z")

</div>

After 1 day Searching i got 2 way You Can Apply Decal On Translucent Materials

1. you can make a blueprint actor and give your Decal Material On that and spawn it where ever you want …  
– Note 1: the actor which you spawning decal on it if moving . simply “attach actor to actor” OR “attach actor to component”  
–Note 2. THIS UGLY solvation just work on somethings Are Like Plan … so the BP\_Decal you made will Fix on that … BUT if you have something like Circle , it will not work as you want  
 ![SweetOperation - Unreal Editor 12_27_2023 7_42_06 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/5/7a5c4c4e2ece1a619df50e1c17f134f24190e99b.jpeg)

Way 2 (Recommended by ME 😉 ). All OF Us Know the Decals Will not Render On Translucent So what we can Do ?  
 → Make a material then give the channel Surface And Masked.  
then on Graph just give Some opacity To Opacity Input  
Note 1. Engine Just Modify the Masked For Decals Which They Have Opacity Above " 0.4 " … (Care About That)  
Note 2. You Can To Your Glass Some Color If You Want  
EDIT :  
Note 3 : 👉 You Have To Go Edit \> Project Setting \> Rendering \> Anti-Aliasing Method To MSAA ( For Working Opacity Mask Between 0 and 1 )

🔎 The Mask make Problem With Niagara =\> if Glass is between your camera and Niagara … the mask material will Not Render That ( HAHA)

 ![2122323](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/b/54b55f28eb11f96e235a0163666742bf788f0d44.png)

Result OF Way 2.

 ![121212](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/e/4fec3c7b4f09591b11736902ab7b9a8ac2bd3b5d.png)  
 ![SweetOperation Preview NetMode_ Standalone 0 (64-bit_D3D Shader Model 6) OpenXR SteamVR_OpenXR (2.2.3) 12_27_2023 7_18_17 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/d/abd2f8c6635bd7b9a18f1b6a21f1c3ac7bf46cde.jpeg)

---

<div class="post-metadata">

**Author:** ![Herry013](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Herry013](https://forums.unrealengine.com/u/Herry013)\
**Post date:** [January 5, 2024, 3:57pm UTC](https://forums.unrealengine.com/t/glass-with-decals-help/4025/21 "2024-01-05T15:57:31Z")

</div>

Hello, may I ask how your Masked material can be transparent at 0.4? Isn’t it either 0 or 1

[Next page](https://forums.unrealengine.com/t/glass-with-decals-help/4025.md?page=2)
