Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
mat.setColor("Color", ColorRGBA.randomColor());
grid.setMaterial(mat);
TangentBinormalGenerator.fixTileNormals(grid.getMesh(), IArea.TERRAIN_SIZE_HALF, 0.05f);
TangentBinormalGenerator.generate(grid.getMesh(), false);
grid.updateGeometricState();
rootNode.attachChild(grid);
TiledNavMesh m = (TiledNavMesh) assetManager.loadAsset(file+".jnv");//BinaryImporter.getInstance().load(new File(file+".jnv"));
em.attachMesh(m);
} catch (Exception e) {
// TODO Auto-generated catch block