Custom Terrain

Hi All,

I’m trying to create a custom terrain generator that outputs a mesh based on the alpha of a texture2d. I have generated the vertices but I cannot figure out how to assign the indexes for the triangles. It’s the logic that’s beating me more than anything else. could anyone offer a some advice? thanks

Check out the procedural examples on Unity’s site, which has an example of generating a mesh from a heightmap. Also this script does more or less the same thing (it’s based on that procedural example in fact).

–Eric