Hi, First of all I lost half of my hair today trying to figure this thing (below) out.
Everything works, I mean coordinates are generated, but texture is repeated like million times.
Is there anyway to control how many times it repeates.
Please Help!
GL11.glEnable( GL11.GL_TEXTURE_GEN_S );
GL11.glEnable( GL11.GL_TEXTURE_GEN_T );
GL11.glEnable( GL11.GL_NORMALIZE );
GL11.glTexGenf( GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR );
GL11.glTexGenf( GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_OBJECT_LINEAR );
You could try scaling the texture matrix.
Thanks for the reply but that is not enough :((((
Note this I am total NOOB in LWJGL I mean not noob in programming, but I just found out (read in a book) how to use textures but there is nothing about texture matrix. I know how to use glPushMatrix and pop is this the same?
Some peace of code or better explanation would be great.
Thanks
It's in the red book. Look it up in the index. In my very old Release 1 its at the very end of the texture chapter. Here is quote that will give you an idee:
Quote
glMatrixMode(GL_TEXTURE); /* enter texture matrix mode */
glRotate(...);
/* ... other matrix manipulations ... */
glMatrixMode(GL_MODELVIEW); /* back to modelview mode */
:D I see it, I got the red book too. LOL i just didnt go that far, I am at Cube Maps now.
Thanks a lot for your input.
Regards