PDA

View Full Version : object reflect skybox



cricricri
02-24-2011, 08:25 AM
hi,
I put my application in a skybox. when I insert a new object is reflected in the skybox, before drawing the skybox I still disable the axes as follows:

glDisable(GL_TEXTURE_GEN_S);
glDisable(GL_TEXTURE_GEN_T);
glDisable(GL_TEXTURE_GEN_R);
DrawSkyBox();
in the function where I enable the cube map I made so

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);

thank you very much