Gamma?
BlitzMax Forums/BlitzMax Beginners Area/Gamma?
| ||
One thing I notice when trying my win32 blitzmax program-in-progress on my two different computers, is that there is a huge difference in the coloring on both systems. On one things look 'right' (sprite colors more or less matches the colors as they looked in photoshop) while on the other system things look *much* darker. Which got me searching for a command to set the Gamma Level... But so far I'm coming up empty. Are there any built-in functions to adjust the gamma? If not -- are there any plugins or workarounds that can do this? |
| ||
I guess you could draw a white rectangle over the screen and turn the alpha up and down. |
| ||
That is not gamma. |
| ||
While this code does brighte up a screen, it is not true Gamma -- your example applies a linear correction to an image, rather than adjusting the shape of the curve for the color distribution like true gamma would. In this example, all of the lightest colors would be substituted by pure white, while a gamma corrected image would still be using seperate colors, they would just be closer together. That said: This sure is better than nothing at all, although I wonder if there is some kind of global openGL modifier that can apply a real gamma, without needed to 'waste' the additional resources by drawing a seperate full screen image... Thanks for the suggestion though. |
| ||
You can do it on Windows using the GetDeviceGammaRamp() and SetDeviceGammaRamp() methods from Gdi32.lib. More here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/icm/icm_8ckw.asp No idea how you might do it on Mac and Linux tho. |
| ||
That is not gamma. Yes I know it's not gamma - just a quick fix (at very low alpha) that came to mind. |
| ||
Any chance there will be a built-in SetGamma command at some point, like in B+ for example? |
| ||
Convert your image in your paint software to an appropriate level of gamma just before saving so that when it loads in it is correct. |
| ||
Convert your image in your paint software to an appropriate level of gamma just before saving so that when it loads in it is correct that's not the issue: the image is perfectly fine on my primary computer, but way to dark on another one. If I brighten the image itself so it looks good on computer #2, it will simply look too light & washed out on computer #1, not fixing the issue. Gamma correction by the program itself is the only real solution, since it will allow a user to adjust the brightness of the images look OK on his/her computer. |
| ||
Perhaps there's an OpenGL solution to this - if not lets pester Mark for a gamma function. |
| ||
That's what I'm trying to find out. :-/ |
| ||
setup your monitor correctly and video card driver color settings:P |
| ||
setup your monitor correctly and video card driver color settings:P My main computer is, and the backup one is calibrated just fine on the desktop... But full screen 3D on it is an order of magnitude darker, with no driver options to adjust the coloring in 3D mode. :-P |