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
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:
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
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.