async loadView()
{
let viewer =Window.cesiumViewer
const scene = viewer.scene;
// Fly to a nice overview of the city.
viewer.camera.flyTo({
destination: new Cesium.Cartesian3(
-2703640.80485846,
-4261161.990345464,
3887439.511104276
),
orientation: new Cesium.HeadingPitchRoll(
0.22426651143535548,
-0.2624145362506527,
0.000006972977223185239
),
});
// try {
const tileset = await new Cesium.Cesium3DTileset({
url: Cesium.IonResource.fromAssetId(775877),
}).readyPromise
const translation = new Cesium.Cartesian3(
-1.398521324920626,
0.7823052871729486,
0.7015244410592609
);
tileset.modelMatrix = Cesium.Matrix4.fromTranslation(translation);
tileset.maximumScreenSpaceError = 8.0;
scene.pickTranslucentDepth = true;
scene.light.intensity = 7.0;
viewer.scene.primitives.add(tileset);
////////////////////////////////////////////////////////////////////////////
Loading 775877 in the above code failed! There is no problem using 96188. What is the reason? Do you need a special license to load 775877
const tileset = await new Cesium.Cesium3DTileset({
url: Cesium.IonResource.fromAssetId(775877),
}).readyPromise
How to add 775877 resources to my assets?