How to render the building outline in my 3dtile?

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

  • \Send the picture again

Your best bet right now may be to use the 3D Tiles Styling language to color the buildings or change the opacity like in this example:

https://sandcastle.cesium.com/index.html?src=3D%20Tiles%20Feature%20Styling.html

There’s an issue here about improving this in CesiumJS: https://github.com/AnalyticalGraphicsInc/cesium/issues/7870

I posted a link to the discussion in this thread, but feel free to chime in there or follow that issue as well.