3D Tileset Loads and fades

Hi developers and users,

I’m a Cesium newbie and I’m trying to see the 3d TileSet TilesetWithTreeBuildboards loading in my Cesium project. I wrote code bellow, however I’ve noticed the layers just loads and fades quickly. Could someone point out any direction on how to add the layer and keep it over the globe without fading.

var tilesetTree = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
url: ‘http://geoserver.local.com:8080/trees/tileset.json’,
}));

//zoom on tileset extents using CesiumJS

tilesetTree.readyPromise.then(function (tilesetTree) {
console.log(tilesetTree.root.boundingVolume.rectangle)

console.log(tilesetTree.root.boundingSphere)

viewer.camera.flyToBoundingSphere(tilesetTree.root.boundingSphere);
});

I appreciate any help or guidance.

When setting up a (local) server, as described in the 3D Tiles Samples instructions, then it should be possible to load this tileset with this sandcastle code:

const viewer = new Cesium.Viewer("cesiumContainer");
var tilesetTree = viewer.scene.primitives.add(
  new Cesium.Cesium3DTileset({
    url: "http://localhost:8003/1.0/TilesetWithTreeBillboards/tileset.json",
  })
);

tilesetTree.readyPromise.then(function (tilesetTree) {
  viewer.camera.flyToBoundingSphere(tilesetTree.root.boundingSphere);
});

The result should look like the following screenshot:

Can you describe in more detail what you mean by “fading quickly”?

Dear @Marco13,

Thank you very much for your reply. I’m sending in attached a video showing the layer being displayed and fading while the map is completely loaded.

I have the tileset.json in a Tomcat9 instance which is running in a Linux Ubuntu Server different from CesiumJS APP with CORS enabled. Must the local web server be a nodejs application?

I appreciated your time.

Best regards

(Attachment tilesetTree.mp4 is missing)

What I mean by fading, the layer shows app right when the app starts loading, but when the app is completely loaded the layer disappears and only the area where the tile is located is shown.

I appreciated your time.

Julierme

(The video seems to be missing, but maybe it’s not strictly required here).

Do you have a chance to test this on a local server, as described in the instructions that I linked to above? (Just to confirm that it basically works…)

Beyond that, I’m not sooo deeply familiar with possible configuration issues of a specific type of server, or what might cause this issue. But when you say that the tileset first appears and then disappears, then this is strange: Once it is loaded, there shouldn’t be any (obvious) reason why it should disappear

Could you have a look at the developer console (pressing F12 in Chrome or Firefox) when running the test? Maybe it shows some error messages that could help to figure out what might be wrong here…