美文网首页cesium
[原创.数据可视化系列之十六]cesium文字清晰的问题

[原创.数据可视化系列之十六]cesium文字清晰的问题

作者: 数据秀 | 来源:发表于2018-01-02 11:45 被阅读0次

Thankyou for the explanation.

https://stackoverflow.com/questions/33784256/cesium-label-blurred

A workaround may be to have a perfect correlation between font textures pixels and the render buffer pixels; with this it should be possible to enable anti aliasing without causing blurring and also should reduce the artifacts when moving the camera around. This should also improve image screen space rendering as long as image and fonts are not scaled.

By rounding screen space "pixel" coordinate before transforming to normalized (0..1) screen space in BillboardCollectionVS.js shader (line 225) the rendering improves but it is not perfect:

gl_Position = czm_viewportOrthographic * vec4(positionWC.xy, -positionWC.z, 1.0);

to

gl_Position = czm_viewportOrthographic * vec4(floor(positionWC.xy+0.5), -positionWC.z, 1.0);

相关文章

网友评论

    本文标题:[原创.数据可视化系列之十六]cesium文字清晰的问题

    本文链接:https://www.haomeiwen.com/subject/pqxjbxtx.html