light = new DirectionalLight(1, 0.2, -1); light.setColor(1, 1, 1); light.setPower(0.8f); light.setPosition(3, 2, 4); getCurrentScene().addLight(light); // Set-up a material: green with application of the light and // instructions. Material material = new Material(); material.setColor(0xff009900); try { Texture t = new Texture("instructions", R.drawable.instructions); material.addTexture(t); } catch (ATexture.TextureException e) { e.printStackTrace(); } material.setColorInfluence(0.1f); material.enableLighting(true); material.setDiffuseMethod(new DiffuseMethod.Lambert()); // Build a Cube and place it initially in the origin. mObject = new Cube(CUBE_SIDE_LENGTH); mObject.setMaterial(material); mObject.setPosition(0, 0, -3); mObject.setRotation(Vector3.Axis.Z, 180); getCurrentScene().addChild(mObject);