View Full Version : How can I apply brightness and contrast In OpenGL ?
I want to apply brightness and contrast to my textures. But I did not find any GL commands. Can you help me !.
(p.s.: I tried lighting and glTexParameter() commands but they seems not solving my problem. I want more contrast than their supply. )
02-06-2001, 02:18 AM
why don't you apply the brightness and contrast to your original bmp or tiffs???
1- Because I dont want to modify my original bitmaps.
2- Since the users of my application want to change the contrast of bitmaps in real time.
3- Since I am using OPENGL to display images by making them as texture.
02-06-2001, 05:24 AM
Are you using Windows? If so, look into setting the hardware gamma ramp using GetDeviceGammaRamp and SetDeviceGammaRamp. Also, most Voodoo cards should have an OpenGL extension available (can't place the name of it at the moment) to adjust the gamma on those cards.
I am using Windows NT 4.0 and it doesnt support GetDeviceGammaRamp. And Also I have one Oxygen Card and one ATI Rage128. I dont know what extentions they supports.
02-06-2001, 06:38 AM
According to MSVC 6.0 documentation both GetDeviceGammaRamp and SetDeviceGammaRamp are supported by NT 4.0
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.