I haven't studied environment mapping in detail, my book discusses it briefly, and says that you need to generate new texture coordinates as the object moves, to move the reflections along with it. But my texures seem fixed in place, regardless of the orientation of the object.
I even tried adding an explicit transformation just to change the texture coordinates, but i get the same results regardless of what i use in place of '45' in the code below.
Code :glMatrixMode(GL_MODELVIEW); glPushMatrix(); glRotatef(45,0,1,0); glEnable(GL_TEXTURE_2D); glTexGenf(GL_S,GL_TEXTURE_GEN_MODE,GL_SPHERE_MAP); glTexGenf(GL_T,GL_TEXTURE_GEN_MODE,GL_SPHERE_MAP); glEnable(GL_TEXTURE_GEN_S); glEnable(GL_TEXTURE_GEN_T); glBindTexture(GL_TEXTURE_2D,textureObj); glTexEnvf( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE ); glPopMatrix();



