I’m having the same problem in that I just upgraded to Cesium 1.63, and now I’m receiving errors such as:
(running locally…)
http://localhost:8383/JS3D/undefined/Assets/approximateTerrainHeights.json net::ERR_EMPTY_RESPONSE
http://localhost:8383/JS3D/undefined/Assets/IAU2006_XYS/IAU2006_XYS_16.json net::ERR_EMPTY_RESPONSE
http://localhost:8383/JS3D/undefined/Assets/Textures/moonSmall.jpg net::ERR_EMPTY_RESPONSE
My project uses simple JavaScript, and I include/reference the Cesium Build folder, so I’m not sure why I’d be having this problem.
Additionally for some reason I’m having a hard time figuring out how to successfully set the CESIUM_BASE_URL variable.
I’m creating an instance of the Cesium Viewer as follows:
if (!document.getElementById(“divCanvas”)) {
var divCesiumContainer = document.createElement(“div”);
divCesiumContainer.id = “divCanvas”;
document.body.appendChild(divCesiumContainer);
console.log("Cesium version: " + Cesium.VERSION);
}
// Create an instance of the terrain provider to be used for retrieving elevation data elsewhere
terrainProvider = new Cesium.createWorldTerrain({
requestVertexNormals: true
});
// Set the Cesium Ion Access Token
Cesium.Ion.defaultAccessToken = cesiumDefaultAccessToken;
// Eliminate Cesium Bing Key issue
Cesium.BingMapsApi.defaultKey = ‘bogus’;
// Using Cesium viewer
var skyBoxBaseUrl = “resources/plugins/cesium/Cesium/Assets/Textures/SkyBox/tycho2t3_80”;
cesiumViewer = new Cesium.Viewer(‘divCanvas’, {
animation: false,
baseLayerPicker: false,
fullscreenButton: false,
geocoder: false,
homeButton: false,
infoBox: false,
sceneModePicker: false,
selectionIndicator: false,
timeline: false,
navigationHelpButton: false,
navigationInstructionsInitiallyVisible: false,
// This is the new Cesium terrain provider which is free until September 1, 2018
terrainProvider: terrainProvider,
skyBox: new Cesium.SkyBox({
sources : {
positiveX : skyBoxBaseUrl + ‘_px.jpg’,
negativeX : skyBoxBaseUrl + ‘_mx.jpg’,
positiveY : skyBoxBaseUrl + ‘_py.jpg’,
negativeY : skyBoxBaseUrl + ‘_my.jpg’,
positiveZ : skyBoxBaseUrl + ‘_pz.jpg’,
negativeZ : skyBoxBaseUrl + ‘_mz.jpg’
}
}),
sceneMode: Cesium.SceneMode.SCENE3D
});
``