-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depth Test Failure / Z-fighting #12337
Comments
@TJKoury thanks for the report! Could this be OS-specific? Something about depth textures not supported, or lower depth buffer precision? |
Thanks @TJKoury, |
Yeah I see the same issue since I upgraded from 1.114 to 1.124. Seems like while tracking an entity I get flickering from other polylines. I couldn't get it to happen while not tracking an entity but working with the camera is a bit harder in that case to orientate it so not certain on that one. |
I traced the bug to a single line from #12188. We changed this: positionEC = czm_modelView * position;
gl_Position = czm_projection * positionEC; to this: positionEC = czm_modelView * position;
gl_Position = czm_modelViewProjection * position; Reverting this change fixes the bug on my machine. |
What happened?
In 1.123, intermittent depth test failure or z-fighting issue. Not present in <1.122, unsure if it was introduced in 1.122 or 1.123. Goes away if
viewer.scene.globe.depthTestAgainstTerrain
is set to true.Reproduction steps
Open sandcastle, track GeoEye-1, see the primitives show through the globe.
Sandcastle example
https://sandcastle.cesium.com/?src=CZML.html&label=DataSources
Environment
Browser: Version 131.0.6778.85 (Official Build) (64-bit)
CesiumJS Version: 1.123.1
Operating System: Pop!_OS 22.04 LTS
The text was updated successfully, but these errors were encountered: