How to create a terrain mesh from a heightmap in LibGdx

1.1k Views Asked by At

I am working on a top down game - currently the terrain is a tilemap that is generated based on a heightmap array that holds height values ranging from 0 to 255. I want to change this and instead render a terrain mesh. I understand the basic idea behind how meshes work but I cannot figure out how to actually translate a height matrix into a mesh. Any help on how to create and render the terrain mesh would be greatly appreciated. Thanks!

0

There are 0 best solutions below