Explanation of HDR in 2D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By The_Duskitty
:warning: Old Version Published before Godot 3 was released.

How would i set it so a single object glows like in the demo cause i cant figure it out

:bust_in_silhouette: Reply From: Bojidar Marinov

The idea is the following:

  1. Use a WorldEnvironment node so that you can change glow and similar parameters.
  2. Make a new Environment resource, and set the “Background/Mode” property to canvas, and its HDR and SRGB to enabled. Also, you can enable glow as well, since it makes a nice effect.
  • Glow would make objects that are too bright to bleed into other objects, while HDR would make the whole scene darker when it is too bright (as a whole).
  • SRGB is needed for proper HDR.
  1. Pick the object that you want to make glowing, and set its modulate to a color, that is out of the (0…1) range. You can do this by checking the “RAW Mode” option in the color picker.
  • If for any reason you don’t use a sprite or similar node, you can still use modulation via shaders – just multiply the source color by the modulate color.
  1. Profit

It doesnt work for me for some reason , and i dont know why

The_Duskitty | 2016-03-18 17:59

Are you sure you done step 3 correctly? If the other steps don’t work, step 3 would leave you with a white sprite, while otherwise it would be a blurred white sprite :)

Bojidar Marinov | 2016-03-18 19:43

That’s odd :confused: Cause nothing changed for me

The_Duskitty | 2016-03-19 00:06

That’s very weird, maybe my procedure isn’t correct? I’m going to test it, and will update later.

Bojidar Marinov | 2016-03-19 08:42

My bad, I would edit the missing information in immediately

Bojidar Marinov | 2016-03-19 09:39

I tried too, but my sprite only gets brighter: http://zylannprods.fr/dl/godot/Glow.zip

  • Do we really need HDR to make things glow?
  • Can we choose the glow curve or shader that generates the glow?

Zylann | 2016-03-22 19:10

Thanks for the tutorial. Is HDR a shader? How much does using HDR affect performance if it is used on mobile GPU?

lukas | 2016-03-25 12:20