Page 1 of 2 12 LastLast
Results 1 to 10 of 15
Like Tree1Likes

Thread: Gimp Script: Fractalize Path

  1. #1
      RobA is offline
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,532

    Post Gimp Script: Fractalize Path

    A follow-up on Cool as a Cucumber's question about making fractal lines in Gimp I once again pulled on my coder hat and, stealing liberally from the inkscape fractalize extension and Isomage's random cave script (thanks for the gaussian random number generator!), proceeded to duct tape a script together!

    This script will take the active path and fractalize it, using a random midpoint displacement algorithm, with the displacement proportionate to the length between nodes. Also the nodes don't move.

    Parameters are:
    Subdivisions - number of iteration to divide each segment in half... so for a value of 3 the line between two nodes is replaced by 8 new lines.
    Method - Uniform or Gaussian... the distribution of the displacement.
    Smoothness - Higher = less displacement, lower = more displacement.
    Interpolate First - Not checked, it will subdivide between nodes. Checked, it will walk the path and create new evenly spaced noted. These nodes will not likely line up with existing nodes, so is not great for accurate replacement, but is super for fractalizing a smooth shape, or a path created from a selection.
    Interpolate Pixel Spacing - if Interpolate First is checked, the spacing to use.
    Create New Path - if checked, it creates a new path. If unchecked, it replaces the active path.

    Here a few examples with the black line a stroke of the original path, and the red after fractalizing:
    Gimp Script: Fractalize Path-frac_demo1.jpgGimp Script: Fractalize Path-frac_demo2.jpg

    And a sample of making a quick map with rivers:
    Gimp Script: Fractalize Path-frac_demo3.jpg

    Attached is a zip of the script. I have debugged it fairly well (doesn't seem to crash anymore ) but there could still be issues.

    The script creates a new entry in the path dialog menu, so right click on a path and select "Fractalize path"



    -Rob A>
    Attached Files Attached Files

  2. #2
      ravells is offline
    Community Leader Gracious Donor ravells's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    10,901

    Default

    I have no idea what you just said but the results look really cool. It must be amazing to have the knowledge and talent to tweak Gimp to do what you want it to. Rep to Roba!

  3. #3
      Karro is offline
    Guild Artisan Facebook Connected
    Join Date
    May 2008
    Location
    Atlanta, Georgia, United States
    Posts
    928

    Post

    I believe I will be downloading this one and adding it to my GIMP repetoire as soon as I get to a computer with GIMP on it.

    This looks very useful and cool!
    I think, therefore I am a nerd.
    Cogito, ergo sum nerdem.

    Check out my blog: "The Undiscovered Author"
    It's the story of a writer... follow me in my simple quest to get published, and share your own writing stories, adventures and writerly tips.

    Pimping my worldmap here. Still WIP... long way to go, but I'm pretty proud of what I've done so far...

  4. #4
      Aidan is offline
    Guild Novice
    Join Date
    Jul 2009
    Location
    Seattle, WA
    Posts
    17

    Post

    Awesome. Have some Rep.

    It occured to me that several of the steps of your regional map making tutorial could be scriptified as well. Maybe I'll try to learn script-fu.

  5. #5
      Lathorien is offline
    Guild Journeyer
    Join Date
    Oct 2007
    Location
    Sunshine Coast, BC, Canada
    Posts
    134

    Default

    I have been waiting for this... Thank you!

  6. #6
    msa
      msa is offline
    Guild Journeyer msa's Avatar
    Join Date
    May 2009
    Location
    New York, NY
    Posts
    247

    Post

    Awesome. When I was reading Cool's thread, I thought about trying to learn myself some Script-Fu doing just this. Now I'm out a project, but its great to have the script! Great work

  7. #7
      Ghostman is offline
    Guild Adept Ghostman's Avatar
    Join Date
    Jun 2008
    Posts
    409

    Post

    Downloaded and repped! For a long time I've been wishing that GIMP had this feature. Maybe you could contact the developers and try to have your script added to future official releases?

  8. #8
    Guild Journeyer altasilvapuer's Avatar
    Join Date
    Mar 2009
    Location
    Augusta, GA
    Posts
    192

    Default

    You know, I may just have to start using GIMP for a lot more of my mapping, if you keep churning these out, Rob. Kudos!

    -asp

  9. #9
      zenram is offline
    Guild Journeyer zenram's Avatar
    Join Date
    Jun 2009
    Posts
    174

    Post

    Great Scrip. Repped XD

    My work is under CC licences, you can see wich one apply in the work itself, if there is no CC logo, you can assume is an: Attribution-Noncommercial-Share Alike 3.0 Unported licence

    Need more rights, just mail me and we can chat about it.

  10. #10
      RobA is offline
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,532

    Default

    I'm actually hoping ijontichy will turn this into a C plugin, and combine it with a bunch of other possible path manipulations as a big set of path plugins...

    -Rob A>

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •