Texture coordinate scrolling

Hello,

Does anyone have an example of texture coordinate manipulation on multitexture, as well as on a sphere to correctly fix the seam problem?



cheers,

sv

anyone? no takers? :slight_smile:



no one does texture scrolling?


The quake 3 map loader I wrote has some texture scrolling in some of the multitextures, but I did this "by hand" by using GL calls:



      GL11.glMatrixMode(GL11.GL_TEXTURE);
      GL11.glPushMatrix();
      GL11.glLoadIdentity();
      GL11.glTranslatef(x, y, 0.0f);
      GL11.glPopMatrix();
      GL11.glMatrixMode(GL11.GL_MODELVIEW);



where x and y are how you want to scroll the texture.

You can also do it via manipulation of the tex coords themselves, although you'll need some understanding of how those were generated.