MickeyMouse

04-09-2002, 11:39 PM

hi!

i was trying to make spinning water by manipulating with matrix for texture projection and i faced some problems- after i do

glMatrixMode(GL_TEXTURE_MATRIX);

glLoadIdentity();

glRotatef(angle, 0, 1, 0);

the drawn texture is rotated but around some other axis - my water are y-constant polys, and i simply wanted it to rotate around y-axis..

that means i think y for texture matrix is not the same as y for modelview matrix, am i right or i don't understand anything?

anyway i tried to find some tuts on different methods of manipulating texture matrix in OpenGL but i didn't succed

thx for any help

i was trying to make spinning water by manipulating with matrix for texture projection and i faced some problems- after i do

glMatrixMode(GL_TEXTURE_MATRIX);

glLoadIdentity();

glRotatef(angle, 0, 1, 0);

the drawn texture is rotated but around some other axis - my water are y-constant polys, and i simply wanted it to rotate around y-axis..

that means i think y for texture matrix is not the same as y for modelview matrix, am i right or i don't understand anything?

anyway i tried to find some tuts on different methods of manipulating texture matrix in OpenGL but i didn't succed

thx for any help