Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: shaun9991 on Mon 30/05/2022 15:48:33

Title: Brightness/Gamma slider
Post by: shaun9991 on Mon 30/05/2022 15:48:33
Hi all,

Very quick question - does the Gamma function still work? I created a Brightness slider in my game but nothing appears to happen when I use it. Do I recall correctly that this is due to something outside of AGS's control rendering this obsolete?

Many thanks,
Shaun
Title: Re: Brightness/Gamma slider
Post by: Crimson Wizard on Mon 30/05/2022 16:03:48
There's System.SupportsGammaControl property that tells if current renderer and mode supports it. AFAIK Direct3D only supports it in fullscreen.
Title: Re: Brightness/Gamma slider
Post by: eri0o on Mon 30/05/2022 16:11:28
Alan has a fake gamma implementation, it isn't real gamma, I don't remember if it's in the ags4 branch or his fork of ags4, but the results are very similar and it works in all renderers. So in the future we could possibly look into that.
Title: Re: Brightness/Gamma slider
Post by: shaun9991 on Mon 30/05/2022 18:01:54
Ah that's it! Only supported in Direct3D! My games use OpenGL by default. Thanks guys.

I tested the game in Direct3D (Fullscreen) and the gamma slider does indeed work.

If there was any way that gamma sliders could work in OpenGL that would be amazing!!!