Vector Art Optimization Challenge #1

Vote or enter in Inkscapeforum.com competitions.
Lazur
Posts: 4341
Joined: Tue Jun 14, 2016 10:38 am

Re: Vector Art Optimization Challenge #1

Postby Lazur » Sat Apr 02, 2016 3:28 am

Since clipping and masking are points, what are the page borders? Bounding box?
Does it6should it be counted as extra if objects go through it?

Lazur
Posts: 4341
Joined: Tue Jun 14, 2016 10:38 am

Re: Vector Art Optimization Challenge #1

Postby Lazur » Sat Apr 02, 2016 4:16 am

All right, since gradients don't matter anymore.

18 points presented as 18 nodes and straight path segments.

So it's "better" than the previous 16+4=20...

SVG Image

By the way if the left side would be darker than the right, it could be done by 16 nodes.

User avatar
Espermaschine
Posts: 893
Joined: Thu Jun 05, 2014 9:10 pm

Re: Vector Art Optimization Challenge #1

Postby Espermaschine » Sat Apr 02, 2016 4:27 am

Lazur URH wrote:SVG Image

How the hell does this work ???

These shapes consist of an angular path with a stroke, that is wider than the display says, and when i ungroup it, it gets thinner, although there seems to be no clipping or masking involved ??

What ?

Lazur
Posts: 4341
Joined: Tue Jun 14, 2016 10:38 am

Re: Vector Art Optimization Challenge #1

Postby Lazur » Sat Apr 02, 2016 4:42 am

Image


The paths are grouped and the groups are transformed.

hulf2012
Posts: 715
Joined: Sat Nov 24, 2012 12:37 pm

Re: Vector Art Optimization Challenge #1

Postby hulf2012 » Sat Apr 02, 2016 8:55 am

:lol:

There are strokes each of one grouped

... And what We can do with the groups? :geek:

Image
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

dimumurray
Posts: 28
Joined: Sat Feb 27, 2016 2:55 am

Re: Vector Art Optimization Challenge #1

Postby dimumurray » Sat Apr 02, 2016 10:30 am

Lazur URH wrote:All right, since gradients don't matter anymore.

18 points presented as 18 nodes and straight path segments.

So it's "better" than the previous 16+4=20...

SVG Image

By the way if the left side would be darker than the right, it could be done by 16 nodes.


Wow. That is extremely clever. Skewing a grouped stroke...freaking genius!

Lazur
Posts: 4341
Joined: Tue Jun 14, 2016 10:38 am

Re: Vector Art Optimization Challenge #1

Postby Lazur » Sat Apr 02, 2016 4:54 pm

If you look at it it wasn't skewed.
That would result only in a simple paralellogram shape -which you would need two next to eachother to build the bending shapes.
Meaning four points, instead the current 3.
They were scaled and rotated.

User avatar
Espermaschine
Posts: 893
Joined: Thu Jun 05, 2014 9:10 pm

Re: Vector Art Optimization Challenge #1

Postby Espermaschine » Sat Apr 02, 2016 5:59 pm

hulf2012 wrote:There are strokes each of one grouped

... And what We can do with the groups? :geek:

:?:

When i group a stroke and then transform it, it still doesnt get thicker.

dimumurray
Posts: 28
Joined: Sat Feb 27, 2016 2:55 am

Re: Vector Art Optimization Challenge #1

Postby dimumurray » Sat Apr 02, 2016 8:34 pm

Lazur URH wrote:If you look at it it wasn't skewed.
That would result only in a simple paralellogram shape -which you would need two next to eachother to build the bending shapes.
Meaning four points, instead the current 3.
They were scaled and rotated.


Skewing is a transformation that scales vertices/nodes along a single axis. At the transform matrix level it seems to result in a similar transformation as a scale and rotation. Skewing the group that contains the 3-point stroke worked for me when "reverse-engineering" ;) your technique.

hulf2012
Posts: 715
Joined: Sat Nov 24, 2012 12:37 pm

Re: Vector Art Optimization Challenge #1

Postby hulf2012 » Sun Apr 03, 2016 1:39 am

Espermaschine wrote:
hulf2012 wrote:There are strokes each of one grouped

... And what We can do with the groups? :geek:

:?:

When i group a stroke and then transform it, it still doesnt get thicker.


umm... But are you transforming the stroke or the group?... perhaps you have an option for optimize transformations or something like that in Inkscape's preferences.


I also also thought that it was an skewing instead of a rotation and scaling.

aahh... now I see what you see Espermaschine. Lazur also use the matrix transformation for thickening the stroke...
How can It be optimized more?... perhaps dash-stroke?, using filters?... what else?
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Lazur
Posts: 4341
Joined: Tue Jun 14, 2016 10:38 am

Re: Vector Art Optimization Challenge #1

Postby Lazur » Mon Apr 04, 2016 1:47 am

If the rotate was done first and the scale after, it would be a skewing.
Probably it still is, yet for practical reasons it is much easier doing it by scaling and rotating.

Transformation is added in order to make the stroke's width in one direction zero.
As if the calligraphy tool was used, but on the "stroke's level".

screen capture

minimum



I use the transformations optimized so the strokes don't get messed up, as in this case on purpose.
If they were preserved, grouping would be unnecessary to add.

(A reason why I don't like using strokes instead of fills. It takes special care removing/applying all transformations.)

Moini
Posts: 2045
Joined: Mon Oct 05, 2015 10:44 am

Re: Vector Art Optimization Challenge #1

Postby Moini » Mon Apr 04, 2016 2:17 am

<very offtopic: Thanks Lazur, for the Spam removal!!!>
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

dimumurray
Posts: 28
Joined: Sat Feb 27, 2016 2:55 am

Re: Vector Art Optimization Challenge #1

Postby dimumurray » Mon Apr 04, 2016 3:15 am

We got some awesome results for this challenge with some really enlightening approaches.

Thinking about the next challenge and switching up the format. Challenge #1's focus was optimizing node count, the next challenge I'm thinking about optimizing a process.

So the 3-point circle came to mind (9 points if you take handles into consideration)...the idea would be to present an efficient process of creating an optimal 3-point circle. Sounds good? Or would y'all want to try optimizing the process of something else? All input is appreciated!

Edit: Maybe members of the community could each propose a different target (but simple like a 3-point cirlce) for process optimization that we could vote on?

Whatever we decide, we'll open a new thread for the next challenge.

hulf2012
Posts: 715
Joined: Sat Nov 24, 2012 12:37 pm

Re: Vector Art Optimization Challenge #1

Postby hulf2012 » Mon Apr 04, 2016 6:04 am

Hello

Let's see brainstorming, ... keyword: optimization of:

- file size
- rendering time when applied a filter?, or something related with filters
- inverse of optimization... catching a bug ... make inkscape reset
- other geometric constructions, like a 3 point circle you suggested... but which will be the methodology to choose the best optimization,... number of steps?
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

Moini
Posts: 2045
Joined: Mon Oct 05, 2015 10:44 am

Re: Vector Art Optimization Challenge #1

Postby Moini » Mon Apr 04, 2016 6:28 am

For 3-point-circle, I'd just use the devel version with the neat new LPE from Jabier... Would I be discredited then :? ?
Looking forward to your ideas!
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Lazur
Posts: 4341
Joined: Tue Jun 14, 2016 10:38 am

Re: Vector Art Optimization Challenge #1

Postby Lazur » Mon Apr 04, 2016 6:40 am

^-Can use the draw from triangle extension in the stabile.

dimumurray
Posts: 28
Joined: Sat Feb 27, 2016 2:55 am

Re: Vector Art Optimization Challenge #1

Postby dimumurray » Wed Apr 06, 2016 1:16 am

hulf2012 wrote:- other geometric constructions, like a 3 point circle you suggested... but which will be the methodology to choose the best optimization,... number of steps?


Number of steps seems a good measure for process optimization. However, the 3-point circle may be too simple given the tools/extensions available. Any suggestions for different geometric constructions...

User avatar
Espermaschine
Posts: 893
Joined: Thu Jun 05, 2014 9:10 pm

Re: Vector Art Optimization Challenge #1

Postby Espermaschine » Wed Apr 06, 2016 2:37 am

dimumurray wrote:However, the 3-point circle may be too simple given the tools/extensions available.

Why would i want to draw a three point circle ?

I dont quite get the point of path optimization.

Can somebody explain, pls ?!

dimumurray
Posts: 28
Joined: Sat Feb 27, 2016 2:55 am

Re: Vector Art Optimization Challenge #1

Postby dimumurray » Wed Apr 06, 2016 3:45 am

Espermaschine wrote:
dimumurray wrote:However, the 3-point circle may be too simple given the tools/extensions available.

Why would i want to draw a three point circle ?

I dont quite get the point of path optimization.

Can somebody explain, pls ?!


Here's a somewhat contrived example (but it gets the point across) - suppose you wanted to create a shape with a lot circular holes in it. When creating the path you could use standard circles but they would be represented by 4 nodes (4 anchor points and 8 handle points). A 3-point circle is represented by 3 nodes (3 anchor points and 6 handle points).

Lazur
Posts: 4341
Joined: Tue Jun 14, 2016 10:38 am

Re: Vector Art Optimization Challenge #1

Postby Lazur » Wed Apr 06, 2016 4:01 am

Espermaschine wrote:Why would i want to draw a three point circle ?


How about constructing a stereographic grid?


Return to “Competitions”

Who is online

Users browsing this forum: No registered users and 1 guest