I'm trying to draw trees on top of snow in a tiled map. However, when I draw my player sprite underneath the trees, the trees are not transparent and the sprite goes underneath white bits. I have added a transparency channel for the trees in gimp. I am using:
tiledMapRenderer.setView(cam);
tiledMapRenderer.render();
I have tried using
Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);
and batch.enableBlending();
to no prevail.
Check the follwing:
Do you load your image into a Texture object that supports alpha? (easy: use default Texture constructor with FileHandle)
Make sure all SpriteBatches you are using allow blending. (It's enabled by default and you did check that too)
Are you drawing the image into a FrameBuffer? Make sure your FrameBuffer has an alpha channel. Also check how you are clearing the FrameBuffer before use - if you are using intermediate FrameBuffers, eventually you should clear them to be transparent (blank).