Hi, his is my texture:
but when i use it in jmonkey it always has this kind of strippes, no matter which format, alphachannal activated/deativated or how much i scale it.
Hi, his is my texture:
but when i use it in jmonkey it always has this kind of strippes, no matter which format, alphachannal activated/deativated or how much i scale it.
i forgot the code
[java]
public void setBackground(){
Node node = new Node(“background”);
Picture pic = new Picture(“background”);
Texture2D tex = (Texture2D) assetManager.loadTexture(“Textures/sky.png”);
pic.setTexture(assetManager,tex,false);
float width = tex.getImage().getWidth();
float height = tex.getImage().getHeight();
pic.setWidth(width);
pic.setHeight(height);
Material picMat = new Material(assetManager, "Common/MatDefs/Gui/Gui.j3md");
picMat.getAdditionalRenderState().setBlendMode(BlendMode.AlphaAdditive);
node.setMaterial(picMat);
node.attachChild(pic);
//node.setLocalScale(settings.getWidth()/width, settings.getHeight()/height, 1.0f);
//node.move(0,0,-1);//move background far away
guiNode.attachChild(node);
}[/java]
this error is only visible on my android device (S3) it looks good on PC
Might I ask what error?
Both of the above background textures look the same to me.
My random guess would be that the android device has only a 6bit display and cannot display the full 8 bit space?
try to add TextureUtil.ENABLE_COMPRESSION = false; in your MainActivity constructor