x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Is there a working blur shader (hlsl or blueprint) for 4.21?

Hello, does anyone know about a working gaussian blur shader for post-processing material in 4.21? I found a few things but none of them work (this for example: https://forums.unrealengine.com/community/community-content-tools-and-tutorials/21892-gaussian-blur-post-processing-material)

Thank you Daniel

Product Version: UE 4.21
Tags:
more ▼

asked Dec 22 '18 at 11:25 PM in Rendering

avatar image

Daniel Mø
1 1 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

You can't do blur in widget using normal nodes as blur effect requires looping which material graph don't support (well you could do it but it would be gigantic node spaghetti), so custom node is only way, you can find many hlsl examples for blur you could use. The lest post on thread you posted shows code that works in 4.21, if you have any issue then explain what does not work, as we can only guess without any info from you.

But there interesting alternatives you can use:

-There background blur widget in UMG, which you could integrate with HUD and make it cover entire screen and use it as post process, but i not sure if there any performance impact on that as this will run on slate renderer, but considering blur still runs on GPU it should not be much of a issue

-You can use build in Depth of Field effect in post processing, as essentially it is just distance ranged version of blur. Set to GaussianDOF method, Focal Distance to 1 and Focal Range, Near and Far transition to 0. After that you can control streaght of blur with "Far Blur Size". Ofcorse this being DoF it is most likely more expensive then normal blur shader.

more ▼

answered Dec 23 '18 at 02:13 AM

avatar image

Shadowriver
33.3k 915 164 1088

avatar image Daniel Mø Dec 23 '18 at 02:27 AM

Hey. It was me posting that piece of code a few hours ago. Did not know fixing would be that easy. Reading the SceneTexture properties changed a bit and also screen uvs in hlsl. Anyways. Thanks for your answer :)

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question