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

Shadows Not Occluded by Terrain #12357

Open
calogeromauceri opened this issue Dec 4, 2024 · 1 comment
Open

Shadows Not Occluded by Terrain #12357

calogeromauceri opened this issue Dec 4, 2024 · 1 comment

Comments

@calogeromauceri
Copy link
Contributor

calogeromauceri commented Dec 4, 2024

What happened?

There is an issue with shadows cast by entities on terrain in CesiumJS. Specifically, when a part of an entity is occluded by the terrain, the shadow from that part is still visible, even though it should be hidden by the terrain.

Immagine 2024-11-26 170507

Reproduction steps

  1. Open the Sandcastle example

  2. Rotate the view such that the camera looks upward from the bottom to the top of the mountain.

  3. Observe that the shadow cast by the lower part of the entity (e.g. a tower) is visible through the terrain, even though it should be occluded.

Expected Behavior

The terrain should occlude shadows properly. Shadows cast by the lower parts of entities should not appear through the terrain.

Sandcastle example

https://sandcastle.cesium.com/#c=rVbbbts4EP0VwvtiIwltOb6olpPdxHGBFG4L1EaD7mpR0BJtE6VIQ6Ry2a3/vSNeZDlxWiywehKHhzNzDoccJlIoje4ZfaA5ukCCPqAJVazI8Gdja8aNxIwnUmjCBM3jxin6NxYIMbGS1/JxhFaEK3pamhTlNNFMiluRsoRomR/MbkgqH9QI6bywFk3zHJzO/YQLbcfvZUrxp+lkevt5+vXjh9kX50QWPL0SLCOavnRV+VjYMV7lMruTOU+dodkC+K4VxSIWiSFv03pPtsDfCoErE8Cqf5yRR5YV2Q1TmoiEAjzowIc7B6gVSZlYTwVZcpoCxvCPULuNYGFpdAGRBcbCx0yooHjN5ZLiJUm+vSUJnRScA6bychSc0q3eLKjSV2vgp7QjCotKcfZrEi6Tbzgp8pwKvWBZScCJ9a7gjIgbUNTodatkOOgEsPfdTrd3FgRn3cGi0x11u6Pg/M+40XruNCu4ZlvOTA0FRpC9vg9Spgtp68utggSYZlRhkqZNU0yCZLCbceMOwMigoc7KiQ1l640eIZDZjDOoCj6yFYhQkbNyFcbtOcm2nAIF0jYQ1b7zcc3fV/MLki2d41o9viy76Yer69n0xgB3+4LxlIA0KctcASWTyfSe5rADVV5cijXTRQqcAtwPhsF5dxCGLi6HtXaug3th2At7vTeDnpv0fMNh/xwHw7ALk+GbfuCmU1P13V5/2O8M8aDbCXv9fZYmSU41YpFP1Ut9RPx7wguqXiBnVKz1BvAVkBuLcb4qhDngcNT1zKnQ9HK0LH2vkZMAPHkAroxRDejkOMA5Ww1mhamDrMWkhdBK5qjJYLoTIYbGz9hE6OSEtfzu1Pg+1Xj+xf6OLMBO4a1UzJCtDsqE5Br+iDg3B+UTHGEiVNOuqm37aWVxRCqDo3HiY9ixm26Z+LuS0e41td8623PVc6qLXKBqSbOie3SrbKToSKCpSaxp83NO/ou6NTnhIoWLbn97GW6VvG7S3VLI16fO4faj6fRge55ez7QS5CDjn8pxSPFQiljMiUgTojSn5f20kOs1p9eF1hAibri0XMsqm6FpQbVAyYaW+R8cBhvJLQJODmMT+v3IBTS5mi9M07OQY3fUze3cXFLR/17+iXsUqILwagOwuVbR9+9+vJSPtRGFTrVVkqXOh13tOqmqvDgJfC24e/VnigMwbvietpe9XjAHrwh0cXHxixv9tb161ePhfh3fMRfAQ371mIn8pe07y7FTqrBrLCVoX7dVRy3NjdPGWOknTi996D9YtpW5hubIm9AZNYXOCG1DtZcFkNA4UaoVefBvWkq+JDnC9p13tjS6e0FMz2EKHDyN0LJs9tXKnf0Zt+vRxym7Ryy9OPJsRAknSsHMCl41c/YPjRuX4zbgXyzl0jyNPgJ3iFvCNsHlzBoxxuM2DI+vdGSeef4B

Environment

Browser: Any
CesiumJS Version: 1.124
Operating System: Any

@jjhembd
Copy link
Contributor

jjhembd commented Dec 18, 2024

@calogeromauceri thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants