A MetaSim Terrain Reference Engine