How can you make a texture move from left to right? I can only move texture from top to bottom, or bottom to up.
I use 4 glTexCoord2f() calls, but I can’t seem to get it to move texture from right to left!
Anyone explain why please?
How can you make a texture move from left to right? I can only move texture from top to bottom, or bottom to up.
I use 4 glTexCoord2f() calls, but I can’t seem to get it to move texture from right to left!
Anyone explain why please?
You can use glTranslate with the texture matrix mode, without changing glTexCoord.
tFz
I don’t understand what you mean. How can you move just the texture (not the object) by using glTranslate?
How do I get access to texture matrix??
This should do it.
glMatrixMode(GL_TEXTURE);
glPushMatrix();
glTranslatef(x, y, z);
DrawObjects();
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
thanks! I will try now. Is there any performance loss with this ??