A Universal Gamma Control

Started by Calin Leafshade, Wed 16/02/2011 22:15:26

Previous topic - Next topic

Calin Leafshade

Ok so AGS has a Game.SetGamma() function but this only works in DirectDraw in full screen so can anyone think of a way (internally or using a plugin) to increase/decrease brightness or gamma in an AGS game.

My thoughts:

Direct Draw:
AGS gives you direct access to the screen array in DD so it's pretty easy to alter the values for brightness. Although its probably not that fast.

D3D:
Draw a white primitive over the screen in additive mode.

Any other suggestions are welcome and encouraged.

GarageGothic

Any special reason not to use D3D's own SetGammaRamp method?

Calin Leafshade

Not fullscreen compatible.

EDIT No wait, *only* full screen compatible

SMF spam blocked by CleanTalk