Edgar
03-24-2000, 01:53 PM
I'm using sphere reflections by using glTexGeni(GL_S,GL_TEXTURE_GEN_MODE,GL_SPHERE_MAP) and
glTexGeni(GL_T,GL_TEXTURE_GEN_MODE,GL_SPHERE_MAP). For most objects in the scene reflection is generated correctly, but if I have an object which is attach to camera, the reflection never changes. It stays the same regardless if I move around. I load inverse camera matrix at the beginning of the frame and then use glPushMatrix() and glMultMatrixf(...) for each object before I draw it. Any ideas?
glTexGeni(GL_T,GL_TEXTURE_GEN_MODE,GL_SPHERE_MAP). For most objects in the scene reflection is generated correctly, but if I have an object which is attach to camera, the reflection never changes. It stays the same regardless if I move around. I load inverse camera matrix at the beginning of the frame and then use glPushMatrix() and glMultMatrixf(...) for each object before I draw it. Any ideas?