3D Models failed to external gltf file

Hello Patrick,

Good morning!

thanks for all your help so far .

i am trying to generate 3D models through CZML, and i m using Cesium_Air.gltf given in the sandcastle for the testing purpose.

as long as my path is http://cesiumjs.org/Cesium/Apps/SampleData/models/CesiumAir/Cesium_Air.gltf it is rendering fine on the map.

Issue:

but trouble starts when we are trying to use the path of loclhost as in http://localhost:8080/Cesium/Apps/SampleData/models/CesiumAir/Cesium_Air.gltf, the error which it says is
failed to load external gltf file.

the czml format is as follows

[

{

“id”:“document”,

“version”:“1.0”

},

{

“id”:“1423552329600011080681030514497”,

“model”:{

“show”:true,

“gltf”:“data:application/xml;charset=UTF-8;base64,PHRyYW5zLXN0YXR1cyA+MzAwMTwvdHJhbnMtc3RhdHVzPg==”,

“scale”:128

},

“position”:{

“cartographicDegrees”:[

-122.3859020032358,37.79052472245795,0

]

}

}

]

please let me know how to go about it.

thanks and regards,

chandrika

It looks like you CZML gltf property is incorrectly set. While we support data URIs, that particular URI does not appear to be an encoded file.

Hello Mathew,

thank you so much.

but have a query further as the gltf property is set, based on the czmlWriter which we are using provided by the cesium.org site which is as given below:

https://github.com/AnalyticalGraphicsInc/czml-writer

but the code snippet used is as follows as the URI is generated correctly and send to the gltfProperty of modelCesumWriter , please let me know where i went wrong:

ModelCesiumWriter model = packet.openModelProperty();

model.writeShowProperty(true);

model.writeGltfProperty(URI.create(cadFeature.getUrl()),CesiumResourceBehavior.EMBED);

the above URI.create(cadFeature.getUrl()) gives http://localhost:8080/Cesium/Apps/SampleData/models/CesiumAir/Cesium_Air.gltf

Yes, but it looks like it failed to actually retrieve and embed the model at the time of CZML creation. I assume this workes if you change EMBED to LINK_TO?

Hello Mathew,

we have tried using the LINK_TO and it is working perfectly , thanq so much .

thanks and regards,

chandrika