I figured one thing out, I changed this:
glTexCoordPointer(2, GL_FLOAT, 0, 0L);
glTexCoordPointer(3, GL_FLOAT, 0, 0L);
But now only one side of the blocks have textures. When I render out a skybox in immediate mode with the same texture coords, it works fine. So whats wrong with my VBO?
Im not entirly sure but i think it should be 2,
I interleaved mine like this.
glVertexPointer(3, GL_FLOAT, /* stride **/21, /* offset **/(1) << 2);
GL11.glTexCoordPointer(2, GL_FLOAT, /* stride **/21, /* offset **/(4) << 2);
1 thing that may help is making a square texture, with a border, with different colour sides. It may help you see whats going on.....
I think someone more experienced with this would give better advice. I dont want to advise you wrongly..
Hope you sort it soon......
you have put no offsett on yours.....