Welcome, Guest.
Username: Password: Remember me

TOPIC: Need help with masking bloom effects

Need help with masking bloom effects 3 weeks 5 days ago #1

Hey!
Im looking for some code guru that can help me with masking bloom so it wont affect hud. I'm aware of UI mask and it works but the bloom is still applied so the "aura" is outside the mask. I would do it myself if I knew how to do it.

Anyone that would like to help please?

You can see it here:

As you can see, the UI on the bottom is masked, but the bloom is still processed.
Last Edit: 3 weeks 5 days ago by klotim.
The administrator has disabled public write access.

Need help with masking bloom effects 3 weeks 5 days ago #2

There is no bloom shaders that uses ui mask right? It's been asked soooo many times already.
Last Edit: 3 weeks 5 days ago by klotim.
The administrator has disabled public write access.

Need help with masking bloom effects 3 weeks 5 days ago #3

Just wrote a small generic shader that should do the trick. This is more of a workaround than a solution; masking in the bloom shader itself would definitely be better. As it is unknowable what kind of math the bloom shader uses to apply the bloom the mask should only be black and white (no gradients), otherwise it looks bad. Just place the PreBloom technique right before the bloom and the PostBloom technique right after it.

Here the left part of the bar is masked the right is not:


Warning: Spoiler! [ Click to expand ]
Last Edit: 3 weeks 5 days ago by Daodan.
The administrator has disabled public write access.
The following user(s) said Thank You: klotim

Need help with masking bloom effects 3 weeks 5 days ago #4

wow it works! Thank you!!!
You should submit this one!
The administrator has disabled public write access.

Need help with masking bloom effects 3 weeks 5 days ago #5

Daodan wrote:
There are two pre-bloom techniques because rendering to a texture and the backbuffer simultaneously is not possible.
You can use two passes in the same technique instead of two techniques though.
Cheers, crosire =)
The administrator has disabled public write access.

Need help with masking bloom effects 3 weeks 5 days ago #6

crosire wrote:
You can use two passes in the same technique instead of two techniques though.

Oh, right! I don't know why I haven't done that... embarrassing...
The administrator has disabled public write access.