News for hackers. Stuff that matters.
Re:Why do we need dithering? by amelius on Thursday November 13, 2025 @05:44PM (#45921669)
From the article:

> We don't really need dithering anymore because we have high bit-depth colors so its largely just a retro aesthetic now.

By the way, dithering in video creates additional problems because you want some kind of stability between successive frames.

Re:Why do we need dithering? by TinkersW on Thursday November 13, 2025 @05:58PM (#45921827)
The article is simple wrong, dithering is still widely used, and no we do not have enough color depth to avoid it. Go render a blue sky gradient without dithering, you will see obvious bands.
Re:Why do we need dithering? by mrandish on Thursday November 13, 2025 @07:05PM (#45922325)
Yep, even high quality 24-bit uncompressed imagery often benefits from dithering, especially if it's synthetically generated and, even if it's natural imagery, if it's processed or manipulated - even mildly - it'll probably benefit from dithering. If it's a digital photograph, it was probably already dithered during the de-bayering process.
Re:Why do we need dithering? by Sesse__ on Thursday November 13, 2025 @05:47PM (#45921713)
You can do with a static dither pattern (I've done it, and it works well). It's a bit of a trade-off between banding and noise, but at least static stuff stays static and thus easily compressable.
Re:Why do we need dithering? by dTal on Thursday November 13, 2025 @05:47PM (#45921706)
Yeah, the article is wrong about that.
Re:Why do we need dithering? by amelius on Thursday November 13, 2025 @05:48PM (#45921717)
It would be nice if you had some examples.
Re:Why do we need dithering? by electroly on Thursday November 13, 2025 @06:46PM (#45922200)
A very simple black-to-white gradient can only be, at most, 256 pixels wide before it starts banding on the majority of computers that use SDR displays. HDR only gives you a couple extra bits where each bit doubles how wide the gradient can be before it starts running out of unique color values. If the two color endpoints of the gradient are closer together, you get banding sooner. Dithering completely solves gradient banding.
Re:Why do we need dithering? by slabity on Thursday November 13, 2025 @05:59PM (#45921839)
Acerola recently made a video about how Silk Song has banding with dark colors due to poor dithering (and how to fix it): https://www.youtube.com/watch?v=au9pce-xg5s

Highly recommend for any graphics programmer that might think dithering is unnecessary or simply a "aesthetic choice".

Re:Why do we need dithering? by knollimar on Thursday November 13, 2025 @08:10PM (#45922729)
To lend more credibility, the devs added more dithering in the next patch.
Re:Why do we need dithering? by dTal on Thursday November 13, 2025 @06:06PM (#45921911)
A great many can be found here: https://en.wikipedia.org/wiki/Dither

(also a very nice explanation of why dithering is a fundamental signal processing step applicable to many fields, not just an "aesthetic".)

Re:Why do we need dithering? by amelius on Friday November 14, 2025 @04:49AM (#45925411)
Interesting!
Re:Why do we need dithering? by Dylan16807 on Thursday November 13, 2025 @06:42PM (#45922181)
The average desktop computer is running with 8 bit color depth the vast majority of the time, so find or generate basically any wide basic gradient and you'll see it.
Re:Why do we need dithering? by doormatt on Thursday November 13, 2025 @07:08PM (#45922347)
I think you mean 24 bit. 8 bit would only be 256 colors total.
Re:Why do we need dithering? by recursive on Thursday November 13, 2025 @07:20PM (#45922438)
8 bits for each of R G and B. So a grey-scale gradient indeed has only 256 colors available. Any gradient also will have about that many at most.
Re:Why do we need dithering? by kragen on Thursday November 13, 2025 @07:35PM (#45922528)
In most gradients, the transitions in R, G, and B are at different places.
Re:Why do we need dithering? by recursive on Thursday November 13, 2025 @08:47PM (#45922929)
True. Also, in most gradients, the full range of R G and B is not used.

In rgb(50, 60, 70) to rgb(150, 130, 120), there are only 200 total transitions.

Re:Why do we need dithering? by mrandish on Thursday November 13, 2025 @10:01PM (#45923380)
In terms of color spaces, SRGB (the typical baseline default RGB of desktop computing) is quite naive and inefficient. Pretty much its only upsides are its conceptual and mathematical simplicity. There are much more efficient color spaces which use dynamic non-linear curves and are based on how the rods and cones in human eyes sense color.

The current hotness for wide color gamuts and High Dynamic Range is ICTCP (https://en.wikipedia.org/wiki/ICtCp) which is conceptually similar to (https://en.wikipedia.org/wiki/LMS_color_space).

Re:Why do we need dithering? by recursive on Thursday November 13, 2025 @10:27PM (#45923518)
The same logic applies to any other color space with 24 total bits of resolution.
Re:Why do we need dithering? by kragen on Thursday November 13, 2025 @09:31PM (#45923210)
True!
Re:Why do we need dithering? by nofriend on Thursday November 13, 2025 @05:55PM (#45921806)