Hi Everyone. I am doing one project that I need to render some .gltf from campus of University of Houston, Tx
I downloaded the buildings Here: https://3dwarehouse.sketchup.com/, and I am using the google Sketchup to export as COLLADA.dae.
and Then I am converting to .gltf Here: http://cesiumjs.org/convertmodel.html.
I am using google chrome.
I converted once a building.dae to .gltf it worked nice and rendered in my map, but now, I am following the same steps and it does not render in the map.*: *
An error occurred while rendering. Rendering has stopped. RuntimeError: Failed to load model:
I can’t find the answer of my problem in similar questions here in the group.
My code:
var viewer = new Cesium.Viewer(‘cesiumContainer’, {
imageryProvider : new Cesium.OpenStreetMapImageryProvider({
url : ‘//a.tile.openstreetmap.org/’
}),
baseLayerPicker : false
});
viewer.camera.flyTo({
destination : Cesium.Cartesian3.fromDegrees(-95.3437, 29.7179, 800.0),
orientation : {
heading : Cesium.Math.toRadians(20.0),
pitch : Cesium.Math.toRadians(-60.0),
roll : 0.0
}
});
window[“ab” + str2] = viewer.entities.add({
name : ‘{{building.Name}}’,
position : Cesium.Cartesian3.fromDegrees(parseFloat(’{{building.st_x}}’) , parseFloat(’{{building.st_y}}’)),
model : {
uri : “/media/{{building.url}}”,
}});
OBS.: Remember, my code is working fine with my previous .gltf that I converted one month before.
I am attaching the .gltf file, that is not rending and one print screen to show that its is converting properly. I have tried different buildings, but the error is the same.
Thank you
cesiun.zip (130 KB)
cesiun.gltf (190 KB)