You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I think in some situations, especially when we needn't terrain data and mostly the imageryProvider is WebMercatorTilingScheme mode
, it is better to set EllipsoidTerrainProvider tilingScheme as WebMercatorTilingScheme because of high performance and high texture quality.
So, how about it: ImageryLayer.prototype._reprojectTexture = function(frameState, imagery,terrainTilingScheme)
we add the terrainTilingScheme as a parameter, then we can judge whether to reprojectTexture:
var bBothWebMercatorTilingScheme = (this._imageryProvider.tilingScheme instanceof WebMercatorTilingScheme) && (terrainTilingScheme instanceof WebMercatorTilingScheme);
of couse, I think it is ok that ignoring this situation that EllipsoidTerrainProvider is WebMercatorTilingScheme while imageryProvider is GeographicTilingScheme.
@pjcozzi I got it from the latest version, it is a smart and general solution for this issue. The comparison and analysis are clear.So happy for this improvement:)
Hi, I think in some situations, especially when we needn't terrain data and mostly the imageryProvider is WebMercatorTilingScheme mode
, it is better to set EllipsoidTerrainProvider tilingScheme as WebMercatorTilingScheme because of high performance and high texture quality.
So, how about it:
ImageryLayer.prototype._reprojectTexture = function(frameState, imagery,terrainTilingScheme)
we add the terrainTilingScheme as a parameter, then we can judge whether to reprojectTexture:
var bBothWebMercatorTilingScheme = (this._imageryProvider.tilingScheme instanceof WebMercatorTilingScheme) && (terrainTilingScheme instanceof WebMercatorTilingScheme);
of couse, I think it is ok that ignoring this situation that EllipsoidTerrainProvider is WebMercatorTilingScheme while imageryProvider is GeographicTilingScheme.
here is my example for this test:
https://github.com/pasu/ExamplesforCesium/blob/master/globeTerrain.html
The text was updated successfully, but these errors were encountered: