@Override
protected void doAddHeightMapInstruction(Graphics3DAddHeightMapInstruction graphics3dObjectAddHeightMap)
{
optimizeGraphicsObject = false;
HeightMap heightMap = graphics3dObjectAddHeightMap.getHeightMap();
AppearanceDefinition appearanceDefinition = graphics3dObjectAddHeightMap.getAppearance();
Material material = null;
if (appearanceDefinition != null)
{
material = JMEAppearanceMaterial.createMaterial(jmeAssetLocator, appearanceDefinition);
}
AssetManager assetManager = this.jmeAssetLocator.getAssetManager();
JMEHeightMapTerrain jmeTerrain = new JMEHeightMapTerrain(heightMap, assetManager, material);
Node terrainNode = jmeTerrain.getTerrain();
currentNode.attachChild(terrainNode);
addAppearanceChangedListener(graphics3dObjectAddHeightMap, terrainNode);
}