[SOLVED] ImageBasedHeightMap problems

Hello, i’m newbie in this engine and i trying to use example codes to create basic things.

I take a code from the documentation of jme3 but when i compile. I get this error:

The constructor ImageBasedHeightMap(BufferedImage) is undefined

This code is:

AbstractHeightMap heightmap = null;

Texture heightMapImage = assetManager.loadTexture(


heightmap = new ImageBasedHeightMap(

ImageToAwt.convert(heightMapImage.getImage(), false, true, 0));


I tried to search the solution but i found nothing. Anyone can help me?

hmm, where did you get the example code? The wiki is up to date. This tutorial shows you what code to use.

I used this

So, i want a code with terrain and collision example. Your link don’t have collision

Alright, I updated that wiki page with the correct code. Thanks for finding it.

1 Like


Thanks for the fix!