Results 1 to 3 of 3

Thread: Texture mirror effect on the screen

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2011
    Posts
    4

    Texture mirror effect on the screen

    Hi,

    I have a texture on the screen but it has the mirror effect when compared to real image.
    I could not fix it?
    Any help is appreciated.
    Regards
    TM

    glTexCoord2f(1, 0);glVertex3f( -4.5, -1, 0.0);
    glTexCoord2f(1, 1);glVertex3f( -4.5, 1, 0.0);
    glTexCoord2f(0, 1);glVertex3f( -4.5, 1, -1.0);
    glTexCoord2f(0, 0);glVertex3f( -4.5,-1, -1.0);

  2. #2
    Newbie OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,789

    Re: Texture mirror effect on the screen

    Code :
    glTexCoord2f(0, 0);glVertex3f( -4.5, -1, 0.0);
    glTexCoord2f(0, 1);glVertex3f( -4.5, 1, 0.0);
    glTexCoord2f(1, 1);glVertex3f( -4.5, 1, -1.0);
    glTexCoord2f(1, 0);glVertex3f( -4.5,-1, -1.0);

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2011
    Posts
    4

    Re: Texture mirror effect on the screen

    Thanks very much
    works like a charm.

    What is the logic behind this?
    I mean is there any tutorial using glTexCoord2f with glVertex3f?
    Regards
    TM

Similar Threads

  1. Upside-down 2D texture mirror images until resize?
    By EdOfTheMountain in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 06-11-2010, 08:54 AM
  2. Mirror Effect
    By baconbeastnz in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 08-28-2008, 09:05 PM
  3. vertically mirror screen?
    By karx11erx in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 02-08-2008, 02:44 AM
  4. texture coordinates for full-screen effect
    By Vexator in forum OpenGL: GLSL
    Replies: 4
    Last Post: 12-21-2006, 10:10 AM
  5. Mirror using a texture is slow
    By Jambolo in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 05-08-2002, 02:23 AM

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