Change 3D Terrain Demo to new API