Results 1 to 3 of 3

Thread: Reflections

  1. #1

    Reflections

    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?
    Edgar,
    Diversions Ent.

  2. #2
    Member Newbie
    Join Date
    Mar 2000
    Location
    UK
    Posts
    36

    Re: Reflections

    You'll kick yourself with this one....

    When you generate the environment map, you're producing a texture map that describes the surrounding environment at that moment in time.

    When you then move an object in the scene (i.e. an object attached to the camera), the environment mapped object is still using the texture map that was created at the beginnining of the programme, so any objects that have moved since the beginnining of the programme, will appear to have not moved.

    What you'd need to do to stop this problem, is rebuild the environment map every frame (which would take some time).

    If your interested in a faster solution to this problem, just leave me a message on this thread, and I'll explain it.

    Hope this helps

  3. #3
    Junior Member Newbie
    Join Date
    May 2000
    Location
    South Portland, Maine USA
    Posts
    1

    Re: Reflections

    Hey FatBuddha, I'd be interested in hearing about your faster solution! Does it still involve environment mapping?

    Christopher

    [QUOTE]Originally posted by FATBUDDHA:
    If your interested in a faster solution to this problem, just leave me a message on this thread, and I'll explain it.

Similar Threads

  1. Reflections
    By MACnus in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 07-14-2005, 11:27 AM
  2. Reflections
    By Vlasko in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-06-2004, 04:20 AM
  3. Reflections.....
    By Powerino in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 02-28-2003, 02:25 PM
  4. Reflections look bad!!!
    By Rudi_P in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 04-15-2001, 03:17 AM
  5. Reflections
    By cwhite40 in forum OpenGL: Advanced Coding
    Replies: 19
    Last Post: 10-02-2000, 11:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean