我已经使用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
});

发布于 2018-08-31 01:54:35
考虑向视图添加抗锯齿通道,并可能使容器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
https://stackoverflow.com/questions/52093714
复制相似问题