Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: blue-noise in wrong gamma space #70

Open
AllenPocketGamer opened this issue Dec 26, 2023 · 1 comment
Open

Bug: blue-noise in wrong gamma space #70

AllenPocketGamer opened this issue Dec 26, 2023 · 1 comment

Comments

@AllenPocketGamer
Copy link

AllenPocketGamer commented Dec 26, 2023

I found a bug in compute.toys (it seems);

The texture provided in compute.toys, blue-noise (the last one), is not stored in linear space but has been mapped to gamma space;

Because the distribution of blue-noise between 0.0 ~ 1.0 is unbiased, the number of pixels >0.5 should be roughly equal to the number of pixels <=0.5;

However, the blue-noise provided by compute.toys obviously does not conform, as shown in the picture:

image

The left side is <= 0.5, the right side is >=0.5;

Only by applying a gamma correction of pow(blue_noise, 1 / 2.2) can the correct image be obtained;

So I suspect that an incorrect gamma mapping, pow(color, 2.2), was added when generating the blue-noise.

__THE BUG SHOWCASE__: https://compute.toys/view/928
@munrocket
Copy link
Contributor

Submit pull request please 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants