Create bigger terrain block

the terrain in TestThirdPersonController is pretty small, you can reach the edge of the terrain in 30 seconds.



http://www.koders.com/java/fidEED130FD41C3CC12967AC2F9F60BC5BF6DDB262A.aspx



any way to make a terrain that will take about 5 mins to go from edge to other edge?



code to create terrain are follows:

=============================

        FaultFractalHeightMap heightMap = new FaultFractalHeightMap(257, 32, 0,

                255, 0.75f);

        Vector3f terrainScale = new Vector3f(10, 1, 10);

        heightMap.setHeightScale(0.001f);

        page = new TerrainPage("Terrain", 33, heightMap.getSize(),

                terrainScale, heightMap.getHeightMap(), false);



        page.setDetailTexture(1, 16);

        rootNode.attachChild(page);

=============================



I tried to change above to

new FaultFractalHeightMap(512, 32, 0, 255, 0.75f);



but the landscape will became a flat surface without any heights / mountains

if I change



=======================

Vector3f terrainScale = new Vector3f(10, 1, 10);

heightMap.setHeightScale(0.001f);

=======================



to



=======================

Vector3f terrainScale = new Vector3f(1000, 10, 1000);

// heightMap.setHeightScale(0.001f);

=======================



it will look flat as i describe earlier

http://www.oniva.com/upload/1356/after.jpg



original was look like this

http://www.oniva.com/upload/1356/before.jpg


you might want to change the terrain scale.



Vector3f terrainScale = new Vector3f(10, 1, 10);

// heightMap.setHeightScale(0.001f); – might want to remove this for a while



to



Vector3f terrainScale = new Vector3f(1000, 10, 1000);

// total size would be axis*getSize(); (x [1000] * getSize() [256] = 256000 units)

// note that scaling in x and z would result in flattening of the height map

// to avoid that, scale its height too. (y axis)



and you might want to check out com.jmex.terrain.TerrainPage to compliment with large terrain blocks.