Textures aren't displayed.
Hello list,
somehow in our company we''re trying to figure out a strange bug that happens in one of our projects.
We''ve got the problem that textures aren''t rendered (lookes like texturing is disabled) after loading a model including textures. If we load the model again, the textures are visible. Reload again, invisible, reload, .... you know. Strange behaviour.
Now I''ve set up error checking on nearly every openGL call to see what happens, but openGL doesn''t report any errors at all. What I''ve figured out:
- The textures (loaded from a bitmap) are loaded correctly and glGenTextures and glTexImage2D is working correctly without reporting any errors.
- glEnable( GL_TEXTURE_2D) and glBindTexture() is working correctly without error report while rendering
- The UV-Coordinates are ok
Another one of our projects that uses the same 3D engine doesn''t have this problem. Any tips?
Lyve
http://nils-music.tk
_____________________________________http://www.winmaze.de, a 3D shoot em up in OpenGL, nice graphics, multiplayer, chat rooms, a nice community, worth visiting! ;)http://www.spheretris.tk, an upcoming Tetrisphere clone for windows, a 3D tetris game on a sphere with powerful graphics for Geforce FX and similar graphics cards.
-did you enable any other higher priority textures (cubemap,3d)?
-selected other TMU unit?
You should never let your fears become the boundaries of your dreams.
-selected other TMU unit?
You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
quote:
Original post by Lyve
We've got the problem that textures aren't rendered (lookes like texturing is disabled) after loading a model including textures. If we load the model again, the textures are visible. Reload again, invisible, reload, .... you know. Strange behaviour.
Are you closing the texture file you're reading from? I vaguely recall something similar, and the file being read from wasn't being closed properly until the second time the program ran.
Jeroen
[edited by - Bigboy on February 25, 2003 10:24:19 AM]
Cheers,Jeroen
Thanks for your replies. Unfortunately your suggestions didn''t fix the problem.
We only use quite primitive rendering techniques, we don''t use any complicated things like 3D textures, cubemapping, multitexturing or other stuff. We only display simple lit primitives with textures on it.
The file is also closed properly.
Any other tips? Many thanks for help.
Lyve
Visit http://www.nilsschneider.de for finest trance music, studio, bio, guestbook and more!
We only use quite primitive rendering techniques, we don''t use any complicated things like 3D textures, cubemapping, multitexturing or other stuff. We only display simple lit primitives with textures on it.
The file is also closed properly.
Any other tips? Many thanks for help.
Lyve
Visit http://www.nilsschneider.de for finest trance music, studio, bio, guestbook and more!
_____________________________________http://www.winmaze.de, a 3D shoot em up in OpenGL, nice graphics, multiplayer, chat rooms, a nice community, worth visiting! ;)http://www.spheretris.tk, an upcoming Tetrisphere clone for windows, a 3D tetris game on a sphere with powerful graphics for Geforce FX and similar graphics cards.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement