首页 > 解决方案 > 铯地球实体路径质量

问题描述

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

在此处输入图像描述

标签: javascriptcesium

解决方案


考虑为您的视图添加一个抗锯齿通道,并可能使您的容器 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/Horizo​​nView.jsx


推荐阅读