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"

Mesh with Post Process Material in Front of Lens Flares?

Is it possible to render a mesh (in this case just a circle), which already has a material with Domain set to Post Process, on top of other post processing effects like lens flares?

Product Version: UE 4.10
more ▼

asked Jan 01 '16 at 04:58 PM in Rendering

avatar image

3 2 3 4

avatar image Logan Bailey ♦♦ STAFF Jan 05 '16 at 08:53 PM

Hello Lumpiluk,

By on top of other post processing effects do you mean a ball that is uninfluenced by the post processing effect. All post processing calculations happen on the same pass. There are ways of assigning information, through Blueprints, to the material by adding the material as a blendable in a post processing volume.

If you would provide a little more information on why you need this particular circle to be drawn in front of a lens flare. I will then look into this issue further.


avatar image Lumpiluk Jan 05 '16 at 09:07 PM

Hello, and thanks for the reply! Our task is to package a perception experiment in a game. It would be nice if we were able to control exactly what color is rendered to the screen while keeping all these other nice dynamic effects.

avatar image Logan Bailey ♦♦ STAFF Jan 05 '16 at 10:27 PM

Well, what you could do is a simple material instance. This would effectively allow you to assign parameters to a material. You could then set up an input, through blueprints, that would allow you to toggle the colors as you see fit.


This is our documentation on material instances that provide step by step instructions on how to set them up and how they can be used. I believe if you are trying to toggle or cycle materials then this will be a good place to start.

Let me know if this is a viable solution.


avatar image Lumpiluk Jan 06 '16 at 02:09 PM

That's what we already did (using dynamic material instances) and it works almost perfectly. Only when there's a lens flare or bloom in front of the object its brightness seems to change. I included a screenshot to try to illustrate the problem.

Lens flares 'on top of' post process material (The relevant objects in this case are the two grey circles in the bottom left and bottom right of the space station. The one on the left is intentionally brighter than the one on the right.)

avatar image Logan Bailey ♦♦ STAFF Jan 06 '16 at 02:30 PM

Ok, what you can do is set the material you want to not be influenced by the lens flare to a post processing material. This is done by opening your material and changing the Material Domain to Post Process. From there add this material as a blendable in a post process volume. From there set the influence to the blendable to 0. This is by default 1 and is located next to the blendable you have added in the volume.

Note: to see color you will need to add a value to the emissive color in your material.

I will add a few screenshots to show my process.

Material :

alt text

Post Process Volume Blendable : alt text

Result :

alt text


avatar image Lumpiluk Jan 06 '16 at 02:47 PM

Okay, thanks again for the quick reply!

I tried your advise but I don't see any change. It's especially noticeable when I set the material to black, but you can also see lens flares in front of the circle in your ppresult.jpg. Lens flare overlapping top-right circle

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey, thank you for giving this a try. After pooling the knowledge of fellow members of my team we have concluded that this should be theoretically possible. This will involve the use of custom depth and some coding. I will be linking you a tutorial that covers the basics of how to pass a material into another depth buffer. Additionally you may have to do some coding to have this material look for effects like lens flares specifically. It is a fairly advanced process and is generally reserved for those with an advanced knowledge of rendering, custom depth, and post processing. I believe this tutorial will point you in the right direction if you still would like to eliminate the lens flares from rendering in front of your mesh.



more ▼

answered Jan 06 '16 at 06:56 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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