-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hole in animated ellipsoid entity #3045
Comments
This is a weird bug but I tracked it down Here's a sample that reproduces the problem. Change the last line to // Create the viewer.
var viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;
// Draw a blue ellipsoid and position it on the globe surface.
var radii = new Cesium.Cartesian3(200000.0, 200000.0, 300000.0);
// Ellipsoid geometries are initially centered on the origin.
// We can use a model matrix to position the ellipsoid on the
// globe surface.
var positionOnEllipsoid = Cesium.Cartesian3.fromDegrees(-100.0, 40.0);
var modelMatrix = Cesium.Matrix4.multiplyByTranslation(
Cesium.Transforms.eastNorthUpToFixedFrame(positionOnEllipsoid),
new Cesium.Cartesian3(0.0, 0.0, radii.z), new Cesium.Matrix4()
);
// Create a ellipsoid geometry.
var ellipsoidGeometry = new Cesium.EllipsoidGeometry({
vertexFormat : Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,
radii : radii
});
// Create a geometry instance using the geometry
// and model matrix created above.
var ellipsoidInstance = new Cesium.GeometryInstance({
geometry : ellipsoidGeometry,
attributes : {
color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE)
}
});
// Add the geometry instance to primitives.
var primitive = scene.primitives.add(new Cesium.Primitive({
geometryInstances : ellipsoidInstance,
appearance : new Cesium.PerInstanceColorAppearance({
translucent : false,
closed : true
})
}));
primitive.modelMatrix = modelMatrix; |
It looks like the first 60 or so positions are being set to (0, 0, 1) somehow |
An ellipsoid using a
SampledProperty
doesn't render correctly at the north pole.Reported in the forum: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/4ylMB9ou7YA
This example uses a
SampledProperty
for the radius, but the issue also occurs when using aSampledPositionProperty
for the position.The text was updated successfully, but these errors were encountered: