06-30-2004, 06:21 AM
Hallo,
for three days I try to texture my objects without succeed ...
My work is based on the good understandable "NeHe"-Tutorial. Unmodified all sources of this tutorial run very well but when I edit the texture-section it drops out ...
here is my source:
Traceback (most recent call last):
File "texturetest.py", line 182, in ?
main()
File "texturetest.py", line 178, in main
InitGL(1024, 768)
File "texturetest.py", line 121, in InitGL
LoadTextures() #texture
File "texturetest.py", line 109, in LoadTextures
glTexImage2D(GL_TEXTURE_2D, 0, 3, 150, 150, 0, GL_RGBA, GL_UNSIGNED_BYTE, image)
OpenGL.GL.GLerror: [Errno 1281] invalid value
Sadly I never found an example or a documentation of "glTexImage2D" I realy understand
for three days I try to texture my objects without succeed ...
My work is based on the good understandable "NeHe"-Tutorial. Unmodified all sources of this tutorial run very well but when I edit the texture-section it drops out ...
here is my source:
Traceback (most recent call last):
File "texturetest.py", line 182, in ?
main()
File "texturetest.py", line 178, in main
InitGL(1024, 768)
File "texturetest.py", line 121, in InitGL
LoadTextures() #texture
File "texturetest.py", line 109, in LoadTextures
glTexImage2D(GL_TEXTURE_2D, 0, 3, 150, 150, 0, GL_RGBA, GL_UNSIGNED_BYTE, image)
OpenGL.GL.GLerror: [Errno 1281] invalid value
Sadly I never found an example or a documentation of "glTexImage2D" I realy understand