PDA

View Full Version : Adjusting contrast / brightness


mathgenius
08-19-2004, 04:32 PM
I'm just testing my game on another machine here; it's very dark with high contrast. I've noticed that some games allow adjusting of contrast / brightness parameters: how do they do that? Re-render all the textures ? Or is there an API for doing this (in directX/OpenGL/windowsXYZ) ?

Simon.

oNyx
08-19-2004, 04:42 PM
http://www.flipcode.com/cgi-bin/msg.cgi?showThread=00000670&forum=3dtheory&id=-1

Search terms used:
opengl gamma ramp

HTH

Donavon Keithley
08-20-2004, 06:48 PM
Direct3D: The SetGammaRamp function on the device.
Win32: SetDeviceGammaRamp