Hello,
I found some mistakes in wiki: http://www.jmonkeyengine.com/wiki/doku.php/starter:hello_terrain
// Create a terrain block from the image's grey scale
TerrainBlock tb=new TerrainBlock("image icon",ib.getSize(),
new Vector3f(.5f,.05f,.5f),ib.getHeightMap(),
new Vector3f(0,0,0));
should be
// Create a terrain block from the image's grey scale
TerrainBlock tb=new TerrainBlock("image icon",ib.getSize(),
new Vector3f(.5f,.05f,.5f),ib.getHeightMap(),
new Vector3f(0,0,0), true);
ts.setTexture(
TextureManager.loadTexture(
pg.getImageIcon().getImage(),
Texture.MinificationFilter.Trilinear,
Texture.MagnificationFilter.Bilinear,
true
)
);
should be
ts.setTexture(
TextureManager.loadTexture(
HERE WILL BE ProceduralTextureGenerator URL???,
true
)
);