sqrt[-1]
02-26-2003, 12:14 AM
What is the correct result from passing GL_RGB (or 3) as the internalFormat parameter in glTexImage2D?
I pass in 8-bit RGB data (with GL_RGB as the internal format) when generating a normalization cube-map and the resulting cube map has horrible banding artifacts. (see the ATI demo at http://www.ati.com/developer/sdk/RadeonSDK/Html/Samples/OpenGL/RADEONCombine3SpecMap.html for a similar artifact)
Now if I pass RGB8 to specify the internal format in glTexImage2D the banding disappears.
(In the ATI demo, change the six lines at line no. ~938 in RadeonCombiner3SpecMap.cpp
glTexImage2D(...., 0, 3,....) to
glTexImage2D(...., 0, GL_RGB8,....)
and the banding artifacts disappear also)
Now I thought that when you specify GL_RGB (or 3) that the driver was to select the most appropiate internal format for the data passed in (as long as it had R,G and B components)
So is this a ATI driver bug or am I reading the spec incorrectly?
I pass in 8-bit RGB data (with GL_RGB as the internal format) when generating a normalization cube-map and the resulting cube map has horrible banding artifacts. (see the ATI demo at http://www.ati.com/developer/sdk/RadeonSDK/Html/Samples/OpenGL/RADEONCombine3SpecMap.html for a similar artifact)
Now if I pass RGB8 to specify the internal format in glTexImage2D the banding disappears.
(In the ATI demo, change the six lines at line no. ~938 in RadeonCombiner3SpecMap.cpp
glTexImage2D(...., 0, 3,....) to
glTexImage2D(...., 0, GL_RGB8,....)
and the banding artifacts disappear also)
Now I thought that when you specify GL_RGB (or 3) that the driver was to select the most appropiate internal format for the data passed in (as long as it had R,G and B components)
So is this a ATI driver bug or am I reading the spec incorrectly?