-
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
Clipping plane with Arcgis terrain cause WebGL Error #7990
Comments
Thanks for reporting this @dhdbtkd . This does look like a bug. It's easy to see in the globe clipping plane example as well: https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=Terrain%20Clipping%20Planes.html By replacing the terrain provider with:
It's complaining that the number of texture units exceeds what's supported (which is 16 based on WebGL report for me). If you log the number of used texture units in the globe shader here: You can see it's 2-3 for regular Cesium World Terrain, and 16 for the ArcGIS terrain. I think that in itself is right at the limit, but then when you add a clipping plane it needs an extra texture (since clipping planes are stored as textures) and that's when it crashes. |
This may be video card or OS specific because this works fine for me (Linux, Intel). @OmarShehata I assume from your comment that you can easily reproduce? |
@mramato I can reproduce. What's your |
From the error message I think Cesium may be using too many texture units
when generating draw commands for terrain tiles because the terrain system
isn't aware of the texture being used by clipping planes. @mramato you may
have more availabile texture units than @dhdbtkd.
…On Thu, Jul 11, 2019, 12:15 PM Matthew Amato ***@***.***> wrote:
This may be video card or OS specific because this works fine for me
(Linux, Intel). @OmarShehata <https://github.com/OmarShehata> I assume
from your comment that you can easily reproduce?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7990>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABJFGN32GN4F4JOXMVDGZO3P65MB5ANCNFSM4H7MAW4A>
.
|
Mine is 32, so that makes sense. I thought we had a test that made sure we supported the minimum but I'm guessing @likangning93 is on the right path and that two systems aren't aware of what each other are using. |
Fix issue CesiumGS#7990 and also similar case when globe shading is on.
Clipping plane with Arcgis terrain cause WebGL Error
Sandcastle example: https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/#c=rVbZbuM2FP0VIkURGXEoydTqOEFbTzANMEADJNM8xPN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Jf+LqQylS3t4WxbdgaGEJj2UmZPjODU627tPxkpMwTKF1vPwlNn5dKliKbIrVMqOVN4Dhvfw6O+mUv4KiCDU+RV7z0xIlU8EZxrmjGS91Xvu6F5QJ6tx8cXgoMhxPpHJp/KaZVU2Q5ex/x3MhiiiaDqJ0qkcbIdV8LYWd2l6JZxjeIZ5eLk71XqcUJVJBqDZqnMs/vYPoWJ1czG+wHbrmkVZw/gGtOt5XJyr360ggxxjMblu+92i2DecNp1rwYoowaep5wUdnIomouyBh7oVA0dr8toI9gtvKSQXuVSsHIXO90Nb0Gp0NtMmpAWW1wxdLnRL7AzmqMamc01+A3CFubsWy/ga+bnmvjfy3ABVic1hFOITT6XL+87r/ztq36f/CpxuMOygbo/0rmGmyRbox3HLo6/AM
Browser: IE, Chrome, Firefox
Operating System: Win 10 64bit
The text was updated successfully, but these errors were encountered: