The problem:
I’m trying to load a big b3dm model in a tileset.json, and am getting an error in the console:
A 3D tile failed to load: http://localhost:8080/cesium-npm/Source/SampleData/Models/cadizTest.b3dm?v=0.0
Cesium.js:531 Error: Failed to load image: id: 0, bufferView: 4
The code:
tileset.json
{
“asset”: {
“version”: “1.0”
},
“geometricError”: 500,
“root”: {
“boundingVolume”: {
“region”: [
-1.538164,
0.68661,
-1.290164,
0.826661,
0,
200
]
},
“geometricError”: 100,
“refine”: “REPLACE”,
“content”: {
“url”: “./cadizTest.b3dm”
}
}
}
``
javascript
var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
url : ‘./Source/SampleData/Models/tileset.json’
}));
tileset.readyPromise.then(function(tileset) {
tileset.modelMatrix = Cesium.Transforms.headingPitchRollToFixedFrame(Cesium.Cartesian3.fromDegrees(-81.025642, 40.258251, 300), new Cesium.HeadingPitchRoll());
//viewer.camera.viewBoundingSphere(tileset.boundingSphere, new Cesium.HeadingPitchRange(0, -90, 0));
//viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
});
``
Context:
The b3dm file is HUGE, ~1GB
Specs:
Cesium Version 1.43
OSX High Sierra 10.13.1
Chrome 66