Jump to content
  • Advertisement


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



This topic is 6511 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

How to change brightness and contrast? I use opengl and I tried: glPixelTransferf(GL_XXX_BIAS, ...); glPixelTransferf(GL_XXX_SCALE, ...); but it works not very good and different in different cases. I think contrast and brightness is not opengl specific question. How to change it? (on geforce for example) How it''s done in Quake3? vladimir

Share this post

Link to post
Share on other sites

//this is a part of a similar thread on Opengl.org,the answer posted here is from Bob:

There is no (as far as I know) OpenGL-function to boost brightness. But you can do it yourself if you want to, by calling all color-functions like this.
glColor3f(red*bright, green*bright, blue*bright)

... where bright is the brighness you want. 0=black, 1=standard color, 2=twice as bright and so on.

There is also a function in Win32 called SetDeviceGammaRamp, haven''t tried it but you can look in the documentation.
//End of post

P.s.:Don´t know how q3 adjusts the brightness,but I think it uses the first method,´cause it passes colors for every vertex anyway.For the complete thread go here:


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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!