How to give a heightmap a texture?

Hi all,

I’m trying to learn jogl but i’m already stuck after a few tutorials. I followed on for creating a box with a texture on it and another one for creating a heightmap out of a image file. But now i’m stuck putting the texture on the heightmap.

Can anybody put my on the right way or point me to a simple example that uses this?

Thanks

How do you handle your height map? Maybe you could generate vertex and texture coordinates and use them with the rendering method you prefer (immediate mode, display list, vertex array, VBO).