cube and sphere mapping OpenGL
Posted: Tue Aug 08, 2006 08:04
Hello i have a problem , wen enable a cube or sphere mapping (in the render function of my GL class) all the gui stuff dissapear buttons, frames, scrools, etc... why is that ?
this code is the problem: for example i enable the sphere mapping with :
glEnable(GL_TEXTURE_GEN_S);
glEnable(GL_TEXTURE_GEN_T);
is happend too with
glEnable(GL_TEXTURE_CUBE_MAP);
please i need help.
this code is the problem: for example i enable the sphere mapping with :
glEnable(GL_TEXTURE_GEN_S);
glEnable(GL_TEXTURE_GEN_T);
is happend too with
glEnable(GL_TEXTURE_CUBE_MAP);
Code: Select all
...
glLoadIdentity();
glRotatef(30.0, 1.0, 0.0, 0.0);
glEnable(GL_CULL_FACE);
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, pctatex.mTexture2D[0]);
glEnable(GL_TEXTURE_GEN_S);
glEnable(GL_TEXTURE_GEN_T);
glEnable(GL_TEXTURE_GEN_R);
glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_REFLECTION_MAP);
glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_REFLECTION_MAP);
glTexGeni(GL_R, GL_TEXTURE_GEN_MODE, GL_REFLECTION_MAP);
pctaVector uN;
...
please i need help.