GPU 友好的描边扩展
GPU-friendly Stroke Expansion
AI总结:
本文提出一种适合 GPU 计算着色器的完全并行描边扩展算法,通过矢量图元并行编码和基于欧拉螺线的平行曲线与渐屈线近似,以最少的线段或圆弧段生成输入路径的描边轮廓。
摘要:
矢量图形将填充路径和描边路径作为主要图元。尽管已有许多在 GPU 上渲染填充路径的技术,但描边路径的实现一直较为困难。本文提出了一种执行描边扩展的技术,即生成表示给定输入路径描边的轮廓。描边扩展是一个全局性问题,在连续性和正确性方面具有挑战性的约束。尽管如此,我们使用一种完全并行的算法来实现它,该算法适合在 GPU 计算着色器中执行,并且只需最少的预处理。我们方法的输出可以是线段或圆弧段,两者都非常适合 GPU 渲染,并且段数最少。我们引入了若干新技术,包括一种适合并行处理的矢量图形图元编码,以及一种基于欧拉螺线的计算平行曲线和渐屈线近似的方法。
英文摘要:
Vector graphics includes both filled and stroked paths as the main primitives. While there are many techniques for rendering filled paths on GPU, stroked paths have proved more elusive. This paper presents a technique for performing stroke expansion, namely the generation of the outline representing the stroke of the given input path. Stroke expansion is a global problem, with challenging constraints on continuity and correctness. Nonetheless, we implement it using a fully parallel algorithm suitable for execution in a GPU compute shader, with minimal preprocessing. The output of our method can be either line or circular arc segments, both of which are well suited to GPU rendering, and the number of segments is minimal. We introduce several novel techniques, including an encoding of vector graphics primitives suitable for parallel processing, and an Euler spiral based method for computing approximations to parallel curves and evolutes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。