Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: cube mapping not acting like reflection

  1. #1
    Junior Member Regular Contributor
    Join Date
    Feb 2004
    Location
    Aus
    Posts
    148

    cube mapping not acting like reflection

    the title sums things up.

    i have a sphere with a cube map applied, lets say i can see object X on the cube map. Now if i move around to the opposite side of my sphere, the object X follows me around to the other side!

    this is how i bind my cube map texture:
    Code :
    	glActiveTextureARB(GL_TEXTURE0_ARB + texUnit);
    	glBindTexture(GL_TEXTURE_CUBE_MAP, texture);
     
    	glEnable(GL_TEXTURE_CUBE_MAP);
    	glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_REFLECTION_MAP); // GL_NORMAL_MAP GL_REFLECTION_MAP
    	glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_REFLECTION_MAP); //  GL_NORMAL_MAP
    	glTexGeni(GL_R, GL_TEXTURE_GEN_MODE, GL_REFLECTION_MAP); //  GL_NORMAL_MAP
     
    	glEnable(GL_TEXTURE_GEN_S);
    	glEnable(GL_TEXTURE_GEN_T);
    	glEnable(GL_TEXTURE_GEN_R);
    	glEnable(GL_NORMALIZE);
    am i missing something?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Aug 2004
    Location
    Angers, France
    Posts
    248

    Re: cube mapping not acting like reflection

    Hm, I don't totally understand your explanation of the problem, there is an object that follows you ?

    Can you post some pictures or executable ?
    The .Product will make you .Believe

  3. #3
    Junior Member Regular Contributor
    Join Date
    Feb 2004
    Location
    Los Angeles, CA
    Posts
    154

    Re: cube mapping not acting like reflection

    Sigh...
    Check this out

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •