我使用Cesium Earth
库开发了一个应用程序。
问题是,绘制的线(实体路径)具有非常低的质量,它不是平滑的。如何让它变得更好?
viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider: false,
shadows:true,
skyAtmosphere: false,
geocoder: false,
shouldAnimate:true,
clockViewModel: new Cesium.ClockViewModel(clock),
imageryProviderViewModels: imageryViewModels,
requestRenderMode : true
});
entity[i] = viewer.entities.add({
path:{
leadTime:leadTime,
trailTime:trailTime,
width:1.5,
material: color,
resolution:10
}
});
satellite[id].position.setInterpolationOptions({
interpolationDegree : 10,
interpolationAlgorithm : Cesium.HermitePolynomialApproximation
});
考虑在视图中添加抗锯齿传递,并可能使容器div的尺寸加倍于它们在屏幕上的实际尺寸(使用CSS将其缩放到一半尺寸)。我有一个类似的场景,但它在three.js,这里:https://ccnmtl.github.io/astro-interactives/sun-motion-simulator/源代码在这里:https://github.com/ccnmtl/astro-interactives/blob/master/sun-motion-simulator/src/HorizonView.jsx