Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clipping plane not correctly applied to child tiles #6879

Open
hpinkos opened this issue Aug 3, 2018 · 2 comments
Open

Clipping plane not correctly applied to child tiles #6879

hpinkos opened this issue Aug 3, 2018 · 2 comments

Comments

@hpinkos
Copy link
Contributor

hpinkos commented Aug 3, 2018

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
Copy link
Contributor

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
Copy link
Contributor Author

hpinkos commented May 9, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants