Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

BillyBillyBilly

Games Have Brightness Option. How does this work?

This topic is 5341 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
I do it by drawing a big white alpha blended quad over the screen to increase the brightness, or a big black quad to decrease the brightness.

There may be a better way using extensions, but I haven''t come across it.

Share this post


Link to post
Share on other sites
You can adjust your gamma using SetDeviceGammaRamp in windows
(see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/icm/icm_0yi8.asp)

Share this post


Link to post
Share on other sites
I believe the best way of doing this is to set the operating system''s gamma function/gamma ramp. When using SDL with OpenGL, you should be able to use SDL''s gamma wrapper functions SDL_SetGamma() and SDL_SetGammaRamp(). If you aren''t using SDL, you''ll have to use the X or the Win32 functions, respectively.

- JQ

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!