It is currently Fri Jul 26, 2024 1:39 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Centre Tiler [new filter]
PostPosted: Fri Aug 16, 2013 5:41 pm  (#1) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Once was a series of filters to easy the creation of seamless pattern, the series was called "simple" and were really simple filters, simple but cool

One, maybe the most simple ,called "Centre Tile", with no dialogues at all, was my favourite because the originality of the effect

Nowadays the "Simple" filter page is dead, and i miss that little simple filter, so i tried to recreate the effect with gmic

As you may guess from the name is a pattern filter , and will derive patterns from the image centre

CENTRE TILER FOR GMIC


Apparently here there are far too much controls for a "simple " filter :hoh

Image

BUT there is only 1 relevant option, the first , that determine how large should be the centre , how much of the original image will be used

Image

the filter will mirror the central image along all axes
and this is already sufficient most of the times to create nice seamless pattern .

BEFORE :
sample image i used was already a pattern, BUT it was a coincidence not relevant
WHAT is relevant is what the filter does , note the central part of this image

Image

AFTER : The new seamless pattern derived from the central motive of the previous image

Image

This is the essential function of the filter , controlled by the first slider



About the other controls , here below , they correspond to that of a built in filter (gmic>arrays and Frames> Mirror Array )

Image

They may be useful here
1)
to guarantee the final image seamless ( in rare cases where the first mirroring was not sufficient to make seamless , for sure a second will solve)

and/or
2)
to extend the pattern size without loosing quality

and/or
to modify the reflection creating new "seeds" by cropping and/or offsetting

Waiting feedback... as example :
to determine "centre" size you prefer width/height locked, and a single slider to control both, as now or you would like more separate controls for Height and Width ?



As now i can't upload this directly to my source (i forgot PW ) so f you want try you should copy and paste (paste in your "gmic" file ..)

CREDIT

thank to Iain Ferguson , not sure if i could have solved without his code snippet , see http://www.flickr.com/groups/gmic/discu ... 087366706/

THE FILTER CODE
#@gimp Centre Tiler: gimp_ctiler,gimp_ctiler
#@gimp : sep = separator()
#@gimp : note = note ( "First Mirror ")
#@gimp : Centre Size = float (17,0,50)
#@gimp : note = note ( "Percentage of central area to mirror")
#@gimp : sep #@gimp : sep = separator()
#@gimp : note = note(" Option to mirror again")
#@gimp : Mirror Again = bool (false)
#@gimp : sep #@gimp : sep = separator()
#@gimp : note = note(""Mirror Again" activate the controls below")
#@gimp : X-offset = float (0,0,100)
#@gimp : Y-offset = float (0,0,100)
#@gimp : Array Mode = choice(2,"x-axis","y-axis","xy-axes","2xy-axes")
#@gimp : Initialization = choice("Original","Mirror X","Mirror Y","Rotate 90 deg.","Rotate 180 deg.","Rotate 270 deg.")
#@gimp : Expand size = _bool(true)
#@gimp : Crop = int(0,0,100)
#@gimp : sep = separator(), note = note("<small>Author: <i>PhotoComix</i>.      Latest update: <i>2013/8/16</i>.</small>")

gimp_ctiler :
size=$1
-crop {50-$size}%,{50-$size}%,{50+$size}%,{50+$size}%
-gimp_array_mirror 1,0,0,3,0,1,0
-if {$2==1} -gimp_array_mirror 1,$3,$4,$5,$6,$7,$8 -endif

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Last edited by PhotoComix on Sat Aug 17, 2013 2:25 am, edited 4 times in total.

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: Centre Tiler [new filter]
PostPosted: Fri Aug 16, 2013 6:04 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12536
That's one of my favorite presets with Simple Filters too PC. Didn't notice their website's now down. Sad really. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Centre Tiler [new filter]
PostPosted: Fri Aug 16, 2013 6:39 pm  (#3) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
@ When i wrote it i was thinking to you, you make me discover this cool filter long ago
A pity that the side is dead..still is almost readable with Internet Archives but the filters files seems corrupted (none works on my PC)
Luckily i have imported all the "Simple" codes in my old and precious FilterUnlimited , so i may still use from that framework

I still don't understand fully the snippet of code from Lain that i used to crop before mirroring

My idea was to give a identical effect as default (the image is ideally divided in 9 sectors, the 8 at the periphery may be deleted 8or will be anyway automatically overwritten ) that at the centre is used to create the new image

I didn't wish hardcode that division, but allow to chose a larger or smaller part, here i still not sure if more convenient kept simple, with a single slider controlling Hight and Width , or allow to modify independently H and W

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Centre Tiler [new filter]
PostPosted: Sat Aug 17, 2013 2:29 am  (#4) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I made some minor changes so now the filter default correspond to the effect of original "Centre Tile" :

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Centre Tiler [new filter]
PostPosted: Sun Aug 18, 2013 12:05 pm  (#5) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
UPDATE COMING !! :yes

Very often the default create seamless images, but what if not ?
Well may even be better , i need a example to clear

As example this below, it is not seamless and far to large for a pattern

Image
gmic prentation by PhotoComiX, on Flickr

i added guides to simulate the median axes , and separate the 4 sectors, and show that each sector is different and seamless

------------------------------------------------------------------------------------------------------------------------------

So i want add a "Split & Export sectors" option

Still i didn't find the pw to upload , if impatient use the code in the first message

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Centre Tiler [new filter]
PostPosted: Sun Aug 18, 2013 10:59 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7768
Location: On the other side of this screen
Is this something we have to download? I just updated/refreshed my G'MIC and don't have anything by that name under arrays/tiles. Would come in handy for those of us who use gimp only.
EDIT
I see I just got to be patient :oops:

_________________


Top
 Post subject: Re: Centre Tiler [new filter]
PostPosted: Wed Aug 21, 2013 7:12 am  (#7) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
yes the filter works but i am not more sure if add to my source because ...
well i just repost here my message to the gmic group

PhotoComiX says:

Not more sure if add this filter to my source , :
i had the disturbing sensation that all that may do is a subset of what Mirror Array filter already may do (using as reflection 2xy-axes and "crop" as needed)
...and even a vague memory of David advising me about long time ago surfaced to my mind

I fear that then i wrote i totally overlook the "crop" option of the Mirror Arrary filter , and that using smartly "crop" is possible get same results .

Waiting for feedback, if there are idea on how to modify to allow other effects not already included in MIrror Array i may edit (or you are free to do ).

If not i think i will let in my drawer

As now the only changes i have i mind are
1) separate controls for cropping H and W
(leaving a option to have them locked as now )

2 a option automatically split the 4 sectors in 4 separate images

...useful but maybe not sufficient to justify a new filter that doesn't offer much new effects

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) cli345's cartoon filter as a native GEGL Filter.

10

No new posts Attachment(s) Made with new filter in G'mic

23

No new posts Attachment(s) My last Aquarelle filter

21

No new posts Attachment(s) Carve.. filter

3

No new posts Attachment(s) what filter might help with this image?

7



* Login  



Powered by phpBB3 © phpBB Group