1. A concise explanation of the problem you’re experiencing.
I just wante render building outline in Cesium3DTileset.Before set style, my module wall space is blank. Its terrible-looking. I change the alpha of color. But some unexpected white appear on overlay 3dtilefeature(entity).
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
var tileset = new Cesium.Cesium3DTileset({
url: ‘/mwb/data/111/tileset.json’
});
var style = new Cesium.Cesium3DTileStyle();
tileset.readyPromise.then(function(tileset) {
viewer.scene.primitives.add(tileset);
viewer.zoomTo(tileset, new Cesium.HeadingPitchRange(0.0, -0.5, tileset.boundingSphere.radius * 2.0));
}).otherwise(function(error) {
console.log(error);
});
style.color = ‘rgba(204,255,255, 0.9)’;
// style.anchorLineEnabled = true;
// style.anchorLineColor = ‘color(“blue”)’;
tileset.style = style;
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I just the wall look better than default.
-
My model contains all the room shapes of the building.
-
I just need to render the outline of all the outer walls
The default load.
change aplha of color
4. The Cesium version you’re using, your operating system and browser.
ceisum.js 1.63
windows 10
chrome 75.0.3770.142