So Blurred glass material is impossible in Unreal Engine 4?

I did something similiar for my painting game, using the final render pass with DOF as blur and then using scene color for everything else. Obviously that is far from optimal because you can’t use all those other post FX like Bloom and stuff.
Is there any chance that we can get a seperate blur effect that we can maybe even apply to different things in the post processing material?
Would be also cool to use such blur effect for something like when you get hit or be underwater and screen masking could be animated.
If we would have access to custom masks it would make such things also easier, I made a thread about it here: Masks - Feedback for Unreal Engine team - Unreal Engine Forums

What do you mean by “animated screen masking”? If you mean a mask redefined every frame according to you needs, this setup already allows this, even if it has to be improved.

That is quite a big workaround to get that working! You do all that stuff to get the character in front not affecting the blur of the window but what about other objects that are in front of it, like a wall?

That is a interesting approach which SceneCapture to seperate it but for my painting game I like to have the blur in my post material and defined there, not for a specified object.
Here is a gif of my game, I mainly use the final render DOF blur for blurring the paint near the edges on the side:


The painting mask is basically done by using the translucent pass as a mask, which is quite the hack that then doesn’t allow me to use any other translucency in the game. Custom masks would here be much better too. The problem with your usage of masks is that you basically use up all the possible masks you can have just for your windows. So you can’t have anymore masking in your game for instance for outlines and decal mask is meant for masking decals which you can’t do anymore now.
With animated screen masking I just mean fading a blur in and making it more blurred on the edges of the screen and the like.

I’m also already using CustomDepth and DecalMask for other things, here is recent gif: http://i.imgur.com/B4GU8rR.gif

So you agree with what I said about limitations of this technique.

I know it’s not ideal. This is just experiments while I’m discovering UE4.
However, I think a postprocess material is not the better way to achieve such effects. It would be better to use shaders. But, as already said, I don’t know how to do it.
Or it would be cool to be able to manipulate camera layers but it seems this feature is missing in UE4.

The problem in your gif is that I see blur nowhere. The effect is cool but where’s the blur? Must be a subtle effect.

Looks like there’s going to be another option for blurred glass soon, Spiral Blur Scene Texture

Yes. Isn’t it what already showed in this thread?

Yeah it’s the same thing it looks like, nice seeing how it’s going to be intergrated though.

Yes but looking at the screenshot with this kind of rubik’s cube and balls, it seems that everything is not blurred as you would expect e.g the same way: some parts (shadow on the right) seems more blurred that edges of the cube.

In that image, it was masking the amount of blur by the distance from the object to the glass. You can easily disable that by leaving the depth mask at 1.

But yes, this isn’t nearly as fast or good as a “proper” hardware implemented blur. Some engine programmers actually suggested that more ‘special case’ functions like this be put into a separate content example or sample project rather than going straight into engine since the blur here is not a fully engine-level supported blur. Ie it could be slow and have sorting issues :slight_smile: I am curious what you guys think since I don’t think we decided one way or another for sure.

The things that a ‘proper’ blur can do to be way faster include: creating halfres buffers at each step and then sampling from those. this step alone can be a huge 10X+ speed increase but its simply not possible with materials.
It is possible to make the spiral blur a bit faster by getting 1 free blur by offsetting the initial scenetexture sample by half a pixel which uses the hardwares filtered lookup to get a 1 pixel blur for almost free.

Meanwhile, somewhere in outer space…

So, I changed a lot of things in my postprocess material to get rid of all halos problems, for meshes and pawn, in any point of view in the scene. I don’t use decal mask, etc… It was too complicated and so limited, as davision constructively mentionned it.
With this new setup I can have a big gaussian blur in the glass panel (tweakable) while keeping subtle gaussian DOF.

I still have to improve some things and then i’ll post a video.

Ok, that’s cool: now, I’ve got lightning reflections on my blurring panel.
Looks even better, I think.

Ok, I go on experimenting and playing with this PostProcess Material.
Here I try to get the effect of a white blurring glass, half-opaque and heavily blurring what’s behind.

When I’ll stop playing, I’ll post a video of a demo scene and, if someone is interested, I’ll post my setup also.

I’m looking forward to seeing video of it, curious how much noise you see.

In this last screenshot, it’s noisy but noise is a part of this blurring effect. Like in this example:

59f8217b83cab82703cc970c5ea1d41199616e32.jpeg

But you can tweak this to minimum noise. At least, no more noise than in gaussian DOF with grain=0 in post process settings.

Ok, so here is a video.

I think the effect is pretty neat but it can be improved concerning shadows on the panel.

The level is running in standalone mode, in a 1280x720 resolution, on a quite old config (intel Q6600, GTX 560, 4GO RAM), at 60 fps.

Dayum, that’s awesome.

I’m curious, what is it like if you were to look through two panes with it applied, one at a distance behind the other, will it just look the same as looking through one, or would the second pane kind of double up the effect?

@bogieman987: Thanks a lot, man!

I didn’t try it yet (i’ll do) but playing with actors in a level, i already noticed that refraction of 2 objects were combining.

Nice, how does/will one gain access to this?

For the moment, i’m exploring various other glasses effects with this post process approach and I’d like to make an environnement to show them.
Then, if enough people are interested, i could think about making a few video tutorials.

Cool, I hope enough people get interested then :slight_smile:

Is it possible to kind of turn the effect off and on, so you could have something like those windows that change transparency depending on whether or not there’s electricity?

Like in this video: