CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.61k stars 3.41k forks source link

Clipping plane not correctly applied to child tiles #6879

Open hpinkos opened 6 years ago

hpinkos commented 6 years ago

clipping

var viewer = new Cesium.Viewer('cesiumContainer');

var clippingPlanes = [
    new Cesium.ClippingPlane(new Cesium.Cartesian3(0.0, 0.0, -1.0), 0.0)
];

var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
    url : Cesium.IonResource.fromAssetId(5743),
    maximumScreenSpaceError : 2,
    clippingPlanes : new Cesium.ClippingPlaneCollection({
        planes : clippingPlanes,
        edgeWidth : 1.0
    })
}));

tileset.readyPromise.then(function() {
    var boundingSphere = tileset.boundingSphere;
    var radius = boundingSphere.radius;

    viewer.zoomTo(tileset, new Cesium.HeadingPitchRange(0.5, -0.2, radius * 4.0));
}).otherwise(function(error) {
    console.log(error);
});

cc @ggetz

likangning93 commented 6 years ago

Be sure to check bounding volumes for this model, I think there was something like the smoke stacks being double layered, but one of them having a bounding volume that isn't as tall as it should be?

hpinkos commented 5 years ago

confirmed to still be a problem. @shehzan10 also reported this working with a different tileset today