Quantizing an image to 2 bits per color channel (64 colors). Dithering with 8x8 bayer (top) and FAST spatiotemporal blue noise (bottom).
Randomly offsetting bayer each frame, it doesn't converge.
That is weird.
The bayer matrix averages to 0.5 so is unbiased in that regard.
I think it must be due to Bayer having 1/64th values, while the blue noise has 1/256th values.
hmm...
=> More informations about this toot | More toots from demofox@mastodon.gamedev.place
Bayer totally bites it at 1 bit per pixel (8 colors), with a 2x4 matrix. FAST STBN works just fine.
(I'm working on a dithering & stippling blog post)
=> More informations about this toot | More toots from demofox@mastodon.gamedev.place
At 3 bits per color it doesn't converge either though. Still ugly banding in the sky. That's 512 values, so is 1/512. Something else must be going on.
=> More informations about this toot | More toots from demofox@mastodon.gamedev.place
@demofox
=> More informations about this toot | More toots from dougmerritt@mathstodon.xyz
@dougmerritt I thought Mach banding was just a perceptual effect, not a real thing.
=> More informations about this toot | More toots from demofox@mastodon.gamedev.place
@demofox
I'm not sure it should be categorized that way. Like, is infrared a perceptual effect or real? Both.
The human eye+brain can spot the boundaries on e.g. the classic undithered 16 bit color gradual variation. They are really there, and it's a perceptual artifact, both.
With 24 bit undithered color, the boundaries may still be there, but the human eye+brain isn't sensitive enough to be there.
Are there any cases where they are perceived but not really there? Not that comes to mind, but we do have a human perception expert here if that matters to you. Not sure you should care.
=> More informations about this toot | More toots from dougmerritt@mathstodon.xyz
@dougmerritt Check this out, mach bands are purely illusion. There's an animated gif on the page showing the effect that is pretty wild.
https://en.wikipedia.org/wiki/Mach_bands
=> More informations about this toot | More toots from demofox@mastodon.gamedev.place
@demofox
"What's in a name? A rose by any other name would smell as sweet"
You're focusing on what to name it. You need to be focused on what will remove it from human perception.
It is Mach banding.
=> More informations about this toot | More toots from dougmerritt@mathstodon.xyz
@dougmerritt i don't think so. I'm uniform randomly offsetting the bayer matrix each frame and integrating. It's going to converge, or it won't. It's not converging.
The blue noise converges.
Trying to figure out where the bias is coming from.
Right side is the integrated version, left side is a single representative sample in the integration.
=> More informations about this toot | More toots from demofox@mastodon.gamedev.place
@dougmerritt converging to the unquantized image i mean. It's converging to the wrong thing.
=> More informations about this toot | More toots from demofox@mastodon.gamedev.place
@demofox
Well, you know your work better than I do. Just keep an eye out.
=> More informations about this toot | More toots from dougmerritt@mathstodon.xyz
@dougmerritt something is definitely going "wrong" somewhere!
=> More informations about this toot | More toots from demofox@mastodon.gamedev.place
@demofox @dougmerritt
you guys reminded me of interesting phenomenon
https://en.wikipedia.org/wiki/Gibbs_phenomenon
=> More informations about this toot | More toots from TonyVladusich@mathstodon.xyz This content has been proxied by September (ba2dc).Proxy Information
text/gemini