首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cesium地球实体路径质量

Cesium地球实体路径质量
EN

Stack Overflow用户
提问于 2018-08-30 17:33:48
回答 1查看 570关注 0票数 5

我已经使用Cesium Earth库开发了一个应用程序。

问题是,绘制的线条(实体路径)质量很低,不平滑。如何让它变得更好?

代码语言:javascript
复制
  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 
});

EN

回答 1

Stack Overflow用户

发布于 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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52093714

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档