08-11-2001, 07:42 AM
Hi,
I've got environment mapping (GL_SPHERE_MAP) working on objects where the camera is fixed at its default position.
When I try to move the camera with gluLookAt, however, the environment map appears as a constant texture (because the texture coordinates are generated relative to the origin in eye coordinates?). Is there an elegant way to resolve this?
Cheers,
Steven Capper
I've got environment mapping (GL_SPHERE_MAP) working on objects where the camera is fixed at its default position.
When I try to move the camera with gluLookAt, however, the environment map appears as a constant texture (because the texture coordinates are generated relative to the origin in eye coordinates?). Is there an elegant way to resolve this?
Cheers,
Steven Capper