Transparent .png Material Help

I am trying to make my “Common/MatDefs/Misc/SimpleTextured.j3md” material with an applied .png image show the transparency, however it is giving me some trouble.



here is what i am doing:



[java] Material mat2 = new Material(assetManager, “Common/MatDefs/Misc/SimpleTextured.j3md”);

Texture tex_ml = assetManager.loadTexture(“Textures/Hex/grey.png”);

mat2.setTexture(“m_ColorMap”, tex_ml);

// mat2.setBoolean(“m_ShowAlpha”,true);

// mat2.setTransparent(true);[/java]



both the commented lines I have tried, however, neither of them work.

Does anyone have any ideas for how to do this? Thanks!

You’ll find your answer in this post

http://hub.jmonkeyengine.org/groups/graphics/forum/topic/transparent-png-texture-problem/

1 Like

As a side note to this, for those using Paint.net, there is a problem with transparency and .png files. Better use The Gimp to do those.