-
Notifications
You must be signed in to change notification settings - Fork 45
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
Incorrect gamma scaling #91
Comments
I had degamma/gamma workflow for "per pixel" ops already but disabled them because of performance reasons (saving 2 operations per pixel). I now switched to a different resizing lib and added now degamma/gamma before/after resizing. As a nice side effect you should see dramatically faster resize performance since it is using SIMD optimisation. This will be part of the next release. |
Not sure that is easily possible. This is a texture being drawn as opposed to a resize operation. I am unsure if |
Well, you previous upgrade came with a performance bonus, so who knows :) |
Maybe this change of egui to gamma space could help (not yet merged into notan)? emilk/egui#2071 |
Can't believe it, but I think I fixed it. texture format is srgb, and I generate mipmaps so you don't see flickering when zoomed out. Will be in next release. |
I've asked in |
Hello! I see this working right on MacOS, although I see how it works different between the filter and the zoom preview. When you do a Zoom operation (using the edit button, then filter -> resize) it seems to work fine, but when you do a zoom out using the mouse on the preview, it does not, that's because the gamma correction function is applied only when you use the filter. Just to be sure, @eugenesvk is this what's happening to you? Are you using the zoom preview? or are you using the resize filter? Anyway, we probably should apply to the preview the gamma correction too, but that could be expensive for sure to do in real time. Another option that I can think of, is to add support for custom mipmaps on notan, then auto-generate the mipmaps manually for each image loaded and upload them to the GPU, thought I am not sure if that will work for this case because this is the first time I fight with image scaling. |
This issue is primarily about what you call "zoom preview" since it's the most noticeable, don't remember to what extent I've compared the scaling quality in the editing filters |
I see, do you think that it makes sense to create and display the image using gamma correction even if it's not scaled? That way any version of the image (like the auto-generated mipmaps) will use the version corrected. I can try to do some tests and make a PR for it. |
Yes, I believe oculante should be awesome enough to match Preview's quality! |
When zooming at 50% the picture from this http://www.ericbrasseur.org/gamma.html should not have ugly visual artefacts/become fully gray
The text was updated successfully, but these errors were encountered: