-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Ground primitive clipping issue #3706
Labels
Comments
Updated code that does not require the var viewer = new Cesium.Viewer('cesiumContainer', {
baseLayerPicker: false,
terrainProvider: new Cesium.CesiumTerrainProvider({
url: '//assets.agi.com/stk-terrain/world'
})
});
var rect = Cesium.Rectangle.fromDegrees(-85.0, 35.99, -84.99, 36.0);
viewer.camera.setView({destination: rect});
Sandcastle.addToolbarButton('Bug', function () {
viewer.scene.groundPrimitives.add(new Cesium.GroundPrimitive({
geometryInstances : new Cesium.GeometryInstance({
geometry : new Cesium.RectangleGeometry({
rectangle : rect
}),
attributes: {
color: Cesium.ColorGeometryInstanceAttribute.fromColor(new Cesium.Color(1.0, 1.0, 0.0, 0.5))
}
}),
asynchronous : false
}));
}); |
Thanks @bagnell |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@bagnell here's the bug we were talking about yesterday, not sure if you have a better test case (this one requires @tfili's
entity-terrain
branch.Run the below code in Sandcastle and then hit the "Bug" button. Right-click zoom in and out of the rectangle (without rotating) and you will see obvious visual artifacts as the ground primitive seemingly changes size/shape as you zoom. I believe @bagnell said this is a multi-frustum related issue.
The text was updated successfully, but these errors were encountered: