Hi, it was possible before because I was loading gltf from a variable with Cesium versions up to Cesium 1.96.
I am also looking for the syntax that will work for recent Cesium versions. I hope not, but maybe it went file only starting from Cesium 1.97, the version with huge model architectural changes. I would like to find a solution without having to modify Cesium’s source code.
Here is a work-around that worked for me (Cesium 1.101) !
var blob = new Blob([local_variable], { type: "text/json;charset=utf-8" });
var blobUrl = URL.createObjectURL(blob);
var model = Cesium.Model.fromGltf({
url: blobUrl
});
// run this when the model's readyPromise fires
URL.revokeObjectURL(blobUrl);