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

Error in Terrain Clipping Planes for 2D & Columbus View #8754

Closed
mholthausen opened this issue Apr 14, 2020 · 1 comment
Closed

Error in Terrain Clipping Planes for 2D & Columbus View #8754

mholthausen opened this issue Apr 14, 2020 · 1 comment

Comments

@mholthausen
Copy link

mholthausen commented Apr 14, 2020

When using the Terrain Clipping Plane, it is expected that when activated, the terrain will be clipped at the specified location in all views (3D, 2D, Columbus View).
This is not the case in the 2D view and the Columbus view. The clipping plane is here always displayed in the ocean south of Ghana, even if the starting point is a different one to the sandcastle location.

Sandcastle example: (modified sandcastle to quickly see the clipping plane)
https://sandcastle.cesium.com/#c=3Vp7b9s4Ev8qRA4Hy1eb0fvhJL1Lk3SbQ7sNmnSLQ1IcaImxtZFFQY8kvkW++w0fetlK6+5m748LsFtJHP7mwZnhcOj9ffS5oChM4iyL0wXKEpLSApUMFTShYRnf02SNlnFEUUbyskDsFpVLihYJm1NUVPktCSm+SW/Se5Kj+5g+0BwdoZQ+oBNaxNUK/yK+aaNQvJ6wtCRxSvPRBP12kyL4K+7Wx+WKFdmS5nSGbklS0IkaWrIqiY7TeEVKimaozKt6qKR5DkAXObsH4fJZzS7MKdB+YXkSXUkSbVyjhTSl1unHNFkrNjfp0/hAii4VOlIqYEGLxceDWjv6SFZZQq/WGVjoCF2PJEv0gaSgzeiyxOgdGC0t+NtPOUkjdELSNUvRecESkCoafT1oDfWBRTQBHGWGHvqs96rkD6s8p2l51o5s0F3rX2tStZ4XYjnPUjJPaNQ3II0W9LJcJ0DVHwejKClLxpI54esZsbBaAW+8oOVZQvnjm/V5pI0UyYibUa3AXcrCO1aVuMxJeKc1qg6RkCxL1m/iNAIpipZ0UrMeC+Pv76O3DMTheNxJi5K7w8OSpqh4iMtwyT92DSHFHzbCkVBSaThghGZc2SBOaEFL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Qvitx5x70sa15OSxqxeN8wxfl94MtqUKyojnB/O1Nb4bWB+gt1Dsqwu+CN4c/kXRBNVFPTHUMZaWS4G8IToH9MqDHMWHs7rgUKwbV2ErbWM7z07Ofr86v/tUk+TFmkCLyB8gVbZqA6GV5P1csc/agvh90Eub28V9cIcgbBG3cNgAu4vAOkbZLqDbV7oXD9zrCTdCUrM0RG37eyySndJFTWmhTA85IJj9V8dLfggo+sALLBtMaemvLjd3YEi2eztiW63RYb6xx0wBtd9WN3uKLNgzVvGbRC0xJUf7M8nL5Obtib+NHGr3NwT8awf4nHcNG95fuGL4Q8HbH8EWBp0PAwx3DKoU1qZE/0YW6SJD3WjsVJ+Ji8PnqpB7u9fReOEfB/weTI6Qsp5Oyfne6Eqlm8yoOyuSP84Lm97yS617FjQZLvdGYb5lFmMfzTrq7J0lFm3Q3FKCYNvdsgvjgWxeWLY3asXYXerv03UXiwfvArpzDKtUVN2/nfrPk/j2abF/7DmsCrvVLTxl1I6kkj29RQ4KOjo42b457m9T2TaeIHUTB+b+DZGwjtX3sHwEyt4F6O2J7uFIm3ZvsHYqa6bUc+Ue8yiBz83OAhvF+SQGbQGbZn1fhHRQqYVHUIH+pr7o7DHlqWIhO+gxBNUU0m7ek1H869ruVQwalEqz4DNnZ40H3hjOPaD6V0dsdfNpgG6dwhu51c2hexiFJpnAGX6QzfjyNErrNcVqybIbMHtd6aM7Kkq26o8D2cL820WEU36M4OrrZ2/hpxs0ehCMpChi5hbTIbwJv9l4f7gN9bxpfEeDzEWRNyJqTLI3X7+VHjPHhPrxuz1IqA7mU6VD+0ARFpCTTeZxyGpZxjy42fgUhA3E28DsIIZ7EqVGlRUsY5AouaXg3Z4+gmcDgmonff+z12AoyGj1zuFX8P2cwBaQYCQ4jYI1+Er8d2byRod0z8R+TZzupPC/MGdCiQhK3MtTr8F8

Browser:
Google Chrome Version 81.0.4044.92 (64-Bit)

Operating System:
Linux Mint 19.3

As you can see here, the Clipping Plane takes place in the ocean west of Africa in the ocean, even though it should be at clipping around the cesium man.
Bildschirmfoto vom 2020-04-14 15-42-24

@OmarShehata
Copy link
Contributor

I believe clipping planes are currently only supported in 3D. There's an issue here to add support for 2D & CV: #6871.

Perhaps would be useful to add an error or warning when switching to 2D/CV with clipping planes in a scene to explain this?

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

No branches or pull requests

2 participants