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.96k stars 3.49k forks source link

Visual artifacts using CorridorGeometry and PolylineVolumeGeometry #9893

Open clementchdn opened 3 years ago

clementchdn commented 3 years ago

As discussed in this post, large CorridorGeometry and PolygonVolumeGeometry behave strangely. My first thought was that it occurs when crossing the Equator. Here are three sandcastle examples to visualize the problem.

Sandcastle examples: high inclination orbit

equatorial orbit

simple example In this last example, if you change the value of the first longitude from 76.87435919946516 to 76, you'll notice that the visual artifact disappear.

Browser: Brave 1.31.87 Also in Firefox 91.0.2

Operating System: Windows 10

clementchdn commented 1 year ago

Update following the release of v1.110: First, congratulations for the release ! I read this post this morning and immediately thought about this issue. Unfortunately, after running the provided sandcastles, it looks like the bug remains. Are CorridorPrimitives rendered differently than Polygons ?

ggetz commented 1 year ago

Hi @clementchdn, yes Corridors and Polygons are different paths in the code. Corridor geometries are not triangulated using earcut, so a different issue may be arising here. I would expect the subdivision code has a bug.