ImageBasedHeightMap problems

Hey all,



I’m going through the terrain tutorial currently. I just copied and pasted the code, and the part “heightmap = new ImageBasedHeightMap(” has a red squiggly line under it.



It says there is no suitable constructor. I have “ImageToAwt.convert(heightMapImage.getImage(), false, true, 0));” right below it.

bump

Here’s a screen cap of what I’m getting if it helps.



Please don’t bump within 40 minutes oO Also, use the tutorials that come with the SDK. The terrain constructor has changed and only takes jME3 images now, no need to use the ImageToAwt class on it.

Hi, All you have to do is not use the imageToAwt converter , like this:



"

heightmap = new ImageBasedHeightMap(

heightMapImage.getImage());

heightmap.load();

"



bye.