Hi,
Sorry for the broken message before, here it goes again.
It’s rather easy to compute the gamma correction yourself before you issue
the colors to your projector, the formula is something like
corrected = uncorrected ^ gamma
where “corrected” and “uncorrected” are your normalized red, green, blue
values, in GLfloat or GLdouble format, from 0.0f to 1.0f. Of course the
value of gamma changes
You can also take a look at
http://www.delphi3d.net/articles/viewarticle.php?article=gamma.htm
where they have a real nice and simple explanation of what you have to do.
There’s a little downloadable example in there, it’s written in Delphi
Pascal but it’s pretty usable as is. You can also take a look at
http://home.inforamp.net/~poynton/GammaFAQ.html/notes/color/GammaFQA.html
There’s lots of information on Gamma in there. You can also look at the WGL
extension for color tables and gamma, it’s described at
http://www.opengl.org/developers/documentation/Version1.2/WINspecs/wgl_displ
ay_color_table.txt?gamma#first_hit
but I’m not sure if any available OpenGL implementation supports it. I also
remember a little OpenGL demo program that fiddled with gamma correction,
but I can’t locate its source.
Hope this helps !
Alberto.
-----Original Message-----
From: r.berndt@tu-bs.de [mailto:r.berndt@tu-bs.de]
Sent: Wednesday, December 11, 2002 4:46 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Setting the GammaRamp
Hi Alberto,
the problem is, that the computer is attached to a projector. If you
simple paint RGB-values from (0,0,0) to (255,0,0), you see that this is
not continuos; you see very ugly gaps in the intensity. The idea was to
adjust these wrong color values with a specific gammaramp. So its more a
local gamma correction on a few positions.
You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to %%email.unsub%%
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.