Brightness/Gamma slider

Started by shaun9991, Mon 30/05/2022 15:48:33

Previous topic - Next topic

shaun9991

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
Support Cloak and Dagger Games on Patreon: https://www.patreon.com/user?u=460039

Crimson Wizard

There's System.SupportsGammaControl property that tells if current renderer and mode supports it. AFAIK Direct3D only supports it in fullscreen.

eri0o

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.

shaun9991

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!!!
Support Cloak and Dagger Games on Patreon: https://www.patreon.com/user?u=460039

SMF spam blocked by CleanTalk