Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Draw a antialiased line in a fast way

Tags:

c++

c#

math

directx

3d

I have a little problem. I've recently created an algorithm to allow thick lines to be drawed onscreen (as a quad structure), the problem is that when the line is very long and diagonal the aliasing is very high, making the line look very bad. What are my chance to reduce the aliasing while trying to have high performance?

I'm using (as the tags says) DirectX as graphics API.

like image 716
feal87 Avatar asked Nov 06 '22 16:11

feal87


1 Answers

There is a very good article in GPU Gems 2 about antialiasing technique for lines, see it here:

http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter22.html

like image 159
Stringer Avatar answered Nov 12 '22 11:11

Stringer