Hi,
I want to load my manually created mimaps for a texture, not those generated by OpenGL.
My code:
Texture texture = TextureIO.newTexture(myInputStream, false, "png");
for (int i = 1; true; i++)
{
TextureData mipmap = TextureIO.newTextureData(myMipMapStream[i], false, "png");
texture.updateSubImage(mipmap, i, 0, 0);
if (mipmap.getWidth() <= 1) break;
}
There is no error, but the texture is only displayed black ( - at least without alpha, as it should have).
The input streams are ok, loading each texture works.
Also automatic generating works:
Texture texture = TextureIO.newTexture(myInputStream, true, "png");
Any idea?
Thanks