Anti aliased curved line >> Money >> Forum
Forum

Forum



SearchSearch   Users   Registration   Entrance
Today: 14.07.2025 - 06:48:05
Pages:  1  

Anti aliased curved line

Advertising

/
MessageAuthor

Hey guys, I was really bothered that there is no simple way to draw aa lines with LICE, so I started working on it... I will post schematics when it is done. Currently you can draw line by feeding it y coordinates, but you can't change it's thickness. Making ticker curved line is harder than you think. So far I have one solution, but it is not too CPU friendly...

------------------------
Click here for more info/pics of my car

markb50k

user




Statistics:
Messages: 746
Registration: 01.31.2003
20.05.20 - 14:33:04
Message # 1
RE: Anti aliased curved line

I happened to stumble upon this a while ago, which might interest you: Not a proper solution, but hey, if it works...

------------------------
e30 1989 325i coupe, Alpine White

M3boarder

user




Statistics:
Messages: 65
Registration: 11.20.2002
20.05.20 - 14:40:39
Message # 2
RE: Anti aliased curved line

I finally have some solution. This is a workaround for curved line until I figure how to draw anti aliased trapezoids, but I think that is good enough for use. I am not sure how it will perform on mac, but on smaller thickness (less than 10) it should be ok. BTW, anti aliased tick line is coming.. ;D Here is the code: Code:

------------------------

Sephiroth619

user




Statistics:
Messages: 2,743
Registration: 12.09.2003
20.05.20 - 14:49:57
Message # 3
RE: Anti aliased curved line

Nice, but alternative with circles? Code:

------------------------

M Roady

user




Statistics:
Messages: 4,671
Registration: 12.14.2003
20.05.20 - 14:57:10
Message # 4
RE: Anti aliased curved line

Cool, thanks for sharing!

------------------------

snd84318i

user




Statistics:
Messages: 58
Registration: 10.26.2003
20.05.20 - 15:07:10
Message # 5
RE: Anti aliased curved line

FWIW: I have just quickly timed my "optimised" version against the original, and mine seems ever so slighty faster (~1.5%); probably not worth the trouble. I guess most time is spent inside LICE_FLine(), which seems already pretty optimal.

------------------------
96 Arctic Silver M3 - Kuhmo Estcas on Hartge Type D 18's, PAR Intake, Sharked, Elipsoids w/ Gen Iv HID Blue DDE's and smoke corners/SuperFog, TMS LTW flywheel & TME's, X-Brace, JT RSM's,ConeCam video gear & stealth mounted V1 w/ InV1siMirror,JT under

AgileM3

user




Statistics:
Messages: 100
Registration: 09.05.2001
20.05.20 - 15:11:57
Message # 6
RE: Anti aliased curved line

Thanks Tale. Well only way to do this efficiently is to figure out how to draw anti aliased trapezoids (triangles). Then I expect it will be up to 8x times faster... I am working on it, but I don't have much free time to do it. I was thinking to use FillPolygon to fill the line and to draw anti aliased 1 px line on to of it to make it anti aliased, but FillPolygon is producing some strange results and it can be used only if you want non AA line.

------------------------

Max///M3

user




Statistics:
Messages: 75
Registration: 05.17.2002
20.05.20 - 15:21:42
Message # 7
RE: Anti aliased curved line

You can see it in the code...

------------------------
1999 Tit Silver ///M3

Saul

user




Statistics:
Messages: 527
Registration: 02.26.2001
20.05.20 - 15:28:13
Message # 8
RE: Anti aliased curved line
device failure crash : Previous topic
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants