Color Banding

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Color Banding

Post by another_commander »

You may have noticed that in certain areas where dark color gradients may be present, like near the terminator of planets, sometimes color banding is noticeable. Well, no more. One more benefit of the upgraded rendering engine is that such problems can now be very easily mitigated. It's just one line of shader code that adds an imperceptible amount of noise, just about enough to destroy the banding without otherwise affecting the image quality.


Example without dithering (up to revision 08c0079) - gamma in both images has been exaggerated for demonstration purposes, note the color banding in the center
Image

With dithering (revision e8ca13a onwards)
Image
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Color Banding

Post by Cody »

another_commander wrote: Tue Aug 30, 2022 3:35 pm
... like near the terminator of planets
Talking of terminators, any chance that the "blocky" effect can be fixed? Or am I the only one plagued by it?
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Color Banding

Post by another_commander »

Not sure what the blocky effect is. Got an example?
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Color Banding

Post by Cody »

This is from today's release, almost vanilla (only HUD, ship, and save-file added):

Image
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Color Banding

Post by another_commander »

Ah, yes, this one. Well, we know that it is caused by the cloud layer on the default atmospheres. It will be gone if you disable clouds by setting their alpha to 0 globally.

Unfortunately, I have zero idea what exactly is causing it. I feel pretty certain that it must be a silly one line fix somewhere, but have never been able to track it down and it bothers me quite a bit. Hopefully we'll figure it out one of these days.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Color Banding

Post by Cody »

another_commander wrote: Tue Aug 30, 2022 4:26 pm
It will be gone if you disable clouds by setting their alpha to 0 globally.
Aye, that's how I've been running for years. Oh well!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Post Reply