In the code of TerrainQuad there is an error in one of the constructors. this one:
public TerrainQuad(String name, int patchSize, int quadSize, int totalSize, float[] heightMap)
gets an int for the quadSize however it ignores it by just calling this(name, patchSize, totalSize, Vector3f.UNIT_XYZ, heightMap);
I think it should call this(name, patchSize, totalSize, quadSize, Vector3f.UNIT_XYZ, heightMap);
So the code should be:
[java]
public TerrainQuad(String name, int patchSize, int quadSize, int totalSize, float[] heightMap) {
this(name, patchSize, totalSize, quadSize, Vector3f.UNIT_XYZ, heightMap);
}
[/java]
and not
[java]
public TerrainQuad(String name, int patchSize, int quadSize, int totalSize, float[] heightMap) {
this(name, patchSize, totalSize, Vector3f.UNIT_XYZ, heightMap);
}
[/java]
Thanks urndel. I committed a fix for that, so if you want to use it get the latest Trunk version from SVN.