javascript - 铯地球实体路径质量
问题描述
我使用该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
推荐阅读
- git - 为什么终端不解析 .bash_profile 的脚本?(目标是让这个脚本运行并显示当前的工作分支)
- python - 在 Python 中正确混合 .flac 文件
- swift - 如何忽略 Swift Dates 中的时区?
- flutter - 如何修复 getter 长度在 Flutter 中被调用为 null
- javascript - 如何返回嵌套函数内部的值?
- arm - 如何确定 MCU 时钟速度要求
- deno - 来自子进程的流标准输出
- java - Maven项目编译
- c# - 从编组的 c 库中读取时,我无法转换字符串数据
- java - 我可以制作一个使用参数作为 http 请求的 gRPC 函数吗?(在 Java 上)