-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Issue with Material alignment when terrain is enabled #12174
Comments
image URL = https://i.ibb.co/wKd0b5V/test-img.png |
Hi @saadatali48, thanks for the report! Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0. This may be related to #6694 |
Hi @jjhembd Thanks for your response, Even when we set clamp to ground true, and then assign a value of height, it is clipping out the material, as shown in below images. |
The problem I am having is, if we set a height value to polygon, when terrain is enabled, it's material is clipped out, which shouldn't be the case.. Because with a height value the scale of polygon will be exactly the same as it is without height (I think). and if I disable terrain, then the material is aligned properly without clipping. So it has something to do with terrain I think. |
Try this if you want to render your slab 1m above the ground:
Sandcastle here. The polygon is clipped if height = 0. |
I think the core issue here is a documented in #12321. I'm going to close this issue as a duplicate to keep the discussion in one place. If you have any further input on this, please post it there instead. |
What happened?
I am assigning an image as material to a geojson polygon, it fits in perfectly when terrain is turned off. When I enable the terrain, some part of the image is cropped out.
Reproduction steps
2.assign height to polygon entity
Sandcastle example
https://sandcastle.cesium.com/#c=rVZrb9s2FP0rhDEgMpBQ1lt2nGCZm2Zd0yaI3fbDPLSMRNvcZNKjKBtu4P++S0p+ye68AaE/WLz38NzLx7lkIniu0JzRBZXoCnG6QD2as2KKPxubNWwkpt8TXBHGqRw2mpdDnlGFFkJm6YBKCXYwKblEL0OO9uzASRaEqTVrIilR9MsO4iZf8sTSnKjKA+cJ5RSr0v8oxZylJrtaQDTkK5QQlUyQBUYhm1V8xlOxwCSjUlnfBhMqKVqQHBGODAyZJBgfl4SoCoTRTy/Gv/qms1kNuf4lZoH+zAV/40AKJgBCw4Zazuiw0YGvt0BWSOicr30zKWYQm9FcI15WG8eYiimFdTLm0lhnexTZciz4hq30J0LIlHFYOkP5+9anW637A5Nujt/Gjh/5TqsVB34c+8H5ceCFF2DXi5zID8J27IShd4j74/z/xvWCIPJb7ciNvBNxHcd1277nxXH4GoGDwHViNwycfw0btttx1Ha9OIR5v0bYsBUGbuS0I+/EfFuh63huHEeR9yrzfaUN3jftdKtP0MhKC7EUCZzu37ROiCJ9UciE7heUu7rbiP4HQ51TY1+SjExnA3EnRcFT1EFKFnSlGcufTu+QFWeCpFap5iZWE8qtUcETxQS30i2suatO20Y3KVSJCUUagvJybkoYU1mytuiqhG3JckzSdI/8coPesWLKFdMlA89JVsDfSMhbkky2+RnAci813dgIVS48K2vHAUS3fQieQimRjGT7y/xuSsb0Q+V6LKvY0qrYmHZ20NlEqVnesW2G2fMzToT95dGf9KO/7VlGEjqFQBdjsyl4xsdn1fFTkvB8RiR4y60ydtgvvbx9uEz0Wm6Sqgro8uQ0RKEyuJRgFprzso637U9wwKY6JwjAcqTBB6Q1zgll44kCyrDlHzDWsHAI85yNGNxCsEUDqOJX1VL2Djx45+b6T7PqiUzoa2/NqLv4l/ub3vtTaeXqSSgTGF1duBhKX8trt0DrYey7oVcbDjtwfA2e6AjuTm6EXCXx674DP93e3wzefb79Onj4evf08Onjmxr5atut1LkT9i1TGxGtBaWl3n/4aLRxIKvvQkwH4piaVk1sngI7etl5EpRN1xqRUWw81tmteQzoiqDfAlXcztl5+UrYEm9qypA3zhvdXC0zer1m/ZlNZ0IqVMjMwthWdAoygGvafi6Sv6jCSZ6vmbr27tBuyuaIpVdHHljIHCvwjIos67Pv8DS47tqAPxhaJf8wpzIjSw2bONf3pRFj3LWhe3ykEiJ7JrLG/A8
Environment
Browser: Chrome
CesiumJS Version: latest
Operating System: Win 11
The text was updated successfully, but these errors were encountered: