Hi. It’s me again with my cube env map.
I have the following problem. After loading the default textures - i’m building mipmaps:
gluBuild2DMipmaps(target, GL_RGB8, TextureImage[0]->sizeX, TextureImage[0]->sizeY, GL_RGB, GL_UNSIGNED_BYTE, TextureImage[0]->data);
But i can only see reflections, when i move the camera next to the sphere. When i move away from the sphere, the default texture seem to overlap the reflecting ability of the sphere/texture and no reflection is done/to view.
Here’s a screenshot to show my problem:
When i move away from the sphere, the front-side of the sphere completely turns light-blue and does no more reflection.
I thought this must be some problem of making my mipmaps. So i used glTexImage2D instead of gluBuild2DMipmaps:
glTexImage2D(target, 0, GL_RGB8, TextureImage[0]->sizeX, TextureImage[0]->sizeY, 0, GL_RGB, GL_UNSIGNED_BYTE, TextureImage[0]->data);
With this function instead of using mipmaps, i can see reflections on the sphere from any position of the camera. But there is some other problem. See:
Can this be some kind of overlapping textures? Any idea?
Thanx
Raoul