LWJGL Forum

Programming => OpenGL => Topic started by: radvani on February 08, 2008, 03:18:24

Title: Gamma correction in AWTGLCanvas
Post by: radvani on February 08, 2008, 03:18:24
Hi everyone,

I have a quick question: is it possible to set the gamma ramp when using the AWTGLCanvas? There doesn't appear to be an equivalent to Display.setDisplayConfiguration(...) there. If this isn't possible, does anyone know of a hack to make it possible? My currently application is just too dark on most displays, and it would be nice to be able to jack up the contrast and gamma. Thanks!

Raj
Title: Re: Gamma correction in AWTGLCanvas
Post by: Matzon on February 08, 2008, 08:11:37
The display gamma ramp works directly with the graphics card - and has global gamma changes, not just to your window.
I am not aware of a way to change gamma for a single window. I think you will have to fake it yourself - somehow :/
Title: Re: Gamma correction in AWTGLCanvas
Post by: dronus on February 08, 2008, 21:28:51
If you don't need antialias you can render to a texture and map it via fragment programs to the screen. Alhtough complicated, this way many adjustments to the picture are possible.