Stumped on TerrainPage

hi everyone,



i find myself stumped at the moment with how to tackle a certain problem. I am trying to create a class

that generates a terrain based on a two dimensional grid of variable width and height. This grid stores a terrain name(grass,rock,snow,mountain) in each space which has several corresponding textures(based on heightmap) and small heightmap… i'm curious as to how to tackle this in TerrainPage, because i get the impression i cannot define specific heightmaps and texture patterns to different sections of it.



The only way i envision tackling this is to generate a master heightmap from all the bits and pieces (no idea what class to use for that) and somehow assign different textures to different portions of the terrain… Any idea how this can be done?