I recently updated to the latest czml-writer and I used to write the gltf model to the czml as follows:
using (var model = entity.OpenModelProperty())
{
model.WriteShowProperty(true);
model.WriteGltfProperty(new CesiumResource(“C:/Users/user/Desktop/test.gltf”, CesiumResourceBehavior.Embed));
model.WriteInterval(timeSpan);
model.WriteScaleProperty(1);
model.WriteMinimumPixelSizeProperty(25);
}
Now the WriteGltfProperty requires a Uri but when I update that line to the following I get the Uri is too long error. Anyone know what I’m doing wrong?
model.WriteGltfProperty(new CesiumResource(new Uri(“C:/Users/user/Desktop/test.gltf”), CesiumResourceBehavior.Embed));