Adjusting gamma

Is there a way to adjust gamma under jogl ?

// Tomas

It’s not strictly an openGL function… you could always use the gamma/brightness/contrast fiddler in LWJGL.

Cas :slight_smile:

I know but there should be a wrapped platform neutral way of handling this.

… I have thought of using LWJGL or going JNI , but none of them feels like a good longterm viable solution.

Is there no way to fiddle with this directly in java or jogl ?
// Tomas

There is currently no support in JOGL for this although we could add it if necessary. It is a little unclear exactly where it would go as it seems to only apply to the full-screen case, correct?

You should feel free to file an RFE using the bug database on java.sun.com as the correct long-term place for this functionality would probably be in the JDK. Please also feel free to file a bug using the JOGL Issue Tracker and we’ll try to include a couple of APIs to do this.

I think that you actually would want to change the settings in both fullscreen and windowed mode even if it would affect your entire display. Some users even like to play games in windowed mode. Gamma correction is important when for example dealing with lightmaps. In let say a Q3 map they lightmaps are very dark, you could do the correction in software but in the end you loose detail since a texture can’t becommer brighter the white.

I will do so.

// Tomas

Is there some progress in adding a toolkit for adjusting gamma, brightness etc. ?

// Tomas

Not yet. We are very busy with JSR-231 and other work. If you have time, please feel free to contribute some code.