Download

Glass with Decals help

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

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 :slight_smile:

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.

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.

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

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

Yeah, simple as that. :slight_smile:

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.PNGCapture2.jpg

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

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 Jacky, 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 Capture4.PNG

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

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

Hi,

Did you get this working ?

If so can you show the settings here please.

Cheers

Stevew

Got it working…

Please attached if this helps anyone.

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

Cheers

SteveW

Decrease the metallic value, that should help.

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.

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?