Stars along a spiral

Post questions on how to use or achieve an effect in Inkscape.
User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 12:07 am

I was thinking about his problem after i posted the tiled cloned recipe for the logarithmic spiral, because i think the tiled clones method does not give enough control.

So lets say i want to put increasingly smaller stars on a spiral. A vortex so to speak, that sucks up stars.

I tried interpolating a big star with a tiny one, distribute the stars equally, then use the grouped objects as a pattern and put them on a spiral.

The problem with this technique is: the stars get distorted.

Is there an alternative approach ?
Attachments
gStarVortex.png
gStarVortex.png (46.18 KiB) Viewed 4486 times

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

Re: Stars along a spiral

Postby Lazur » Tue Feb 09, 2016 12:33 am

A possible alternative I can think of is by using markers.

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

Re: Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 12:59 am

Lazur URH wrote:A possible alternative I can think of is by using markers.

How so ?

When i convert one star into a marker, how do they get smaller ?

If i convert a whole interpolation of stars and convert them into a marker, that doesnt seem to work at all.

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

Re: Stars along a spiral

Postby Lazur » Tue Feb 09, 2016 1:32 am

Convert the star to a marker
->necessary to use paths with strokes and no fills for each star
->necessary to vary stroke width inside the group of stars (interpolate attribute in group)
->bend the group of "stars".

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

Re: Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 1:51 am

I dont get that. At all.

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

Re: Stars along a spiral

Postby Lazur » Tue Feb 09, 2016 2:30 am

A quick example.

Adjusting the exponent in the interpolation to the curve would need some calculations.

star example.svg
(111.67 KiB) Downloaded 211 times

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

Re: Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 2:42 am

mmmh...
okay when i ungroup your file and then ungroup the 90 stars and then undo, Inkscape crashes....

What you did is bending a group of interpolated stars with the LPE ?
I had something similar in mind but i find the bending difficult to do.
Also this has nothing to do with what you suggested earlier, has it ?

Is there no way to put a bunch of objects on a path without distorting them ?
Its seems such a banal task.

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

Re: Stars along a spiral

Postby Lazur » Tue Feb 09, 2016 3:11 am

Made it exactly as I suggested.

To put a group on a path you can use only the bend lpe as far as I know, and,
because the various sizes of the stars were achieved by many different style attributes, it was the only way.

Inside the group, there were paths interpolated with different stroke widths. With each stroke width the marker size changes, so the "trick" was to add a stroke to the paths with 0 alpha value and set the custom marker.


You can paste path for the bend lpe to make it easier.

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

Re: Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 3:42 am

I think i get it now, although i seem to be unable to make my custom makers appear in the dropdown menu...

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

Re: Stars along a spiral

Postby Moini » Tue Feb 09, 2016 3:53 am

I was going to recommend the 'Scatter' extension, but couldn't get it to work nicely...
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)

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

Re: Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 3:57 am

Moini wrote:I was going to recommend the 'Scatter' extension, but couldn't get it to work nicely...

It would work if you could could downscale the stars inside the scatter, so to speak.
Something like that would have been useful for my Atomic Pearls Project, with a randomize option.

I dont understand why Inkscape cant place objects on a path without distorting them. Wouldnt it be possible to just scatter the rotational center along a path ?
Last edited by Espermaschine on Tue Feb 09, 2016 8:23 am, edited 1 time in total.

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

Re: Stars along a spiral

Postby Moini » Tue Feb 09, 2016 4:09 am

You can downscale the stars first, then scatter the whole group of differently scaled stars. But somehow this didn't work correctly for me - the stars ended up in very weird locations when there were more than five...
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)

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

Re: Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 4:22 am

:(

I guess then the tiled clones option must suffice for the moment. At least we have two examples to work with.

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

Re: Stars along a spiral

Postby Moini » Tue Feb 09, 2016 4:25 am

Maybe I just didn't have enough patience to do it right?... ;)
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)

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

Re: Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 4:33 am

Moini wrote:Maybe I just didn't have enough patience to do it right?... ;)

We need something like a brush dynamic (as in Photoshop). Maybe you could shoot the developers a message into their olymp ?

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

Re: Stars along a spiral

Postby Moini » Tue Feb 09, 2016 4:55 am

I think I might not be the right person to describe a feature I've never used and don't have use cases ready for presenting it... :/

(btw. many devs do read the user mailing list and respond there. I'd like to encourage you to just try it out to get some feedback on your idea :) Those I met are very approachable, so 'Olymp' doesn't reflect on how I experienced it. It's just that they are very busy, too...)
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)

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

Re: Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 5:19 am

Normally i would say money is the root of all evil, but in the case of Inkscape, it seems the programs biggest weakness is that its not a product.
There are so many cases where its obvious that actual application of the programs functionality to a real life situation didnt seem to have happened by the developers.

I guess this is the way when very intelligent people (coders) have no one who deals with the bigger picture. I could be wrong here. its just my impression.
If i was a developer, i would come down from my mailing list and see what people are actually trying to do and offer fast solutions.

The Gimp scene at least has a bunch of coders who write scripts and plug-ins on request, while all that i can do is write an email and pray 12 months.

For another example, there is this guy, David Tschumperle who created G'MIC a very powerful filter pack for Gimp. He does a very good job of creating better and better filters each month (!), meaning there are regular updates.
On the downside, there is hardly any documentation, so with a lot of those filters, i have no idea what they do. Which is a pity.

So here you have a reversed sitution. A guy creates content for his userbase, updates it very often, including bugfixes (exemplary), but the average user is totally overwhelmed with what to do with a lot of the filters.

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

Re: Stars along a spiral

Postby Moini » Tue Feb 09, 2016 5:59 am

We're working on getting everything for the 'Funded development' in place on the website.
There's still very much to code on, though. I have invested a full week of my time into it - but being a slow coder, and the goal not being very clear for me, I didn't get very far. Others have laid the code foundation, and others are working on the specs.

What I want to say is: The developers are more than aware of the issue, solutions have been discussed, and are worked on by the board and the website folks. It might just take some time, as we are not many.
There are always people coming, complaining about the situation, even taking a look, saying they want to help, and before you know it, they are gone again, after you have invested the time to give them info on how they can help and get them started... That's just how it is... Sometimes, though, they stay and become productive :)

If you'd like some links on the topic, to explore what exactly we are working on, I can post them here :)
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: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Stars along a spiral

Postby Lazur » Tue Feb 09, 2016 7:40 am

The markers didn't appear in the dropdown menu at first in the late 0.48 versions, you had to set one marker before you could chose the custom one.
In 0.91 it works right here.
(But to be honest markers are not handled well by other renderers.)


When you in need a new feature, why not checking the development builds?
In 0.92 pre release roughen lpe by jabiertxof is already available.

Might worth a try drawing a path with the roughen lpe and using it as a core path for bending/scatter etc.

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

Re: Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 7:54 am

Played with the 0.92 pre release earlier. Its nice !

I have a certain irrational aversion to markers. They feel like i have to joyride the program to get an "offtopic" effect.

Not sure why you recommend the roughen LPE, irregular scattering is one thing, but i also want a randomized size.

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

Re: Stars along a spiral

Postby Lazur » Tue Feb 09, 2016 8:09 am

Hmm randomized size, irregular placement.

Can be drawn with the tweak tool.
Then the align and distribute tool can be used for random ordering them in a line.
After that, grouping and bending them over a roughened line maybe?
(Haven't tried them in that order myself.)

Edit: looking at the mentioned atomium again it wouldn't be that easy.
Because of "hacking" the z-order for the look, you would need dividing the wave to 16 separate parts.
Thus 16 different patterns would be necessary for a totally random look.
Gets a bit repetitive after a while drawing them.

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

Re: Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 8:22 am

We already discussed that problem here.

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

Re: Stars along a spiral

Postby Lazur » Tue Feb 09, 2016 8:34 am

Then it's off topic?

Off topic:
Edited my post before reading yours. Had to look up the mentioned topic.

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

Re: Stars along a spiral

Postby Espermaschine » Tue Feb 09, 2016 9:54 pm

Lazur URH wrote:Then it's off topic?

To me this is all about pattern along a path.
But its from a perspective how Gimp handles a brush along a path. And then comes the brush dynamic into play.

Im just baffled that Gimp can do it, but Inkscape cant.

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: Stars along a spiral

Postby Polygon » Tue Feb 09, 2016 11:01 pm

Well - you can use Text-On-Path at least:
Image
I do like pattern-along-path more though. :mrgreen:

Cheers
P.


Return to “Help with using Inkscape”