Sorry didn’t read it all here’s the whole thing as I said it only works with jME 0.1
protected void initGame()
{
ffhm = new FaultFractalHeightMap(1025, 64, 0, 255, 0.15F);//create a heightmap
gmap = new Geomipmap(ffhm, 17, camera);//controls rendering of heightmap
ffhm.setHeightScale(0.5f); //reduce depths/heights
float y = ffhm.getInterpolatedHeight(800.0F/2.0F, 800.0F/2.0F); //find height/y axis value for the x,z point
//create the texture generator and supply the heightmap.
pt = new ProceduralTexture(ffhm);
pt.addTexture(new ImageIcon("1.jpg"), -128, 0, 128); //bottom areas
pt.addTexture(new ImageIcon("2.jpg"), 0, 128, 255); //images to colour terrain
pt.addTexture(new ImageIcon("3.jpg"), 128, 255, 384); //top areas
pt.createTexture(128);
gmap.setDetailTexture("cover.jpg", 64); //image to texture terrain
/*
Sky - can have box or dome
*/
SkyDome sd = new SkyDome(128F, 5F, 5F, 1.0F, 1.0F);
sd.setTexture("sky.jpg");
sd.setTextureSpeed(0.5F, 0.5F);
sd.setDomeRotation(0.125F);
camera.setSky(sd);
/*
Water - can have Mesh or Plane
*/
WaterPlane wp = new WaterPlane(2050, 50f, 0.25f); //size, base height, varience (from base height)
wp.setColor(new Vector(1.0f,1.0f,1.0f)); //using a texture so want full brightness.
wp.setTransparency(0.65f);
wp.setTexture("water003.jpeg");
wp.setWaveSpeed(0.05f); //how fast to rise and fall
wp.setTextureAnimation(1.0f, 1.0f); //how fast to move in the x,z direction
/*
Lighting of terrain - will place sun in corner of terrain map & generate shadows
*/
SlopeLighting sl = new SlopeLighting(ffhm, 1, 1, 0.6f, 0.9f, 10);
//2nd + 3rd parameters describe direction of sun & 4th & 5th the intensity
gmap.setLightMap(sl);
FaultFractalHeightMap + Geomipmap are obviously global & you need tofind some nice looking jpgs for water, sky, terrain, etc...