1. A concise explanation of the problem you’re experiencing.
Wall’s, when placed underground combined with clipping planes, show weird texture (parallel blackish lines)
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
viewer.entities.add({
name : "My Wall",
wall : {
positions : Cesium.Cartesian3.fromDegreesArrayHeights(points),
material : "white.png",
minimumHeights: Array(profile.points.length).fill(-10)
},
});
//Creatinh clipping planes
// Create center points for each clipping plane
var clippingPlanes = ;
for (var i = 0; i < pointsLength; ++i) {
var nextIndex = (i + 1) % pointsLength;
var midpoint = Cesium.Cartesian3.add(points[i], points[nextIndex], new Cesium.Cartesian3());
midpoint = Cesium.Cartesian3.multiplyByScalar(midpoint, 1, midpoint);
var up = Cesium.Cartesian3.normalize(midpoint, new Cesium.Cartesian3());
var right = Cesium.Cartesian3.subtract(points[nextIndex], midpoint, new Cesium.Cartesian3());
right = Cesium.Cartesian3.normalize(right, right);
var normal = Cesium.Cartesian3.cross(right, up, new Cesium.Cartesian3());
normal = Cesium.Cartesian3.normalize(normal, normal);
// Compute distance by pretending the plane is at the origin
var originCenteredPlane = new Cesium.Plane(normal, 0.0);
var distance = Cesium.Plane.getPointDistance(originCenteredPlane, midpoint);
clippingPlanes.push(new Cesium.ClippingPlane(normal, distance));
}
globe.clippingPlanes = new Cesium.ClippingPlaneCollection({
planes : clippingPlanes,
edgeWidth: 1.0,
edgeColor: Cesium.Color.WHITE,
enabled : true
});
``
And it looks like (it was supposed to look juste white... I also tested with different images and the results are all similar)
![Screen Shot 2019-09-17 at 6.58.21 AM.png|1298x1174](upload://465NIixZkuZ7iOU1nGEoPvTtLj9.png)
![Screen Shot 2019-09-17 at 6.47.17 AM.png|1326x1248](upload://tsJkyiReoZESP2fxyjW8AWzOFa8.png)
**3. Context. Why do you need to do this? We might know a better way to accomplish your goal.**
I would like to show underground objects with clipping planes
**4. The Cesium version you're using, your operating system and browser.**
1.6.1, MacOs Mojave, Google Chrome
Thank you guys!