我正在弄清楚如何使用OpenGL ES绘制平滑线。
我将部分任务的一部分作为以下步骤完成:
- 使两个三角形形成线路。
- 使其边框透明。
您可以询问此链接 old solutioin 要看主要思想。
但是我仍然会一个问题解决:如何平滑行的两端?
您可以通过单击图像描述来查看当前情况。
在此处输入图像描述
在图像中,您可以清楚地看到行的左端具有锯齿。
有人可以给我解决方案吗?我会非常感谢!
i am figuring out how to draw smooth line using OpenGL ES.
i have done with part of this task as the following steps:
- make two triangles to form the line.
- make its border transparent.
you can refere to this link old solutioin to see the main idea.
But i still get one problem to solve: how to smooth both end of the line?
you can see the current situation by click the image description.
enter image description here
In the image, you can clearly see the left end of line has sawtooth.
can any one give me a solution? i will thanks a lot!
发布评论
评论(1)
添加更多三角形以形成端盖,使它们以相同的方式使它们透明。
Add more triangles to form an end-cap, make them transparent in the same way you blend the edges.