It is currently Fri Mar 24, 2017 1:08 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 67 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 9:31 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1564
Hello there,
After few days of hard work, I'm happy to say that a new filter 'Patterns / Pack shape' has appeared in the G'MIC plug-in for GIMP (requires 1.5.6.0+).
What it does is take a generic 'shape' (a color image with an alpha-channel) as an input, and eventually a mask, and try to generate a random mosaic consisting of repeated versions of the shape at different scales.
There are two different modes that can be used : either masked or non-masked mode.
Here is a quick description on how it works :

- First, load a simple shape (a small image with transparency), like this :

Attachment:
gmic_packshape1.png
gmic_packshape1.png [ 81.95 KiB | Viewed 2864 times ]


- Then, open the G'MIC plug-in, refresh your filters if you haven't done it yet, and go to 'Patterns / Pack shape' :

Attachment:
gmic_packshape2.png
gmic_packshape2.png [ 64.31 KiB | Viewed 2864 times ]


- Let 'Masking' parameter to 'No masking', set your rendering width and height, the number of different scale, etc... then click OK. You'll get this (note that this filter has an accurate progress bar, as it takes some time to compute) :

Attachment:
gmic_packshape3.png
gmic_packshape3.png [ 308.66 KiB | Viewed 2865 times ]


Now, let's add some masking. You just add a transparent bottom layer with a shape drawn on it. Note that in this case, the final rendering will have the same dimension as your mask image :

Image

and call G'MIC again, but this time, select 'Masking = Mask as bottom layer', and 'Input Layers = All', then click 'OK'. Wait a little bit (more, as masking implies more constraints, and slow down the algorithm).
And this is what you get :

Image

The shapes have been drawn only on the transparent area of the mask image.

Well that's it for this filter, I'm sure you will find a lot of nice uses of it :)
Just post your creative results here if you have some !

Next to come, a 'Shapism' filter, close to the current 'Circlism' filter but with more shapes.
Let's back to work :keybdtype


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: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 10:36 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 9795
Extremely cool David. Now to get them packing even closer. lol

:)


Attachments:
tau.png
tau.png [ 192.96 KiB | Viewed 2802 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 11:25 am  (#3) 
Offline
Global Moderator
User avatar

Joined: May 22, 2008
Posts: 6951
Location: Somewhere in GIMP
What fun. Great way to make seamless patterns.
Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 11:48 am  (#4) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5130
Location: Metro Vancouver, BC
Lot's of fun to be had with this one!
Image

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 11:55 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1564
Looks really cool ! Thanks for testing :)


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 1:51 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 13652
Location: "Looking for my eraser" =P
Why does mine only create one size shape? :)

Image

My settings
Image

_________________
Image


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 2:04 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1564
Rod, I suspect your input image is too large, so probably the only shapes G'MIC is able to put on your resulting image is the latest scale (the smallest one).
You should try to reduce the size of your input shape, so that even at the first scale (the original one), your object can be drawn in the rendering.


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 4:50 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 13652
Location: "Looking for my eraser" =P
Ronounours wrote:
Rod, I suspect your input image is too large, so probably the only shapes G'MIC is able to put on your resulting image is the latest scale (the smallest one).
You should try to reduce the size of your input shape, so that even at the first scale (the original one), your object can be drawn in the rendering.


Yes you are correct. The input image was too large. :bigthup
I tried a 70x70 with 1000x1000 output with the same settings and got this. :)

Image
Then i couldn't resist a mathmap run on it. :)

Image

_________________
Image


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 5:06 pm  (#9) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5206
Location: Gimpville
Awesome!

:tyspin

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 6:15 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 9795
Question to David. Is there a way to add a slider to control the squeeze (i.e. packing) of the objects? Would like such a feature for the shapeism preset too. :)

_________________
Lyle

Psalm 109:8

Image


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) New G'MIC filter 'Rendering / Gradient [custom shape]'.

66

No new posts Attachment(s) path-to-shape: the hidden son of Gfig and shape-paths

69

No new posts Attachment(s) New G'MIC filter 'Patterns / Weave'

25

No new posts New G'MIC filter 'Patterns / Dithering'

3

No new posts Attachment(s) [G'MIC] New filter 'Patterns / Seamless turbulence'

10



* Login  



Powered by phpBB3 © phpBB Group