Advertisement

Brightness

Started by January 23, 2005 08:05 AM
6 comments, last by ZaphodBeebelbrox 19 years, 10 months ago
How do you setup brightness/contrast in OpenGL
Your post is a bit vague, but i think this is what you mean.

glcolor3f(0.2f,0.0f,0.0f) is a dull red
glcolor3f(1.0f,0.0f,0.0f) is a bright red

www.stickskate.com -> check it out, some gnarly stick skating movies
Advertisement
In most games you can go to options menu and set brightness/contrast of the entire screen, so everything you rendered looks brighter
it could be that the brightness is a float that is changed from 0 dark to 1 bright, and then all colors are multiplied by this value.

eg

glColor3f(0.0f*brightness,1.0f*brightness,0.25f * brightness);

otherwise, Im not sure
www.stickskate.com -> check it out, some gnarly stick skating movies
Quote: Original post by ZaphodBeebelbrox
In most games you can go to options menu and set brightness/contrast of the entire screen, so everything you rendered looks brighter


No, in most games you can set the gamma value, it basicly adjusts the output so that the game is playable eventhough you have a monitor that tend to be a little to dark or to bright.
You can't set the contrast trough application (unless you write a shader for it that is).
It is only on the controls in your drivers or monitor that can adjust the correct brightness/contrast values.
You can blend an additive layer of white, on top of your scene ;)
| Stein Nygård - http://steinware.dk |
Advertisement
Most games adjust the gamma though the OS API.

It's pretty easy, i have some windows gamma adjusting code if you want it.
@skow

of course I want it

This topic is closed to new replies.

Advertisement