Terrain system and editor