Sorry for asking such basic questions but I could not find anything in the forum and wiki about that problem. Hopefully anybody can help me. Beside that fact is there a way I can add the information I find out to the BeginnersFAQ ?
- I am using a HillHeightMap to generate the terrain but sometimes I am getting a curios white block and not a terrain (is happening only every 10 times of generation). Has anybody an idea why this is happening ?
- Is there a visual tool to generate the terrain for JME ?
- Understand this correct: A terrain consists of many terrain blocks which are added together to form the world ? So I can have 10 terrainblocks which use a generated hightmap an one block which uses a defined map (with a float[]) ?
Code for generating the terrain:
HillHeightMap heightMap = new HillHeightMap(129, 2000, 5.0f, 80.0f,
(byte) 2);
heightMap.setHeightScale(0.001f);
heightMap.setHeightAtPoint(250, 100, 100);
Vector3f terrainScale = new Vector3f(10, 1, 10);
terrain = new TerrainPage("Terrain", 33, heightMap.getSize(), terrainScale,
heightMap.getHeightMap());
terrain.setDetailTexture(1, 16);
The terrain has a texture on it but this does not influence anything at all.
Thank you in advance for your help!
cheers,
Clemens