Terrain Mesh

Miscellaneous Forums/General Discussion/Terrain Mesh

Is there a function anywhere that creates a terrain mesh from a heightmap?

That's what LoadTerrain does. Any reason you can't use that?

ya, I'm trying to make a little copy of ALE, but I get a runtimeerror, "Entity is not a mesh", because I need to perform mesh functions with it.

Ah. I'd be surprised if there isn't something in the code arcs to do this. Otherwise, it'd be pretty straight forward to code something up, I think. ;)

lol, yea, but I'm to lazy to waste time coding something already coded.

Bingo! ;)
http://www.blitzbasic.com/codearcs/codearcs.php?code=1609

lol thnxs