View Full Version : GIMP Smooth Path plugin
ijontichy
10-01-2009, 01:31 AM
If you've ever wanted to define a path of points and then draw a smooth curve through those points (e.g. for rivers, roads, borders, etc), then I have created a GIMP plugin for you. The Smooth Path GIMP plugin takes the active path and smooths it according to a Bezier interpolation algorithm I will not bore (http://www.math.ucla.edu/~baker/java/hoefer/Spline.htm) you with here. Below is a screenshot to illustrate what I mean:
http://www.ludicity.org/images/smooth_preview.png
You have the option of preserving corners sharper than a specified angle. A preview of what these settings do can be found here (http://www.ludicity.org/images/smooth_settings.png).
Download the plugin from here (http://www.ludicity.org/files/smooth-path.zip) or here (http://registry.gimp.org/node/20069).
Thanks to the legendary RobA (http://forum.cartographersguild.com/member.php?u=768) for his valuable contributions to this plugin.
zenram
10-01-2009, 09:41 AM
Wow, im gonna try it!!! Thanks
It is quite handy if you combine it with my fractalize path script (http://forum.cartographersguild.com/showthread.php?t=6465 since I haven't added it to my sig yet, I just realized!)...
17284
Black is a stroked 2 point path.
Green is stroked fractalize path.
Blue is after running this excellent smooth plugin on that!
-Rob A>
Mark Oliva
10-01-2009, 11:38 PM
Looks great!
zenram
10-03-2009, 12:02 AM
Black is a stroked 2 point path.
Green is stroked fractalize path.
Blue is after running this excellent smooth plugin on that!
Mmm, i will try this for sure... XD
Moved to the Automation scripts/actions forum (under Software Discusion)
-Rob A>
Ecrocken
12-03-2009, 05:41 PM
I've had issues with trying to install plug-ins. Where does the smooth-path.c file belong? I THINK the regular file goes into plug-ins...? Thanks for all of the inspiration you folks provide!
~EC
EC-
All you need is the compiled file. The source code (.c and .h) is just there for open sourceness...
-Rob A>
Goldenrod111
12-13-2009, 07:40 PM
This looks great, but how do I get it to work? I have tried running the .exe (it can't find "libgimp-2.0-0.dll"), putting both the .c and the .exe in my scripts folder (other scripts in there are working), and taking the code from the .c and making it into a plugin (I still have no idea how to do this). Am I just not finding the menu entry (I'd think it would be right around your fractalize path, RobA), or am I loading it incorrectly?
Put the exe in your plug-in folder not your script folder.
-Rob A>
Goldenrod111
12-15-2009, 09:15 PM
Thanks! I'm not sure how I missed that, but it works now.
FAHall
12-15-2009, 09:40 PM
Haha,
I find this about 10 minutes after finishing up a HUGE bunch of rivers for my map and spending a bunch of extra time trying to smooth out the fractalized paths. I think I have over 200 paths so far.
I've still got a few more river systems to go though, so this will definitely come in handy.
Looks like an excellent addition to GIMP!
Thanks,
Alex
Rongar
01-25-2010, 06:30 PM
Just what I was looking for. Thanks a bunch. :)
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.