Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Calin Leafshade on Wed 16/02/2011 22:15:26

Title: A Universal Gamma Control
Post by: Calin Leafshade on Wed 16/02/2011 22:15:26
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.
Title: Re: A Universal Gamma Control
Post by: GarageGothic on Thu 17/02/2011 00:16:23
Any special reason not to use D3D's own SetGammaRamp method?
Title: Re: A Universal Gamma Control
Post by: Calin Leafshade on Thu 17/02/2011 00:21:29
Not fullscreen compatible.

EDIT No wait, *only* full screen compatible