PlaneShift

Support => Linux Specific Issues => Topic started by: Lachesis on April 20, 2006, 07:15:50 pm

Title: Gamma correction
Post by: Lachesis on April 20, 2006, 07:15:50 pm
Hi there,

can you implement a slight gamma correction (might be faked tweaking light source brightness) for Linux? I know from another game I\'ve been developing for that different OS use different default gamma values, so for instance Linux appears quite a bit darker than Windows. The game is often that dark that all you see is a black screen with a chat window ;)  I would do it myself but I\'m not familar with the PS source and it\'d take a while to find the right places for corrections. Thank you!

With Regards
Lachesis
Title:
Post by: LigH on April 20, 2006, 08:04:50 pm
I don\'t know which Desktop / Windows manager you are using... in KDE you only need to right-click on the desktop, select the option to configure it, and pull a slider in a graphic card related register.
Title:
Post by: Lachesis on April 21, 2006, 11:57:44 am
Well my Monitor is calibrated for graphical work I only need a (\"wrong\") lighter Gamma for PS.
Title:
Post by: Wired_Crawler on April 21, 2006, 06:25:06 pm
I think this question should go to Crystal Space team. Some time ago gamma settings were supported for software renderer, however:
Quote
Originaly posted by history.old
18-Oct-2002
...
        - Removed support for gamma setting in the renderers.  This was only supported by the software renderer and then only working properly in 8-bit mode.
...
Some remains are still in the code, for example bugplug supports hotkey for adjusting the gamma (obviously entering different values does not do anything), there is even a short note in documentation about \"-gamma\" switch (doesn\'t work). There are also functions GetGamma() and SetGamma(), but I don\'t even know, if they do anything and if they have something to do with screen brightness...
Title:
Post by: DracoDanube on April 22, 2006, 02:49:11 pm
From a terminal type: xgamma -gamma 1.5

The \'1.5\' can be changed obviously but do it in .n increments. I.e:
xgamma -gamma 1.5
xgamma -gamma 1.6
xgamma -gamma 1.7

Draco.
Title:
Post by: Lachesis on April 22, 2006, 03:45:12 pm
Thanks for your information. I didn\'t know CS doesn\'t support this. In that case you\'re right, although the PS client still needs to make use of it even if CS decides to incorporate it. Gamma correction should be provided by the window system, so I guess that\'s why it didn\'t work correctly using the rendering library.