Cheers for the replies, I am now using MS Paint of all things to convert the images to png. It seems to be working except for the fact that it will only display the last texture that I have loaded… My code is below, please help…
public void LoadGLTextures()
{
PngTextureLoader texLoader = new PngTextureLoader(gl, glu);
texLoader.readTexture(getCodeBase(), "MetalFloor.PNG");
if(texLoader.isOk()) {
//Create Texture
gl.glGenTextures(5, texture);
gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
gl.glTexImage2D( GL_TEXTURE_2D, 0, 3, texLoader.getImageWidth(),
texLoader.getImageHeight(), 0, GL_RGB, GL_UNSIGNED_BYTE,
texLoader.getTexture());
}
// PngTextureLoader texLoader2 = new PngTextureLoader(gl, glu);
texLoader.readTexture(getCodeBase(), “Marble.png”);
if(texLoader.isOk()) {
//Create Texture
gl.glGenTextures(5, texture);
gl.glBindTexture(GL_TEXTURE_2D, texture[1]);
gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
gl.glTexImage2D( GL_TEXTURE_2D, 0, 3, texLoader.getImageWidth(),
texLoader.getImageHeight(), 0, GL_RGB, GL_UNSIGNED_BYTE,
texLoader.getTexture());
}
}
Again, many thanks in advance
Music_Man 