Wednesday, July 13, 2011

Vector Art is Doomed

Every once and a while I mess around with Inkscape and other vector art programs, but I find them lacking in many ways. Much of the reason for this is the way paths work. I actually think they should take a hind from Doom level editors (which are probably in turn based on CAD programs). Looking into the .SVG format it seems that the biggest problem is a lack of point or line objects.

SVG files define all the path info in a big block like this:

d="m 28.575867,107.0797 c -0.123355,5.53028 0.684603,11.10722 2.649974,16.27795 1.96537,5.17074 5.109136,9.92603 9.292245,13.54553 4.514219,3.906 10.122472,6.40535 15.917209,7.83924 5.794738,1.43389 11.795405,1.84498 17.764278,1.932 6.417683,0.0936 12.890473,-0.18795 19.126585,-1.7066 6.236112,-1.51866 12.259952,-4.33887 16.868082,-8.8066 4.61045,-4.46998 7.63175,-10.45068 8.97929,-16.7293 1.34753,-6.27862 1.07261,-12.84368 -0.30719,-19.11529 -2.314,-10.517816 -7.8188,-20.382009 -15.87312,-27.530932 C 94.938912,65.636775 84.32799,61.311069 73.558802,61.250674 61.69759,61.184155 49.967322,66.350885 41.745372,74.900291 33.523423,83.449696 28.840374,95.221251 28.575867,107.0797"

I much prefer the Doom way with vertexes, lines, and sectors. You place points, join two points to make a line, then have each side of a line be tagged for closed areas. The only thing doom lacks is curves, and that's actually easy to do, just make lines connect have up to 4 vertexes, two for the end points and two for the curve control nodes.

It may be possible to do some of this in SVG now with some javascript scripting actually, which would be handy for maps and such where a lot of lines connect at the same place. But some of the neat stuff you could do with a SVG-like format that uses this is interpolate the line width and color for each vertex. Mostly I just wish I could make solid shapes with outlines only on some edges. Oh well. Maybe there is even inkscape plugins that do a lot of this crap already. I donno, I didn't find any.

Maybe I just should learn to draw without relying on such silly tricks. I mean inkscape has a snap to vertex feature anyway.

No comments:

Post a Comment