[Solved] Problems with more than one texture with alpha passing thru each other!

Managed to make it work myself.



here was the problem:



        BlendState as = DisplaySystem.getDisplaySystem().getRenderer().createBlendState();
        as.setEnabled(true);
        as.setBlendEnabled(true);
        as.setSourceFunction(BlendState.SourceFunction.SourceAlpha);
        as.setTestEnabled(true); <<-- those two lines needed to be added
        as.setTestFunction(BlendState.TestFunction.NotEqualTo); <<-- even tough i have no idea what they do!

        Blends[0] = as;



but even fixing it, i would need to correct how the texture is being rendered, removing MipMap, otherwise (for some reason the boarders of the texture (transparency boarders) got filled with the background collor, and if i would get too far from the texture, it would become all black, and it sucked!

TextureState ts = display.getRenderer().createTextureState();
            ts.setTexture(TextureManager.loadTexture(r.toString(),
                    Texture.MinificationFilter.BilinearNoMipMaps,
                    Texture.MagnificationFilter.Bilinear));
            PreloadedTextureStates.put(r, ts);



then it worked fine. here is a screen: