generate smooth heights for terrain