Hello people,
I''m testing my product on different platforms at the moment and I''ve got a problem with a system that is using an old Voodoo 3 graphics card.
I want to render a textured face where an environment map is "added" onto it. With systems that support the GL_ARB_texture_env_combine extension I do it the following way:
// TU1 (default settings):
glTexEnvi (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE );
// TU2:
glTexEnvi (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE_ARB);
glTexEnvi (GL_TEXTURE_ENV, GL_COMBINE_RGB_ARB, GL_ADD );
This is working well.
So now I want to achieve the same effect on a Voodoo 3, without success. I tried it the following way:
// TU1 (default settings):
glTexEnvi (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE );
// TU2:
glTexEnvi (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_ADD); // GL_ADD should work because I''ve tested for the extension GL_EXT_texture_env_add
However, this solution doesn''t work. All I get is a lit face that doesn''t have textured portions at all. Am I misunderstanding the GL_EXT_texture_env_add extension, or what am I doing wrong?
Lyve
_____________________________________
http://www.winmaze.de, a 3D shoot em up in OpenGL, nice graphics, multiplayer, chat rooms, a nice community, worth visiting!