-
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
label : HeightReference.CLAMP_TO_GROUND "An error occurred while rendering." #6793
Comments
Hi @yijiao19, Cesium 1.45 added a logarithmic depth buffer, disabling it might help for now. Here's your code with log depth disabled on Sandcastle. More technically, it's possible that you're running up against WebGL limits for your browser and graphics hardware when logarithmic depth is enabled. Can you attach a PDF of the results from webglreport.com? |
Hi @yijiao19, I was unable to reproduce this. Do you see this crash in Cesium 1.46 too? Also, check to make sure Chrome is up to date, and try updating drivers for graphics card. And as @likangning93 said, please send us the results from webglreport.com |
@likangning93 Thanks! I set logarithmicDepthBuffer=true, then fix the bug. Chrome is the latest version. I guess my graphics hardware may be not available for webGL 2.0. |
Hi @yijiao19, can you post a higher-resolution screenshot or preferably a PDF for the webgl 1 page on webglreport? Chrome and Firefox both allow using |
WebGLReport is designed specifically so that you can easily copy/paste the page as text into notepad. |
Hello @likangning93 Sorry, I try my best but the pdf of Chrome is confusing. So I also send you a higher-resolution screenshot of the page in chrome. |
Hi @yijiao19, Thanks for the info! It looks like your graphics card should be able to run Cesium's newer features pretty well, but it's using old drivers since there's only support for D3D9. See here: http://www.nvidia.com/Download/index.aspx?lang=en-us For your GPU, The automatic detection thing might work too, but I haven't tried it. |
I'm going to close this issue since it seems like an problem with the graphics driver, not a bug in Cesium. @yijiao19 if you update your drivers and you still see this crash, feel free to reopen this issue. Also try clearing your cache/cookies in case there's something cached from the older version of Cesium that's causing issues. |
This issue was reported by another user on the forum: https://groups.google.com/forum/#!topic/cesium-dev/XlaPQFwjozA |
I'm thinking the issue is that the WebGL report @yijiao19 posted says |
Windows7 laptop with this render error for billboards clamped to ground: Platform: Win32 The error: Error The test page that fails: https://lftgly.com/mount-washington-regional-mesonet3DCesium147.html |
iPhone 6s has the same render error, slightly different syntax, here is its webglreport: Platform: iPhone My page referencing Cesium 1.46 loads fine on the iPhone. "An error occurred while rendering. Rendering as stopped" |
Hi @lftgly, are there updated graphics drivers available for your Windows 7 setup? We might be running up against your machine's varying limit as @hpinkos mentioned above, but a driver update (if available) could be a workaround. Related, do you know what the GPU model number (like HD 4000) or CPU model number (i5-3320m) is? The oldest Intel graphics I have on-hand is the HD 4000 from 6 years ago, which seems to be able to handle this feature when running with up-to-date drivers. For iOS though, I'm seeing only 8 available varying vectors on a first-gen iPad Pro... this should be kind of representative, Apple seems to try to keep the capabilities available to WebGL consistent across iOS device generations. |
@lftgly can you see if you still have this problem in our current master branch? Here's a zip file to download a build: http://cesium-dev.s3-website-us-east-1.amazonaws.com/cesium/master/Cesium-1.47.0-master27825.zip |
Congratulations on closing the issue! I found these Cesium forum links in the comments above: https://groups.google.com/forum/#!topic/cesium-dev/XlaPQFwjozA If this issue affects any of these threads, please post a comment like the following:
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
Today I update cesium 1.47 instaed 1.43.
But when I add a label with "heightReference: Cesium.HeightReference.CLAMP_TO_GROUND", the chrome reports me the text :
An error occurred while rendering. Rendering has stopped.
RuntimeError: Program failed to link. Link log: Could not pack varying v_logZ
Note: Additional non-conformant packing restrictions are enforced on D3D9.
Error
at new t (http://localhost:5000/libs/Cesium/1.47/Cesium.js:451:28517)
at f (http://localhost:5000/libs/Cesium/1.47/Cesium.js:480:17965)
at y (http://localhost:5000/libs/Cesium/1.47/Cesium.js:480:19679)
at d._bind (http://localhost:5000/libs/Cesium/1.47/Cesium.js:480:20694)
at G (http://localhost:5000/libs/Cesium/1.47/Cesium.js:508:913)
at k.draw (http://localhost:5000/libs/Cesium/1.47/Cesium.js:508:4878)
at n.execute (http://localhost:5000/libs/Cesium/1.47/Cesium.js:479:21080)
at Ge (http://localhost:5000/libs/Cesium/1.47/Cesium.js:530:16825)
at Xe (http://localhost:5000/libs/Cesium/1.47/Cesium.js:530:21309)
at tt (http://localhost:5000/libs/Cesium/1.47/Cesium.js:530:26613)
my test code:
The text was updated successfully, but these errors were encountered: