Skip to content

Commit

Permalink
fixed external textures error
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitshyamsukha committed Sep 29, 2016
1 parent a458bc6 commit 3878d11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Source/Scene/Batched3DModel3DTileContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ define([
'../Core/defineProperties',
'../Core/destroyObject',
'../Core/DeveloperError',
'../Core/getBaseUri',
'../Core/getMagic',
'../Core/getStringFromTypedArray',
'../Core/loadArrayBuffer',
Expand All @@ -24,6 +25,7 @@ define([
defineProperties,
destroyObject,
DeveloperError,
getBaseUri,
getMagic,
getStringFromTypedArray,
loadArrayBuffer,
Expand Down Expand Up @@ -256,7 +258,7 @@ define([
gltf : gltfView,
cull : false, // The model is already culled by the 3D tiles
releaseGltfJson : true, // Models are unique and will not benefit from caching so save memory
basePath : this._url,
basePath : getBaseUri(this._url, false),
modelMatrix : this._tile.computedTransform,
vertexShaderLoaded : batchTable.getVertexShaderCallback(),
fragmentShaderLoaded : batchTable.getFragmentShaderCallback(),
Expand Down
4 changes: 3 additions & 1 deletion Source/Scene/Instanced3DModel3DTileContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ define([
'../Core/destroyObject',
'../Core/DeveloperError',
'../Core/Ellipsoid',
'../Core/getBaseUri',
'../Core/getMagic',
'../Core/getStringFromTypedArray',
'../Core/joinUrls',
Expand Down Expand Up @@ -43,6 +44,7 @@ define([
destroyObject,
DeveloperError,
Ellipsoid,
getBaseUri,
getMagic,
getStringFromTypedArray,
joinUrls,
Expand Down Expand Up @@ -314,7 +316,7 @@ define([
collectionOptions.url = joinUrls(baseUrl, gltfUrl);
} else {
collectionOptions.gltf = gltfView;
collectionOptions.basePath = this._url;
collectionOptions.basePath = getBaseUri(this._url, false);
}

var eastNorthUp = featureTable.getGlobalProperty('EAST_NORTH_UP');
Expand Down

0 comments on commit 3878d11

Please sign in to comment.