Hi,
Is there a way to reference a Cesium Ion-hosted GLTF model/asset in CZML?
I attempted to solve it using the model’s resource URL as such (see below), however this resulted in an HTTP401 although the Ion.defaultAccessToken
is set appropriately for the project.
{
"id": "document",
"name": "Data",
"version": "1.0"
},
{
"id": "model123",
"name": "My model",
"position": { ... },
"model": {
"gltf": "https://assets.cesium.com/{ION_ASSET_ID}/model.glb",
"scale": 2.0,
"minimumPixelSize": 128
}
}
]
Similarly, using only the Ion asset ID as a value for the gltf
property did not work.
According to the CZML Model spec, the gltf
property must be a URI, but I cannot figure out the structure of it.
Thanks.