Hi, because it seems that I have to write it on my own: http://code.google.com/p/libgdx/issues/detail?id=1257&thanks=1257&ts=1360713176
I would like to know, if the error (lines between tiles and the color of the ray):
http://phibedy.mineforce.de/publicFiles/random/padding-error.png
could be caused by the missing of the edge-padding.
In addition I have now clue how to add this/write that pull request.
atlas-code:
PixmapPacker packer = new PixmapPacker(2048, 2048, Format.RGBA8888, 5,
true);
Pixmap pixmap;
for (int i = 0; i < levelTextures.length; i++) {
pixmap = new Pixmap(Gdx.files.external(levelTextures[i]));
packer.pack(levelTextures[i], pixmap);
}
RessourceManager.atlas = packer.generateTextureAtlas(
TextureFilter.MipMapLinearNearest, TextureFilter.Nearest, true);
for rendering I am using spritebatch + sprites (sprite(Textureregion from the atlas)).
edit:
if I don’t use mipmaps:
RessourceManager.atlas = packer.generateTextureAtlas(
TextureFilter.Nearest, TextureFilter.Nearest, false);
the error doesn’t appear, but I would like to use mipmaps -> how to fix it?
edit2:
thx to ocirne
changed:
new PixmapPacker(2048, 2048, Format.RGBA8888,0,
false);
packer.generateTextureAtlas(
TextureFilter.Nearest, TextureFilter.Nearest, true);
best reg.