AmbientLight ambLight = new AmbientLight();
ambLight.setColor(new ColorRGBA(0.2f, 0.2f, 0.2f, 1f));
rootNode.addLight(ambLight);
Asset a = new Asset("/tile/121_177/121_177.jnv", "/tile/121_177/121_177.jnv");
sin.getAssetManager().loadAsset(a, true);
if(a.getBaseAsset() instanceof TiledNavMesh )
NavTestHelper.debugShowMesh(assetManager, debugNodes,(TiledNavMesh) a.getBaseAsset());
Asset b = new Asset("/tile/121_177/121_177.j3o", "/tile/121_177/121_177.j3o");
sin.getAssetManager().loadAsset(b, true);
if(b.getBaseAsset() instanceof Spatial ) {
Spatial n = (Spatial)b.getBaseAsset();
// Material mat = new Material(Singleton.get().getAssetManager().getJmeAssetMan(), "Common/MatDefs/Misc/Unshaded.j3md");
// mat.setColor("Color", ColorRGBA.randomColor());
Material mat = new Material(Singleton.get().getAssetManager().getJmeAssetMan(), "Common/MatDefs/Light/Lighting.j3md");
mat.setBoolean("UseMaterialColors",true);
mat.setColor("Diffuse",ColorRGBA.randomColor());