-
Notifications
You must be signed in to change notification settings - Fork 55
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
correct gamma when scaling textures #194
Comments
Hey @woelper! Sorry for the delay, I don't have much time on these dates. I'll try to take a look this week or next and come back. Thanks! |
No worries. Whenever it fits you best. Thanks and enjoy the holidays if you have any! |
Tested in MacOS and Windows, if you use the resize filter it seems to work as expected. I wrote some info on your issue. Although I am keeping the issue open just in case we need to implement something as custom mipmaps. |
Thank you so much for looking into this. Are you saying MacOS and Windows now work the same as Linux when scaling a texture? |
No no, sorry, I explained myself wrong, is what you said, resize filter works fine, zooming in out doesn't. I am looking into this, leave me a few more days to test a few ideas. I tried to do the correction of the gamma on a custom pipeline for the draw2d API but it did not work, so I am going to do a step back, and try to get it working using the graphics API directly. After that, we can decide, if it is worth updating all the draw2d API or creating a custom pipeline for oculante. |
Thank you so much! That sounds great! I am also thinking that at some point in the future - even maybe at the expense of performance - I could load every texture as a floating point image and handle gamma at the end, maybe with a shader. That way, hdr and raw files could be adjusted and edited without loss of precision maybe - what do you think? |
I added support for This is what I discovered and what I tried, after test correcting the gamma on the shader with something like:
I saw that this works well with values around Then I saw that using I was playing a little with how MacOS do this with the It makes sense to do something like that for |
First of all, thanks so much for looking into this! I think your idea could work well, I'd love to try it! As for the shader, I might be completely off, but I was thinking when loading a source image to |
You can load with the crate
And then do the conversion you want and create anew texture on notan with:
I tried to do what you said, but I think I am doing it wrong or I do not understand quite right what I need to do. Anyway, let me know how can I help you! |
This issue is stale because it has been open for 60 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. Do not hesitate to open a new issue if you need it. |
Hi!
I've received a bug report about scaling images handling gamma correctly.
There was some interesting reading here: http://www.ericbrasseur.org/gamma.html?i=1
I thought I had correctly handled this with using
which works perfectly on linux (meaning I get a non-grey scaled image with the sample image:
. However this looks differently in Mac and Windows.
Thanks so much!
The text was updated successfully, but these errors were encountered: