Terrain Beginner Tutorial bug

Hi there!



I’ve been going through beginner tutorials and I’ve encountered some issue with the sample source code for the terrain tutorial. This line

[java]terrain = new TerrainQuad(“my terrain”, 65, 513, new Vector3f(1, 1, 1), heightmap.getHeightMap());[/java] gives me an error, saying that there’s no matching constructor to call. I’ve tried to match it and replace the above with

[java]terrain = new TerrainQuad(“my terrain”, 65, 513, heightmap.getHeightMap());[/java] which did the trick. I’m using jme3 nightly build (just updated it to today’s one) with eclipse on Ubuntu 10.04.

Is the tutorial outdated then? It doesn’t really explain the importance of this LOD step anyway so wouldn’t it be wise to just replace the buggy code? If I am right is it OK to just update the wiki page by myself (as contributor guide says)?



Best regards, Tymon

1 Like

Hi,



I’m running with nightly build jME3_11-09-2010 and I can verify your problem and your work around.

Cheers!



I’ve added the bug fix, I hope it’s all right :slight_smile:



Best regards, Tymon

1 Like