Found a bug of CombinerHeightMap

	if (mode != ADDITION || mode != SUBTRACTION) {<br />

throw new JmeException("Invalid mode");

}





This segment of code makes one of CombinerHeightMap's constructor broken,as well as the method "setMode()".

btw,is there a way to use MidPointHeightMap(size of 2^n) and TerrainPage(size of 2^n +1) in the same time?

Nighthaven said:

if (mode != ADDITION || mode != SUBTRACTION) {
throw new JmeException("Invalid mode");
}


This segment of code makes one of CombinerHeightMap's constructor broken,as well as the method "setMode()".


Fixed in CVS.  Thanks!

As to your other question, you probably have to copy the values to a float array with the proper size, taking into account the extra row and column by copying the edges out or something like that.