It is currently Mon Oct 23, 2017 6:29 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 130 posts ]  Go to page 1, 2, 3, 4, 5 ... 13  Next
Author Message
 Post subject: Path Blend Script
PostPosted: Fri Apr 13, 2012 2:17 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 691
A question was asked on whether my selection blend script could be made to blend arbitrarily... The answer was no, but this new script goes where no one has gone before in terms of sheer slow performance, mind-numbing lack of feedback, and moderately interesting results.

Get it here: http://silent9.com/incoming/sc ... _blend.scm

It registers under Filters->Render->Path Blend.

You have to select two paths (they must be different, and the script only looks at the first segment of compound paths) and one gradient. The script finds the shorter path, and walks it 1px at a time, and creates a selection between that and the correspond point of the longer path.

A variety of results:
Attachment:
pathblend.jpg
pathblend.jpg [ 80.5 KiB | Viewed 4449 times ]


Upper left: Full saturation gradient between a path and an enlarged duplicate of itself.
Upper Right: Some terrain gradient between two random path squiggles
Lower Left: A transparent gradient ("Neon Cyan") between two random path squigles
Lower Right: A partially transparent gradient ("Flare Radial 101") between overlapping paths.

The interesting effects come with transparent or partially transparent gradients. Here is an example with one called (appropriately) "Red Tube (which took a good 5 minutes to run on my machine):
Attachment:
retdtube.jpg
retdtube.jpg [ 32.77 KiB | Viewed 4449 times ]


Have fun (and patience!)

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Path Blend Script
PostPosted: Fri Apr 13, 2012 2:26 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14128
wow, that one I am going to grab, patience might be the stickler. :teeth

Thanks Rob

_________________
Image


Top
 Post subject: Re: Path Blend Script
PostPosted: Fri Apr 13, 2012 3:06 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 691
Another quick example using a spiral path imported from inkscape that was rotated and scaled to make the second path... then added a quick drop shadow...

Attachment:
spiral.jpg
spiral.jpg [ 47.24 KiB | Viewed 4425 times ]


-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Path Blend Script
PostPosted: Fri Apr 13, 2012 4:11 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 3666
RobA wrote:
A question was asked on whether my selection blend script could be made to blend arbitrarily... The answer was no, but this new script goes where no one has gone before in terms of sheer slow performance, mind-numbing lack of feedback, and moderately interesting results.

Indeed. WrapMap is dwarfed :).
RobA wrote:
You have to select two paths (they must be different, and the script only looks at the first segment of compound paths) and one gradient. The script finds the shorter path, and walks it 1px at a time, and creates a selection between that and the correspond point of the longer path.
Quote:
Gives nice and surprising clean results... But when the paths are of very different lengths there is a "scale" effect in some cases:


Attachments:
Reflection-Blue.ggr [252 Bytes]
Downloaded 175 times
PathBlendScaleEffect.xcf [429.85 KiB]
Downloaded 155 times

_________________
Image
Top
 Post subject: Re: Path Blend Script
PostPosted: Fri Apr 13, 2012 5:26 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 416
This script is Great! Aspesially since I can make very accurate blends using the sample along a path script to use with it. I'm going to try and blend two paths on one side of an O ring and two on the other.

Better than Illustrator blends.

Nice script RobA!

Alan


Top
 Post subject: Re: Path Blend Script
PostPosted: Fri Apr 13, 2012 9:21 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Feb 14, 2012
Posts: 416
I have always wanted to be able to do this.

Image

I made this with two paths blended with a straight FG to BG color and then used the curves on the blend to make it ridged in the middle. Then I got the taper by drawing with the airbrush tool set to use color from gradient and a layer mask around it on its own layer. I set the masked blend layer mode to screen to taper the blend layer below it. If the point was black then it would be raised all the way up in the 3D preview. Dark pixels are high and light ones low when working with these height maps.

It felt like Christmas when I saw the details of this script. I will definetely use it a lot.

In 3D software it would take some know how to do this usign rails etc.

Alan


Top
 Post subject: Re: Path Blend Script
PostPosted: Sat Apr 14, 2012 4:49 am  (#7) 
Offline
GimpChat Member

Joined: May 16, 2010
Posts: 13982
Location: USA
Very nice Rob thanks! :)


Top
 Post subject: Re: Path Blend Script
PostPosted: Sat Apr 14, 2012 2:38 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 691
ofnuts wrote:
Gives nice and surprising clean results... But when the paths are of very different lengths there is a "scale" effect in some cases:


I was lazy :oops:

But you made me pull out the maths:
Attachment:
IMG_2854.JPG
IMG_2854.JPG [ 463.45 KiB | Viewed 4349 times ]


So I could have it calculate the point along a line closest to another point - i.e. the perpendicular intersect. I'm sure there are fancier ways to do this, but mine worked so I've left it :geek

Here is your sample:
Attachment:
PathBlendScaleEffectfixed.jpg
PathBlendScaleEffectfixed.jpg [ 10.51 KiB | Viewed 4351 times ]


Of course, each blend section is the length of the ratio of the two lines, so if they get an order of magnitude or more different you can see the flats in the blended segments.

The linked file has been updated - you may need to refresh your browser to get the latest one.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Path Blend Script
PostPosted: Sat Apr 14, 2012 3:00 pm  (#9) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 3666
Looks perfect now

_________________
Image


Top
 Post subject: Re: Path Blend Script
PostPosted: Sat Apr 14, 2012 6:02 pm  (#10) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 691
Another small update:

-Reversing the path selection reverses the direction of the blend.
-I've exposed the overlap parameter as a slider, as this might be useful to adjust when dealing with transparent gradients to minimize banding effects.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
Post new topic Reply to topic  [ 130 posts ]  Go to page 1, 2, 3, 4, 5 ... 13  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts RobA Path Blend Script Test

0

No new posts Gimp Script to blend batch images

2

No new posts Attachment(s) Some better kind of Blend tools (i.e. angular blend?)

31

No new posts Attachment(s) An example of a gradient blend using blend tool

5

No new posts Attachment(s) Guides to Path (scheme script, now python script more advanced).

28



* Login  



Powered by phpBB3 © phpBB Group