矢量地图上直线连接的高效空间反走样绘制
Efficient Spatial Anti-Aliasing Rendering for Line Joins on Vector Maps
摘要:
矢量地图上的直线连接(路段的交叉点)的空间抗锯齿技术对于视觉体验和系统性能至关重要。由于OpenGL API的限制,实现抗锯齿效果的一种常见做法是以不同的比例级别拼接多个三角形以近似扇形线连接。然而,这种近似不可避免地产生一些不真实感,并且系统渲染性能不是最佳的。为了克服这些缺点,本文提出了一种简单而有效的算法,该算法仅用两个三角形代替多个三角形近似,然后基于几何关系计算,通过alpha运算绘制出具有真实感的扇形曲线。实验结果表明,该算法具有抗锯齿效果逼真、占用内存少、帧速率高、绘制直线连接时无重叠等优点。我们提出的空间反走样技术已广泛应用于腾讯手机地图和腾讯汽车地图等互联网地图中。
英文摘要:
The spatial anti-aliasing technique for line joins (intersections of the road segments) on vector maps is exclusively crucial to visual experience and system performance. Due to limitations of OpenGL API, one common practice to achieve the anti-aliased effect is splicing multiple triangles at varying scale levels to approximate the fan-shaped line joins. However, this approximation inevitably produces some unreality, and the system rendering performance is not optimal. To circumvent these drawbacks, in this paper, we propose a simple but efficient algorithm which uses only two triangles to substitute the multiple triangles approximation and then renders a realistic fan-shaped curve with alpha operation based on geometrical relation computing. Our experiment shows it has advantages of a realistic anti-aliasing effect, less memory cost, higher frame rate, and drawing line joins without overlapping rendering. Our proposed spatial anti-aliasing technique has been widely used in Internet Maps such as Tencent Mobile Maps and Tencent Automotive Maps.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。