PDA

View Full Version : Texture mirror effect on the screen



TurboMan
01-12-2011, 08:46 AM
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);

mhagain
01-12-2011, 09:13 AM
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);
;)

TurboMan
01-12-2011, 09:20 AM
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