[SOLVED] Model not loaded correctly in android but working fine on Laptop

Hello,

i have an issue with a model : it appears totally black on android device but with correct texture on JmonkeyEngine SDK 3.0 and when i launch it on my laptop

Here is the code fragment i use:


public void simpleInitApp() 
{
  viewPort.setBackgroundColor(ColorRGBA.Green);
  DirectionalLight dl = new DirectionalLight();
  dl.setDirection(new Vector3f(-0.1f, -1f, -1).normalizeLocal());
  rootNode.addLight(dl);
  dice = (Node) assetManager.loadModel("models/dice.mesh.xml");
  rootNode.attachChild(dice);
}

here is what i see on android :http://hpics.li/11db428
screnshot of the scene in android

here is what i see on desktop: http://hpics.li/86474b3
Screenshot on laptop

and here is the model files: http://www.filehosting.org/file/details/463933/models.zip

Do you have an idea on what coudl be wrong ?

Make sure your textures have a size of power of two.

Great it worked. Thanks a lot

Note: the image must also be encoded in 24 bits.