GeoMipTerrain seems to ignore my heightmap

Hello,

as stated in the title, I’m having an issue with GeoMipTerrain: when I generate a terrain using an heightmap(see below), it generates a flat terrain. What am I doing wrong? Is there any known way to generate heightmaps which actually work? Funny thing: when I use a similar heightmap with HeightfieldTesselator using setVerticalScale(128) or similar it works fine :slight_smile:

Code

 self.terrain = GeoMipTerrain('terrain')
 self.terrain.setHeightfield('test.png')
 self.terrain.setBruteforce(True)
 self.tRoot = self.terrain.getRoot()
 self.tRoot.reparentTo(render)
 self.terrain.generate()

HeightMap

The panda documentation problem is inconsistency. Focus on this example.
https://docs.panda3d.org/1.10/python/programming/terrain/geometrical-mipmapping#dynamic-terrains

You need to set the Z level.

self.tRoot.setSz(100)

Yes! Great! I’m an idiot! Sorry to have bothered with this. It was sufficient to read thoroughly the docs. Thank you very much :grimacing: