I have attached a short video clip which demonstrates what happens on a MacBook Air with Intel HD 3000 graphics. I don’t see this when running on my Nvidia powered VAIO. Both Chrome and Firefox exhibit this behavior, so it may be a core WebGL issue.
I have disabled ( by commenting out ) SkyBox rendering and used a cyan color for the background. This problem occurs every time map tiles near the horizon have to be rendered, regardless of their source. It appears as if the renderer is trying to clear the background with a black color, but I’m not sure this is the case. I would be happy to get my hands dirty if any of you could point me in the right direction, but I have to tell you that I am GLSL-illiterate :-/
If you open the WebGL Report, how many Depth / Stencil Bits are reported? For example, is it [24, 8]? The default near-to-far ratio is setup for a 24-bit depth buffer. If you have 16-bits (common on mobile, but I bet unlikely in your case), the default ratio of 1,000 may be too high. Try changing scene.farToNearRatio to 500 or even lower.
Otherwise, the code to look at is executeCommands in Scene.js. The skybox is drawn towards the top with skyBoxCommand.execute. You may also find the WebGL Inspector useful.
That’s what I thought. Any ideas about how to chase it? It it possible developers use the debugger all the time and thus never observed Cesium without it?
If this doesn’t work, I would start trimming down the executeCommands function, e.g., exit right after drawing the sky atmosphere, and see if it still flickers.
Those files got renamed back when the Camera branch got merged. They’ve been gone for a while now. Try clearing the browser cache, and see if your own code has any references to them that didn’t get renamed (the list of renames is in CHANGES.md).
CesiumTerrainProvider is still in the terrain branch on github so it must be something up with your local repo. Also, you now do camera.controller.lookAt().
Correct. The change from camera.lookAt to camera.controller.lookAt also happened when the Camera branch got merged in. It sounds like the code base you’ve got hasn’t been updated since before then. Are you pulling the terrain branch from your own GitHub clone of Cesium, or from ours?
I have been working with a local clone I pulled on December 9th using read-only access to GitHub (git://github.com/AnalyticalGraphicsInc/cesium.git). I checked out the terrain branch, left it alone and started coding. The last commit according to ‘git log’ was on December 6.