[PyOpenGL-Users] no blue in texture
Brought to you by:
mcfletch
|
From: Fulko v. W. <Ful...@dt...> - 2003-12-24 07:29:45
|
Hello,
After some hard work I have my textures working, but I noticed
something very funny: There is no blue in my textures
The code looke like this:
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGB,
128,128,0,GL_RGB,GL_UNSIGNED_BYTE,
glReadPixels( 0,0,128,128,
GL_RGB, GL_UNSIGNED_BYTE ))
I tried to use shorts (GL_UNSIGNED_SHORT), but then Python
runs out of memory. Using GL_RGBA makes no difference,
and PyOpenGL does not know GL_BGR or more fancy codings.
All is made on Debian GNU/Linux (Woody), with Python 2.2.1 and
PyOpenGL 1.5.7. I will try to upgrade to PyOpenGL 2.0, but
probably not this year. If it is of any interrest: GeForce2GTS
with the NVidia 1.0-4496 driver.
Does anyone know how to get all three colours?
Thanks,
Fulko
--
Fulko van Westrenen
|