Unused imports and example issue in Hello Terrain tutorial

The following imports seem unused in the Hello Terrain tutorial.


import com.jme3.bounding.BoundingBox;

import com.jme3.math.Vector3f;

import com.jme3.terrain.heightmap.HillHeightMap; // import is used in example code


Imho the example for random generating the terrain should be more like below. Currently In the tutorial just replacing the two lines leaves the heightmap variable without a type. Also heightmap.load(); would not work then.


HillHeightMap heightmap = null;

try {

heightmap = new HillHeightMap(1025, 1000, 50, 100, (byte) 3);

} catch (Exception ex) {



boolean loaded = heightmap.load();


Just to clarify I am not trying to whine about the documentation. If I can I just wanna help getting the tutorials even better. We don’t want to have people get de-motivated when they encounter a small hiccup like this in the code.

Thanks, if you want you can edit the wiki yourself, use the wiki menu entry in the lack men bar when on a wiki page.

Ok I just edited the page :slight_smile:


Thank you!