Adjust gamma/brightness?

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Post Reply
User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Adjust gamma/brightness?

Post by Watermelon » 08 Oct 2006, 11:26

How do you adjust gamma in-game,cause I am having gamma problem(screen is too dark in-game).

I noticed there is option in config file called gamma=25,I changed it to 30,99,999,999,but it didnt have any noticeable effect in-game,just want to ask what is an optimal value for that gamma setting?

Thanks.
tasks postponed until the trunk is relatively stable again.

cybersphinx
Inactive
Inactive
Posts: 1688
Joined: 01 Sep 2006, 19:17

Re: Adjust gamma/brightness?

Post by cybersphinx » 08 Oct 2006, 16:04

The current source ignores the gamma setting. I sent a patch to enable it to the mailing list (though I fear something might have eaten it on its way since it hasn't arrived yet...).
We want information... information... information.

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: Adjust gamma/brightness?

Post by Watermelon » 08 Oct 2006, 16:47

cybersphinx wrote: The current source ignores the gamma setting. I sent a patch to enable it to the mailing list (though I fear something might have eaten it on its way since it hasn't arrived yet...).
Hopefully it will reach its destination soon,seems the set gamma function 'pie_SetGammaValue(float val)' is 'empty' in piestate.c in the source I have.
tasks postponed until the trunk is relatively stable again.

cybersphinx
Inactive
Inactive
Posts: 1688
Joined: 01 Sep 2006, 19:17

Re: Adjust gamma/brightness?

Post by cybersphinx » 08 Oct 2006, 18:36

We want information... information... information.

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: Adjust gamma/brightness?

Post by Watermelon » 08 Oct 2006, 19:26

It worked great except the raise/lower gamma hotkeys were not working in-game for some reason(maybe I did something wrong while modifying the source)

Thanks alot.
tasks postponed until the trunk is relatively stable again.

cybersphinx
Inactive
Inactive
Posts: 1688
Joined: 01 Sep 2006, 19:17

Re: Adjust gamma/brightness?

Post by cybersphinx » 08 Oct 2006, 20:50

Oh, you have to remove your keymap.map file whenever keybindings are added/changed. Not very convenient, one of the many things on the todo list...
We want information... information... information.

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: Adjust gamma/brightness?

Post by Watermelon » 08 Oct 2006, 21:53

cybersphinx wrote: Oh, you have to remove your keymap.map file whenever keybindings are added/changed. Not very convenient, one of the many things on the todo list...
Thanks for the tip,the key binding for raise_gamma and lower_gamma show up in in-game key bind gui now,but it still doesnt work.I checked the stderr log,seems setGammaValue only got called 1 time upon game initialization,even though I did ' alt+'num plus' ' several times in in-game menu.
tasks postponed until the trunk is relatively stable again.

cybersphinx
Inactive
Inactive
Posts: 1688
Joined: 01 Sep 2006, 19:17

Re: Adjust gamma/brightness?

Post by cybersphinx » 08 Oct 2006, 22:18

The keys work only in the 3D view, not in the menu. And there's a problem of the gamma being reduced by 0.05 upon returning to the menu if you have changed the gamma in-game... I have to investigate that. EDIT: new patch.
Last edited by cybersphinx on 08 Oct 2006, 23:56, edited 1 time in total.
We want information... information... information.

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: Adjust gamma/brightness?

Post by Watermelon » 09 Oct 2006, 09:50

The hotkeys alt+'num plus' and alt+'num minus' work great in-game and the gamma value saved to config properly with your patch,thanks.
tasks postponed until the trunk is relatively stable again.

Post Reply