I don’t remember I got this problem on Jme1.
Here is the screenshot that shows a 128x128 .RAW (8bits) heightmap made in photoshop
And the result with Jme2:
As you can see, the relief appears 2 times on the TerrainBlock.
I spent lot of time reading through the forum to get an answer and tune the few lines of codes as much as I could.
Anything stupid here ?
RawHeightMap heightMap = new RawHeightMap(Main.class.getClassLoader().getResource(
Vector3f terrainScale = new Vector3f(1F, 0.0001F, 1F);
TerrainBlock terrainBock = new TerrainBlock("terrainBock", heightMap.getSize(),
terrainScale, heightMap.getHeightMap(), new Vector3f(0, 0, 0));
Thanks a bunch for help
PS: dont pay attention to the green curves as it's just here to represent the intersection btw the terrain and a plane.