CesiumGS / CesiumGS/cesium

Clipping plane not correctly applied to child tiles

Open
#6,879 2 comments 0 reactions 0 assignees View on GitHub
category - 3d tiles type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

![clipping](https://user-images.githubusercontent.com/3451886/43656362-3017ece8-9720-11e8-975c-e97ada863c49.gif)

```js
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

Contributor guide

Open the contributing guide

Research direction

Use the supplied JavaScript reproduction with Cesium.Viewer, Cesium3DTileset, ClippingPlaneCollection, and asset 5743. First confirm how clipping differs between the root and child tiles, then trace the tileset clipping path. Done means clipping is applied consistently to child tiles and the reproduction no longer shows the reported mismatch.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.