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"

Local Desaturation

For a school project we are creating a game in Unreal 4 but we ran into a problem.

Our game revolves a lot around (movable) light which are save places. In order to clearly show that we want the materials within the light to have a high saturation and everything outside the lights to be desaturation and in the dark (similar to a fog of war) but can't seem to make it work.

We tried various of things such as:

  • Post Process Effects (which doesn't work as everything will be disaturated),

  • Dynamic materials (which doesn't work as within every material the colour needs to be desaturated and this also means that in order to get a "bleed" effect from saturated to desaturated looks weird as well as having to make the ground and such in chunks)

  • We also look at multiple fogs of war but using that would over scope our project

The best thing would be for us to be able to create masks or the likes that we can attach to lights. Location Based Opacity (https://www.youtube.com/watch?v=XYPPd5oLoPM&) seems to be a nice solution but we can't figure out how to link it to saturation or a fog of war effect.

So my question if someone knows a solution which would work best in this kind of situation. (We are able to work in both C++ as well as Blueprint.)

Any help would be much appreciated.

Product Version: Not Selected
Tags:
more ▼

asked Mar 10 '15 at 07:20 AM in Using UE4

avatar image

-Roach-
5 1 3 4

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

1 answer: sort voted first

What might work best is set up some spheres and render them onto the custom depth buffer (renderable components and actors have a "render custom depth" option).

You can then sample that custom depth in the post process chain using a blendable and desaturate based on what you throw into that custom depth buffer.

Basically, using custom depth is a way to get the mask you want to create. What you put in that mask and how you use it is up to you.

more ▼

answered Mar 10 '15 at 07:25 AM

avatar image

Allar
3.1k 51 120 487

avatar image -Roach- Mar 11 '15 at 07:06 AM

Thank you, would this also work with multiple lights (which I was forgot to mention)

avatar image Allar Mar 14 '15 at 01:33 AM

This would work with pretty much any number of things you send to the custom depth buffer.

avatar image -Roach- Mar 14 '15 at 08:15 AM

Thank you very much

(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