Game Development Community

Color banding with HDR enabled

by thanasimos · in Torque 3D Professional · 03/19/2014 (3:55 am) · 3 replies

Hi everyone!

I just played a bit with the HDR postFX and it seems great except from the following issue

s28.postimg.org/k0tbc3n8t/screenshot_001_00001.png

I have enabled only the vignette postfx to indicate the problem but it happens also with flares/sky or other too bright/dark objects. Same issue was reported and here. I use an old 9800GT which supports only the R10G10B10A2 format so probably 10 bits aren't enough to avoid the banding?

#1
03/21/2014 (12:15 pm)
I managed to reduce color banding by setting a smaller value to HDR_RGB10_MAX in torque.hlsl

It should be 1.0<=HDR_RGB10_MAX<=4.0

Smaller values are reducing the color banding due to loss of precision (setting it to 1.0 there is no color banding but it's against the purpose of the hdr fx.

However i can now use tone mapping, bloom etc with my card without this annoying issue.

s27.postimg.org/xcj47m1qb/screenshot_001_00000.png
#3
03/21/2014 (4:31 pm)
That's awesome :D