I found couple posts / questions about glass (or window if you like) material in Unreal Engine 4, so I decided to make easy-to-use templates. Features are described below. Hope you like it.
I use 2 master materials: Glass_Master and GlassShattered_Master to define various glass materials.
Glass_Master uses additional dirt layer (optional)
Parameters you can control:
- Color // Controls glass tint
- Opacity // Controls opacity
- Refraction // Similar to refractive index. I don’t use physical-based values for glass (~1.490 – 1.492) since, in my opinion, it gives unrealistic results for thin surface (image was too distorted).
- Roughness // A constant that defines how rough is the surface.
- SpecStrength // Controls reflections intensity (based on Roughness value)
- Texture tile // Glass/Normal map tile
- UseNormal // Must be enabled if you want to use Normal Map
- NormalMap
- HeightRatio (only in GlassShattered_Master) // controls BumpOffset
- GlassTexture (only in GlassShattered_Master) // It’s input for RGB texture. R channel blends with glass color, G channel controls opacity, B channel – is used for bumpOffset.
- Dirt color // Color of a dirt layer
- DirtIntensity // 0.0 – no dirt layer, 1.0 – maximum dirt map intensity (based on texture)
- DirtMask // Texture used to create dirt. It uses only red channel
- DirtScale // Controls DirtMask tilling
GlassShattered_Master doesn’t have dirt layer.
Example Material Instanced in the package:
– Clean
– Dirty
– Colored (blue, red, etc)
– Milky
– Shattered 1
– Shattered 2
Did you like this pack?
Check out also the Advances Glass Pack (link)
YouTube: (link)
Love you guys for sharing this materials this saved my day today.
Not working with UE 4.7.2 please fix!
Thanks for the feedback. I’ll update that pack this weekend.
Still waiting for that update please hurry up! 🙂
I checked the package yesterday and it works in 4.7.2. You just need to maintain the same folder hierarchy in your root content. I think I’ll just make my packages more User Friendly soon 🙂
Anyway, I started working on an Advanced Glass / Window material pack, so maybe you’ll be interested. I plan to publish it on UE Marketplace.
Here’s a WIP: http://imgur.com/a/zGbog
Let me know if you still have problems.
Thanks!
Wielkie dzięki! 🙂
I don’t get it to work 🙁
Only I see empty folders when open in a project
Any news on your Advanced Glass / Window material pack?
Hello Grobi,
Have you watched this video: https://www.youtube.com/watch?v=LIT2XNTRkI4 ? Recently I’ve updated my packages so all you need to do now is to copy M_Orzelek_Assets folder into your Content folder.
„Any news on your Advanced Glass / Window material pack?”
Yes, it’s 90% finish. I’m making user documentation and example level to showcase new shaders. I’ll release some screenshots next week on this blog.
Thx for your reply
Yes, and I have followed your tutorial for dummys ;P http://www.michalorzelek.com/blog/?page_id=151
Though, all folders seems empty on Unreal
Finally, I updated the Engine to 4.8.1, and everything works correctly. Seems a problem with 4.7.6 version
Great 🙂
I downloaded the files and have them in the correct folders, but when I attempt to use them a message appears, saying 'Failed to load assets’
Hi Bryce,
That’s typical error for incorrect folder structure. If you followed this tutorial: http://www.michalorzelek.com/blog/tutorial-how-to-install-ue4-content-packs/ and still got this message, make sure you’re running UE 4.10 or newer.
Sorry,i’m not expert in materials in UE4 yet,but when i import the materials to my project and click on any material ,it doesn’t work,it shows me a blank material with no parent and no phys material.Any way i can solve this pls?
You didn’t import files to your project properly. It’s a common problem. Follow this tutorial: http://www.michalorzelek.com/blog/tutorial-how-to-install-ue4-content-packs/
I see your website needs some fresh & unique articles. Writing manually is time
consuming, but there is tool for this task. Just search in gooogle for
– Avurker’s essential tools
I regard something really interesting about your web site so I saved to my bookmarks .
Thank you Daniella 🙂
It is normal for the package to only have material instance?? Should not be on thepackage the material and material instance?? I followed your tutorial of how install packages, but when I put the material it dosen’t work
No. The pack has several Material Instances based on Master Materials. Most likely you pasted file into wrong folders. Which UE version do you use?
When I try to extract the ZIP file it asks me for a password, would you know what this is?
Nevermind, I see it
Hello,
I’m seeing something weird when creating a mesh with this material. I have created a simple cube for a window’s glass, applied the material and then used „Assets actions > Create BP using this”.
The result is the following… https://gyazo.com/1d7f90e11b1431be57cbd0a5c7efb12e
So weird. Any ideas?
Try with a lower refraction value (~1.0). It’s not physically correct, so you need try other values on different surfaces.
Hello,nice share.
hey it didnt work for me, unreal f*cked up the textures/materials so its opaque instead of clear, its kinda weird
I suggest downloading the Advanced Glass Material Pack instead. It’s free now! https://www.unrealengine.com/marketplace/en-US/slug/advanced-glass-material-pack
Thank you So much