Why does background turn black when removing / adding datasources if requestRenderMode is true, can this be prevented?

9 views
Skip to first unread message

jsolen...@meteomatics.com

unread,
Apr 17, 2020, 9:00:14 AM4/17/20
to cesium-dev
1. A concise explanation of the problem you're experiencing.
The background turns black in this case with Explicit Rendering. After removing and adding Datasources again, I would like to redraw the whole thing so that the data is up to date again.
This event actually only happens when the zoom level is very high.



2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
https://sandcastle.cesium.com/#c=1Vffbxo5EP5XrLxgrsQQTjmdCI1OITyclCZVSe+lVJXZHcDCa+/ZXpI04n+/sb0sCyFR2kTKlYdkdzy/55tvd5fckKWAGzDkPVFwQwZgRZGxf4KMNpJwO9DKcaHANFr3Y2UTUPBBp0B6a/XRWsRGg+HlsHveGisD/xZg3SdQKRh/1iPOFDBWq+bJWC0xcFJYp7Nz7vhIFyaBR8RdlE8LlTihFSnylDvwh7RJMBmCP29kINNLSLGKWA5LK3vL4iHdddwKCflsvJdEK6slMKlntFG665FGq7xcq21CSmEdxvtyL7nrHXdaUqveUYd1jlt4LAvofeBuzqZSa0PDpeEq1Rnm/Rs5OmquWtFV/Ve68j5+1Bt50l3N3ys4/HFnX8vuPRjuNuwGO6e0YR33c2/49j/igoFywgmcsy1sjnAbLlFiaTSJRu02ub46v+qRS+0Il5KMol8y55a4OZCP3PAMHO4BCt1cWHItMiCMsYEulIteptoQKsERgWl3TvBfP6CASVAzN0fBu3cVKiOiHMGWofZlkU1wobz2F/GVoXANqEoPAz/U06qqfDOOqhqepqEa3wyCHSf2RrhkjjEnIH1damMUo4RpYZw4JCwtpTshg0Zzk91TDcf49L4Ok1xb4ftaMcOAG4dXXP3OpgadwMwAWIp1tXxnmlsgC2n3yP028LbvpkLKgZbabEL4O3Z28Xm4g9gp0hZu8NEf+S2xXNlDC0ZMGztaDm5RK1TNnB45I9SMNnewv9rcrzatif/DWUkLD7nHt2i3gRXlPNpYA7bIoAbkverfkjlXM0hx24SN2pUyYqTMJvA126Jjupf09iiGvVt5AO5h4O7LKbj71hz8Msp9KcO+Pp92X4FQu78oo5JDbGHn+Ncl1u7/klk/Dc/fkFjJGnDP5NbuY2zZfU12rf99FofWKniKj9ttC87viS4cXVMubd4/J8jT/gly3Z+dTgQ9dhahPsK9K3KSzCFZTPQt2LCOTs9mEkcVlhg5VujCkkRya8VUJHHHMUmHKpbFN3Yf2L/hS8R/CbH4lMAvhOq5QZt1+NXf40/2ibuVHJNdhaxLVC6UThbYH+YMTxa0Ch5L8/k4reWE+0+aVCc4aeXYDNxQgr88u/s7pY1SJczmGX53VXiey7szoVLfhY1qax26zKU+kNxAHIaHbUDTBRIDnhi6t0dbE6+MG5tuebLytJr4T7EbXF5iCkVukJsID8+AqSdgghommEJasxQqkYXPPhpEqF/rj8gkeQkabxm/2La2c7sovYbYT1WlH+zIm5S1A8ZqcN+1zq41ffQ1zSsftA761t1JOI0O/xJZrg0ulpGUsbaDLEc2BtueFMkCHEtsMOu310b9VCyJSN+PD3Y+tscHce3wZFpIORLfYXxw2m+j/paZ1NxXfLUEI/mdV5kfnV5EIT5t+228fWhVAhXVUTopnPNP6bsc8Cje1cLHxA4ruefgwwmi359JkSx65eKit8/hot+Oyt55CP0f


3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
My application contains a lot of external data (ImageryLayer, Datasources) that are often removed and inserted. When fetching a new list with any number of layers (ImageryLayer, Datasources), this should be redrawn at the end. Only at the end in order not to render again permanently.


4. The Cesium version you're using, your operating system and browser.
cesium: 1.65.0
OS: macOs High Sierra v 10.13.6 
Google Chrome: Version 80.0.3987.163
Bildschirmfoto 2020-04-17 um 14.58.49.png
Bildschirmfoto 2020-04-17 um 14.58.56.png

Omar Shehata

unread,
May 4, 2020, 1:14:10 PM5/4/20
to cesium-dev
Note that the forum has transitioned over to Discourse and this Google Group will be put into read-only mode today. Details about the transition here.

You can find this topic on the new forum here:

https://community.cesium.com/t/why-does-background-turn-black-when-removing-adding-datasources-if-requestrendermode-is-true-can-this-be-prevented/9385/2?u=omar
Reply all
Reply to author
Forward
0 new messages