It is currently Sat May 04, 2024 3:40 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 67 posts ]  Go to page 1, 2, 3, 4  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: 1656
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 7124 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 7124 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 7125 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: 12520
Extremely cool David. Now to get them packing even closer. lol

:)


Attachments:
tau.png
tau.png [ 192.96 KiB | Viewed 7062 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
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
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: 5128
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: 1656
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: 14709
Location: USA
Why does mine only create one size shape? :)

Image

My settings
Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


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: 1656
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: 14709
Location: USA
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
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


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: 5242
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: 12520
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 subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 6:19 pm  (#11) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
:jumpclap This filter is very interesting.


Attachments:
test_packshape.jpg
test_packshape.jpg [ 283.5 KiB | Viewed 1478 times ]
Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 6:29 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 2075
Awesome stuff. It amazes me what you guys come up with, and your hard work is greatly appreciated.

_________________
Image


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Mon Jun 10, 2013 8:09 pm  (#13) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
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:21 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Aug 16, 2012
Posts: 4271
Location: Göteborg, Sweden
O: love the fish picture! really cute.
samj: that's a real "wow!" result.
rod: so cool with the mathmap one!
odinbc: lovely purple picture you got.
lylejk: you're a real wizard!!! how did you get them so tightly packed and what did the mask(s) look like?

seems i'm the only one who can't get anything much out of this filter. the filter only seems to run okay if i use the default settings - every time i try the masking option or move the sliders around for the no masking option i get this:
Image

am i doing something wrong here?

_________________


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Tue Jun 11, 2013 4:24 am  (#15) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
:tyspin AnMal

*****

Information about the filter -fitshape (G'MIC) :
http://www.flickr.com/groups/gmic/discu ... 052242949/

The beta 64-bit version G'MIC Windows is updated (20130610) : http://www.aljacom.com/~gmic/gmic-beta_ ... ts_win.zip


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Tue Jun 11, 2013 4:28 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Anmal, if you select the 'masking' option, you need to add a bottom layer with your mask on it, and you need also to select 'Input Layers' -> 'All'.
Maybe I need to write an error message that is more clear in that case.


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Tue Jun 11, 2013 8:58 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12520
samj wrote:
:tyspin AnMal

*****

Information about the filter -fitshape (G'MIC) :
http://www.flickr.com/groups/gmic/discu ... 052242949/

The beta 64-bit version G'MIC Windows is updated (20130610) : http://www.aljacom.com/~gmic/gmic-beta_ ... ts_win.zip


Thanks Samj. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Tue Jun 11, 2013 8:22 pm  (#18) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
:lol

Image

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


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Tue Jun 11, 2013 8:30 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
haha, O, I think many students do think of being under attack from the homework!


Top
 Post subject: Re: New filter 'Patterns / Pack shape'
PostPosted: Wed Jun 12, 2013 8:53 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12520
Multiple passes of Pack Shape, but David did an excellent job with enforcing mask rules so made the layering pretty much child's play. Of course I blended textures based on the original refererence. lol

Click the image for the higher rez result at Flickr. :)

ref: http://www.fontplay.com/freephotos/fift ... 206-05.jpg

Image

_________________
Lyle

Psalm 109:8

Image


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Pack sprites G'mic

13

No new posts Icon Pack

6

No new posts Create a brush pack

11

No new posts Attachment(s) A Joint Venture: 2nd pack. Effect J,K KP,L,LA,M,MD,MG,N,P,PA.

713

No new posts Disintegration effect + 53 brushes pack

7



* Login  



Powered by phpBB3 © phpBB Group