Hi folks,
I was looking to post about this problem myself.
I'm using b30, and have basically got the following code in place for my 'app':
/***** *****/
var zones = ;
var zoneoutlines = ;
var longids = ['AA','AB','AC','AD','AE','AF','AG','AH','AJ','AK','AL','AM','AN','AP','AQ','AR','AS','AT','AU','AV','AW','AX','AY','AZ'];
var latids = ['YM','YL','YK','YJ','YH','YG','YF','YE','YD','YC','YB','YA','XZ','XY','XX','XW','XV','XU','XT','XS','XR','XQ','XP','XN','XM','XL','XK','XJ','XH','XG','XF','XE','XD','XC','XB','XA','WZ','WY','WX','WW'];
var longid = 0;
var latid = 0
for (var lon = -64.0; lon < -52.0; lon += 0.5) {
for (var lat = -57.0; lat < -47.0; lat += 0.25) {
var theid = latids[latid] + longids[longid];
zones.push(new Cesium.GeometryInstance({
geometry : new Cesium.RectangleGeometry({
rectangle : Cesium.Rectangle.fromDegrees(lon, lat, lon + 0.5, lat + 0.25)
}),
id : theid,
attributes : {
color: Cesium.ColorGeometryInstanceAttribute.fromColor(myGrey)
}
}));
zoneoutlines.push(new Cesium.GeometryInstance({
geometry : new Cesium.RectangleOutlineGeometry({
rectangle : Cesium.Rectangle.fromDegrees(lon, lat, lon + 0.5, lat + 0.25)
}),
attributes : {
color : Cesium.ColorGeometryInstanceAttribute.fromColor(myBlue)
}
}));
latid++;
}
longid++;
latid = 0;
... ...
... ...
myPrimitives.add(new Cesium.Primitive({
geometryInstances : zoneoutlines,
appearance : stdAppearance,
}));
myPrimitives.add(new Cesium.Primitive({
geometryInstances : zones,
appearance : stdAppearance,
}));
... ...
... ...
Bottom line is when I moved from b28,b29 all was fine, and moving to b30, the RectangleGeometry is not 'smooth' in the 3D view, it works fine enough in 2D and Columbus, but 3D is pretty much rubbish, flickering in and out.
In a different post, Patrick said that all you need is to assign an ID to a primitive and it is pickable - I found that I NEED to have my RectangleGeometry primitive have an ID and it CANNOT be transparent. This means that the flickering of a non-transparent surface is unavoidable. It only happens in the 3D view, so I wonder if it is a terrain-server thing ?
The red polyline is a CZML track of a fishing trawler... In 3D, it clearly disappears under the waves, poor fishermen...
http://www.shc.co.fk/images/cesium/fritzed.png
http://www.shc.co.fk/images/cesium/notfritzed.png
This has only started after I moved to b30, and I'm using Linux Mint 17 on a Dell Precision m6400
cheers,
Brian