CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.99k stars 3.5k forks source link

The OsmBuildings rendering in Cesium 1.120.0 has some imperfections #12151

Closed danchaotaiyang closed 2 months ago

danchaotaiyang commented 2 months ago

What happened?

1 2 3 4

Reproduction steps

// Keep your Cesium.Ion.defaultAccessToken = 'your_token_here' line above. // STEP 2 CODE // Initialize the viewer with Cesium World Terrain. const viewer = new Cesium.Viewer('cesiumContainer', { terrain: Cesium.Terrain.fromWorldTerrain(), });

// Fly the camera to Denver, Colorado at the given longitude, latitude, and height. viewer.camera.flyTo({ destination: Cesium.Cartesian3.fromDegrees(-104.9965, 39.74248, 4000) });

// Add Cesium OSM Buildings. const buildingsTileset = await Cesium.createOsmBuildingsAsync(); viewer.scene.primitives.add(buildingsTileset);

Sandcastle example

https://cesium.com/learn/cesiumjs-learn/cesiumjs-interactive-building/

Environment

Browser: CesiumJS Version: 1.120.0 Operating System:

ggetz commented 2 months ago

Thanks for the report @danchaotaiyang!

This was fixed in https://github.com/CesiumGS/cesium/pull/12116. It will be included with the next release on 9/3.