Skip to content
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

scene.sampleHeight cause polygon(clamp to ground) to flicker at top view #12017

Open
JiaoJianing opened this issue Jun 4, 2024 · 4 comments
Open

Comments

@JiaoJianing
Copy link
Contributor

JiaoJianing commented Jun 4, 2024

What happened?

I want to draw a midpoint between two points, and I expect the point height fit the ground/3dtiles. I first calculate the world position of that point, convert it to cartographic coordinate, then call scene.sampleHeight. When at a top view, the polygon will flicker.It seems that sampleHeight destroy the main render.

20240604_171151.mp4

Reproduction steps

1.Create a polygon and clamp it to ground;
2.Change the camera to a top view;
3.Call scene.sampleHeight;
4.The polygon flicker.

Sandcastle example

https://sandcastle.cesium.com/#c=fVNba9swGP0rIk8OeIou1i1Nw0opW2F0kJW9LHtQHTURUywjKSlp6X+fEse9U7DB0vnOOd/NAABQ+yYmsLXmzgRwChpzB85NtJs1/H24K+aD+nA+903StjFhPhiezJtMBc4k0KLXrHMdUv7SDS2+YI4QriiUvFJKiYryEjBKMJUMSqoEEhhVJaCYoEoiyCjnHDMq6SsD/IkBU0IRDnEW46KqSHUwoIIiKCXChFVS7Q2w4LSCqkKKkwpj9sqAfFoBwVJCxITKUkwd9AllCkoic7aUyU5fSAEZYphyIshLeR32ff3TojKXkl/yd950aNd0aJpkkzUR6sWieOggABq9NmMwH8zMArTe7Za+AfmJm3CrazMflH3gERyDJyoAK2uCDvVqN97bl8/AWicTrHbjp2K98wF+m11cXME7m1Znrl3pIs9i+IJVOx2jvbW1TtY317vWPPPfQfD6YjY7u7zq6Y9Hoce+Kcey771fX/viTRP2QV1YNOmyydlutSuKITidPhe4b2udp+TfD84vg25Xti5w3jrCuZBMMkUQF6wEuSycV0ApRikSAhFSAsIZpJxhzEkOQ6rq0+xsgokbl7LPMc9Ym8bAqNetM9+NXa5SccikZz2WACOEhieDcjCJaefMtJf7atetDwlsgisgHCWTNfI44uhmU/8zCdYx9iqT0UvqZGG3wC5OP/gTu9Fk5Hbj3C97nxdjOhnl+HdU5/XCNsufWxOc3u3DVnj6o7uEEE5G+fgxM3nvbnR4o/wf

Environment

Browser:Chrome
CesiumJS Version:1.118
Operating System:Windows 10 x64

@ggetz
Copy link
Contributor

ggetz commented Jun 5, 2024

Interesting, I'm not able to reproduce on my machine.

Would you mind leaving the Chrome version you're seeing this on? Also, could you please visit webglreport.com and take a screenshot of your results?

Thanks!

@ggetz ggetz added the needs feedback On hold until additional info is supplied label Jun 5, 2024
@GatorScott
Copy link

@ggetz, I was able to reproduce by using dragging until view was directly above triangle (Edge Version 125.0.2535.85 (Official build) (64-bit)).

@GatorScott
Copy link

Also in Chrome Version 125.0.6422.142 (Official Build) (64-bit), both on Windows 10.

@ggetz
Copy link
Contributor

ggetz commented Jun 5, 2024

Thanks @GatorScott! I see the issue know. It looks like it may be an issue with the shadow volumes used for ground primitives.

@ggetz ggetz added category - picking category - graphics and removed needs feedback On hold until additional info is supplied needs triage labels Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment