   How to lighten entire scene
  Hi, my scene is too dark and I was wondering if there was an easy way to lighten up an entire scene.  Sorry if this is a dumb question. 
  Set the ambient value to a higher onelike instead of:ambient[]={0.1f,0.1f,0.1f,1.0f};do:ambient[]={0.2f,0.2f,0.2f,1.0f};Which makes the minimum light value twice as light.You also might want to add materials.;  Thanks but I do I do not use glLight* at all as my surfaces are lighted using pre-calculated lightmaps.  I was thinking of something that would lighten every screen pixel, like the gamma control one finds in some games. ;  well you can still use the lighting for ambient lighting ;  And why not use gamma as in games?void AdjustGamma( int iGamma = 0 ) {// iGamma: ranges from -255 to +255; negatives make the screen "darker"    HDC hDC = GetDC(GetDesktopWindow());    bool bMinus = iGamma < 0;    if( bMinus ) iGamma = -iGamma;    iGamma = min(max(iGamma, 0), 255);    if( hDC ) {   const int iNum = 256;   struct sRamp {  unsigned short wRed[iNum];  unsigned short wGreen[iNum];  unsigned short wBlue[iNum];   } wRamp;   if( GetDeviceGammaRamp(hDC, (LPVOID)&wRamp) ) {  for( int i = 0; i < iNum; i++ ) { if( bMinus ) {wRamp.wRed   = unsigned short( (255 - iGamma)*(i) );wRamp.wGreen = unsigned short( (255 - iGamma)*(i) );<br>wRamp.wBlue  = unsigned short( (255 - iGamma)*(i) );<br>} else {<br>wRamp.wRed   = 65535 - unsigned short( (255 - iGamma)*(255 - i) ); <br>wRamp.wGreen = 65535 - unsigned short( (255 - iGamma)*(255 - i) );<br>wRamp.wBlue  = 65535 - unsigned short( (255 - iGamma)*(255 - i) );    <br>}   <br>}    <br>BOOL bRet = SetDeviceGammaRamp(hDC, (LPVOID)&wRamp);<br>if (!bRet) Log << "<!> SetDeviceGammaRamp failed!\n";<br>} <br>ReleaseDC(GetDesktopWindow(), hDC);   <br>}<br>}<br> </pre>   </i>  <br><br>You should never let your fears become the boundaries of your dreams.   ;  Just curious...Anyone know how to do the same in a non-windows specific way?SDL? ;  That''s cool Darkwing, thanks - Does that gamma adjustment have to be done every frame?   Love means nothing to a tennis playerMy nothing-to-write-home-about OpenGL webpage. (please pardon the popups!);  You could just simply draw a white, blended rectangle over the entire screen . ;quote:Original post by James Trotter  Just curious...Anyone know how to do the same in a non-windows specific way?SDL?   SDL_SetGamma;quote:Original post by Living Monstrosity  You could just simply draw a white, blended rectangle over the entire screen .That is something you don''t want to do. Burning fillrate for something that looks ugly is just plain stupid.quote:Original post by DalTXColtsFan  That''s cool Darkwing, thanks - Does that gamma adjustment have to be done every frame? Just call it once in the beginning to set gamma. But remember to call it once again before the porgram closes with gamma = 0 to set it back to normal, or your windows might look a bit bright . You should never let your fears become the boundaries of your dreams. 