Hey guys,
I don’t know if anyone else have experienced this, but I was having some issues with drawing inconsistency when the scene is drawn on to the screen. Most* deployments the screen is only half drawn however there are sometimes where it’s fully drawn but it’s very rare. I’ve tried flipping both landscape and portrait mode but they still stays the same. I’m using AndroidHarness with SimpleApplication class. Is this a simple resolution issue or is it a bug that is not yet fixed? I took a picture of it here
[java]
@Override
private void simpleInitApp() {
// create a blue box at coordinates (1,-1,1)
Box box1 = new Box(new Vector3f(1, -1, 1), 1, 1, 1);
Geometry blue = new Geometry(“Box”, box1);
Material mat1 = new Material(assetManager,
“Common/MatDefs/Misc/Unshaded.j3md”);
mat1.setColor(“Color”, ColorRGBA.Blue);
blue.setMaterial(mat1);
// create a red box straight above the blue one at (1,3,1)
Box box2 = new Box(new Vector3f(1, 3, 1), 1, 1, 1);
Geometry red = new Geometry(“Box”, box2);
Material mat2 = new Material(assetManager,
“Common/MatDefs/Misc/Unshaded.j3md”);
mat2.setColor(“Color”, ColorRGBA.Red);
red.setMaterial(mat2);
// create a pivot node at (0,0,0) and attach it to root
Node pivot = new Node(“pivot”);
rootNode.attachChild(pivot);
// attach the two boxes to the pivot node!
pivot.attachChild(blue);
pivot.attachChild(red);
// rotate pivot node: Both boxes have rotated!
pivot.rotate(0.4f, 0.4f, 0.0f);
}[/java]