Gamma correction in AWTGLCanvas

Started by radvani, February 08, 2008, 03:18:24

Previous topic - Next topic

radvani

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

Matzon

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 :/

dronus

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.