Hey,
I am writing an OpenGL model of the "Solar System" and am having some problems mapping textures to my planets. I am using glutSolidSpheres for the planets, with textures that are actual photos of the planets' surfaces.
My problem is that my texture does not rotate with my planets. Each planet has accurate rotational and orbital parameters, so I want to be able to see the rotation. Instead, the texture is "floating" around the planet, and appears the same to the eye no matter where the planet is in its rotation/orbit.
I'm using environment mapping; is that the problem? Whenever I try to generate texture coordinates using another method, I can't get the texture to stop tiling (I AM using mipmaps).
Any assistance would be greatly appreciated!



I did something similar to this while at uni - not OO though (pretty dodgy code now I look back - ugh)