Hi,
I am drawing some billboarded quads on screen, and wanted them to rotate.
It then occurred to me, that I could manipulate the texture matrix, and get the same effect.( correct? ).
So, I used the following:
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glRotatef(_rotationAngle,0,0,1);
glMatrixMode(GL_MODELVIEW);
and it does rotate, but not about the centre of the texture.
I tried using
glTranslatef( -0.5,-0.5,0);
to do this, but it doesnt appear to work…
Anyone got any ideas how to get this working?
Thanks in advance
Derrick