Error Cesium 3D Models Tutorial - An error occurred while rendering. Rendering has stopped.

Hi,

during the tutorial "Cesium 3D Models Tutorial", it gives me an error. I put below console and script code. Someone can help me?

Console:
An error occurred while rendering. Rendering has stopped.
undefined
RuntimeError: Failed to load external gltf: ../models/CesiumGround/Cesium_Ground.gltf
Error
   at RuntimeError (http://localhost:8080/Source/Core/RuntimeError.js:42:13)
   at Anonymous function (http://localhost:8080/Source/Scene/Model.js:672:13)
   at Anonymous function (http://localhost:8080/Source/ThirdParty/when.js:217:5)
   at Anonymous function (http://localhost:8080/Source/ThirdParty/when.js:297:5)
   at processQueue (http://localhost:8080/Source/ThirdParty/when.js:647:4)
   at _resolve (http://localhost:8080/Source/ThirdParty/when.js:333:4)
   at promiseReject (http://localhost:8080/Source/ThirdParty/when.js:366:4)
   at Anonymous function (http://localhost:8080/Source/ThirdParty/when.js:217:5)
   at Anonymous function (http://localhost:8080/Source/ThirdParty/when.js:297:5)
   at processQueue (http://localhost:8080/Source/ThirdParty/when.js:647:4)

script:
var viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;
var modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(
    Cesium.Cartesian3.fromDegrees(-75.62898254394531, 40.02804946899414, 0.0));
var model = scene.primitives.add(Cesium.Model.fromGltf({
    url : '../models/CesiumGround/Cesium_Ground.gltf',
    modelMatrix : modelMatrix,
    scale : 200.0
}));

Looks like the the tutorial is out of date, change the url to:

‘…/…/SampleData/models/CesiumGround/Cesium_Ground.gltf’

Thanks for the report, we’ll fix this.

Also see the 3D Models Sandcastle example.

Patrick

Thanks again. We fixed the tutorial.

Patrick