Announcement

Collapse
No announcement yet.

So Blurred glass material is impossible in Unreal Engine 4?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • So Blurred glass material is impossible in Unreal Engine 4?

    EDIT:

    From this thread, I started to work on various glass and mirror materials.
    If you're interested in what's going on, you can check these 2 posts:
    https://forums.unrealengine.com/show...reflecting-etc
    https://forums.unrealengine.com/show...-Mirror-shader

    Cheers.
    Ed

    ------------------------------


    Hi,
    I searched a way to make a blurred glass material with UE4, I mean a glass material which is blurring all that's behind it.
    So I DON'T MEAN FROSTED GLASS, which can be more or less be done, as shown in this thread: https://forums.unrealengine.com/show...hlight=FROSTED
    I mean regular, smooth blurring, like with a gaussian blur filter in Photoshop and changing in real time.

    I didn't find any tutorial about this on the web.
    I searched in Epic documentation but found nothing really useful for this.
    So, is it something the engine can't do for the moment or did I (certainly) miss something? When I see all the incredible materials and visual effects you can achieve with UE4,
    I have no reason to think that this particular effect couldn't be done.
    Last edited by EdWasHere; 02-07-2016, 09:11 PM.

  • replied
    hello RyanB
    I follow your code,but it reminds me that [SM5] /Engine/Generated/Material.ush(1284,20-40): error X3004: undeclared identifier 'View_RenderTargetSize'.
    Can you answer for me,thank you very much.

    Leave a comment:


  • replied
    I've also made a version designed for performance and added it to the Advanced Glass Shader if anyone feels like taking the easy route: https://forums.unrealengine.com/unre...d-glass-shader

    Leave a comment:


  • replied
    Very nice!

    Leave a comment:


  • replied
    I haven't had a chance to read this thread super closely, so what I've done may be entirely redundant, but I've managed to get what I believe are very compelling results (including refraction) by making use of a modified version of the spiral blur node and a little bit of math. If this is of interest to anyone, let me know and I can also post an explanation and the code + material graph, although it needs a bit of cleanup first.

    Leave a comment:


  • replied
    Originally posted by unit23 View Post
    4.16 includes the Background Blur UMG widget feature. Just add it to a widget and set the amount of blur.

    The post here has become obsolete.
    Hardly. I still learned a lot from this and if you need to blur within a material (not with a material applied in the world) then this helps a lot.

    Leave a comment:


  • replied
    I tried using background blur on a 3D widget as a substitute to a material option but no dice. Background blur doesn’t work on 3D widgets.

    Leave a comment:


  • replied
    Originally posted by unit23 View Post
    4.16 includes the Background Blur UMG widget feature. Just add it to a widget and set the amount of blur.

    The post here has become obsolete.
    unit23. I’ll look into. Thanks for helping an Unreal newbie.

    Leave a comment:


  • replied
    Originally posted by jamesoloughlin View Post
    Wish this was easier to achieve or maybe an updated tutorial of some sort.
    4.16 includes the Background Blur UMG widget feature. Just add it to a widget and set the amount of blur.

    The post here has become obsolete.

    Leave a comment:


  • replied
    Wish this was easier to achieve or maybe an updated tutorial of some sort.

    Leave a comment:


  • replied
    Is there a youtube tutorial where this is explained?

    Cheers.

    Leave a comment:


  • replied
    Originally posted by Filly_The_Owl View Post
    We need blurred/privacy glass solution!
    Just wear pants

    Leave a comment:


  • replied
    Bump for greater justice! We need blurred/privacy glass solution!

    Leave a comment:


  • replied
    Originally posted by Antidamage View Post

    Code:
    float Cycles = 25;
    float c = 1.0f / (3.14159f * BlurAmount);
    float4 Blur = float4(0, 0, 0, 1);
    if (BlurAmount < 2) return SceneTextureLookup(UV, floor(BufferIndex), true);
    [unroll(Cycles)]
    for (int i = 0; i < Cycles; ++i) {
        float e = -(i * i) / (BlurAmount);
        float falloff = (c * exp(e));
        float e2 = -((i + 1) * (i + 1)) / (BlurAmount);
        float falloff2 = (c * exp(e2));
        float combinedFalloff = falloff + falloff2;
        float Offset = falloff2 / combinedFalloff;
    
    
        float2 UVOffset = PixelSize * (i + Offset);
        Blur += 
            (SceneTextureLookup(UV + float2(UVOffset.x, 0), BufferIndex, true)
            + SceneTextureLookup(UV + float2(0, UVOffset.y), BufferIndex, true)
            + SceneTextureLookup(UV + float2(UVOffset.x, UVOffset.y), BufferIndex, true)
            + SceneTextureLookup(UV + float2(UVOffset.x, -UVOffset.y), BufferIndex, true)) * combinedFalloff;
    }
    return (Blur * clamp(13 - BlurAmount, 2, 12) * BlurAmount) / (32 + BlurAmount / Cycles);
    Hey everyone!
    So i'm trying to use this code with a material exactly like you pictured (had no luck putting it into material function, it complains about SceneTexture node). And what i get as a result is that editor crashes when i enter post process volume with this mat assigned. Can anyone help?

    Leave a comment:


  • replied
    I am very much interested in your video tutorials for setting custom blur glass materials. Thank you.

    Leave a comment:

Working...
X