It is currently Tue Mar 19, 2024 4:43 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 11:22 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Hello there !
LGM 2014 is now over, so it is time to go to work again :hehe

So, today Jérome Boulanger and I have coded a new filter Patterns / Resynthetize texture for the G'MIC plug-in that might interest you.
It basically tries to resynthetize an input texture into an image of arbitrary size. It uses a phase randomization technique in
the Fourier space to achieve the texture synthesis.
After updating your filters (requires at least G'MIC version 1.5.8.0), you should be able to select it and see this :

Attachment:
gmic_resynthetize_texture.png
gmic_resynthetize_texture.png [ 502.9 KiB | Viewed 9508 times ]


You have only two parameters that tell about the desired size of the synthetized output texture.
Below I show an example of what you can achieve with this filter. The input sample textures are not tileable, while the
synthetized outputs are (FFT property). Here, I've just doubled the image size, but of course, you can set any size you want.
Note that it works quite well with micro-textures, but definitely not with macro-textures. You have been warned :)
Also note that the filter is already parallelized, so it should use the multiple cores of your machine when possible.

Attachment:
gmic_resynthetize_texture2.jpg
gmic_resynthetize_texture2.jpg [ 1.63 MiB | Viewed 9508 times ]


Now, it's your turn, if you want to play you are welcome to post what you obtain with this filter and tell us if this can be useful and in which cases.

Enjoy !
:tyspin


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 G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 1:07 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7300
Location: Göteborg at last!
Excellent, thank you very much.


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 1:35 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7684
Location: On the other side of this screen
Will have to play around with this a bit more.
Do you "have to" have something on your canvas before anything happens? I found I had to.
Image

_________________


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 2:00 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14766
Location: roma, italy
Hi David.
I did some trials, but I did not get what expected.
I mean, looking at your examples, it seems the original texture is almost kept, while in my tests it's very distorted.
What did I wrong?
starting size is 128x128, resulting (default) 1024x1024

Attachment:
test1.png
test1.png [ 2.35 MiB | Viewed 9435 times ]


Attachment:
test2.png
test2.png [ 3.09 MiB | Viewed 9435 times ]


Attachment:
test3.png
test3.png [ 3.14 MiB | Viewed 9435 times ]


thanks

_________________
"Where am I ?"


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 2:58 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Ronounours wrote:
Note that it works quite well with micro-textures, but definitely not with macro-textures. You have been warned :)


dinasset, please provide only micro textures, which means textures with fine grain and no complex patterns (brick walls e.g are complex patterns).
It won't work at all with macro textures. All the textures you provided can be considered as macro-textures.


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 5:29 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12509
No bricks then; still pretty cool since seamless texture is a side hobby of mine.

SSP below (shameless self promotion; lol). :)

http://lylejk.deviantart.com/gallery/

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 6:05 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
another great and useful filter
thank you !!

whats really great about this is, you get organic looking textures, without the synthetic look of a tiled pattern


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Thu Apr 10, 2014 1:20 am  (#8) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7684
Location: On the other side of this screen
I ran this filter over most of my patterns to see what would happen.
Image

_________________


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Thu Apr 10, 2014 2:20 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12509
Anyway possible to add a patch size slider so that we can choose a larger patch size for creating the texture? :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Thu Apr 10, 2014 6:31 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 591
lylejk wrote:
No bricks then; still pretty cool since seamless texture is a side hobby of mine.

SSP below (shameless self promotion; lol). :)

http://lylejk.deviantart.com/gallery/

lylejk, I took a look in your gallery. The textures are magnificent. Thanks for sharing.

_________________
Image


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Thu Apr 10, 2014 6:40 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
lylejk wrote:
Anyway possible to add a patch size slider so that we can choose a larger patch size for creating the texture? :)


Lyle, the synthesis algorithm does not use patches at all, so this is not possible :mrgreen:


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Thu Apr 10, 2014 3:16 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12509
Carlos Diniz wrote:
lylejk wrote:
No bricks then; still pretty cool since seamless texture is a side hobby of mine.

SSP below (shameless self promotion; lol). :)

http://lylejk.deviantart.com/gallery/

lylejk, I took a look in your gallery. The textures are magnificent. Thanks for sharing.


Thanks Carlos; they are free for all to use.

OK David; still, I do see some cool use for certain types of textures so do appreciate it. Just created this black leather texture from a single lego block. :)


Attachments:
black_leather.jpg
black_leather.jpg [ 657.74 KiB | Viewed 1907 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Sun Apr 13, 2014 10:14 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12509
Here's a thought David for you next hat trick. Some of the textures people rendered and shared in this thread remind me of stereograms (SIRDS) renders (you know; magic eye for parallel view 3D). Maybe G'MIC can be coaxed to create these type renders. Currently I use a very old (but still works in GIMP) plugin to create them in GIMP. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Sun Apr 13, 2014 3:35 pm  (#14) 
Offline
GimpChat Member

Joined: Sep 24, 2012
Posts: 275
Location: Scotland
lylejk wrote:
Here's a thought David for you next hat trick. Some of the textures people rendered and shared in this thread remind me of stereograms (SIRDS) renders (you know; magic eye for parallel view 3D). Maybe G'MIC can be coaxed to create these type renders. Currently I use a very old (but still works in GIMP) plugin to create them in GIMP. :)


There is one already, made my Tom Keil. It's under "Stereoscopic 3D -> Single image stereogram" but for some reason isn't working for me. It definitely used to work though so should be fixable.


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Mon Apr 14, 2014 11:21 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12509
I've seen this one before too GC but it's never worked for; not sure what broke it but by the time I've tried using it (may have been a year ago) it just doesn't work. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Mon Apr 14, 2014 12:05 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
This has been fixed. Thanks for reporting. :)


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Mon Apr 14, 2014 2:16 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12509
Maybe a dot guide would help; tried to create one and at least the distorted result isn't there anymore but I'm having issues seeing the 3D image whereas other SIRDS (like the wiki example) comes out quite clear to me. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Mon Apr 14, 2014 2:26 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Honestly, I try to maintain the filters done by Tom Keil as much as I can, but I've never participated in the design of those filters, and adding new features to them is probably out of my knowledge. I'm not familiar with stereo images as well. Unfortunately, despite my trials, I haven't got news from Tom since months (years?) and I'm afraid he won't touch these filters anymore. I hope I'm wrong anyway.


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 16, 2014 7:22 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Feb 25, 2013
Posts: 95
Location: Missouri
When I refresh the filters for the Windows version.
I get an error message.
Is this update only apply for Linux versions?


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 16, 2014 7:37 pm  (#20) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
spunkygurl80 wrote:
When I refresh the filters for the Windows version.
I get an error message.
Is this update only apply for Linux versions?
All platforms.
Current G'MIC for GIMP

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


Top
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Seamless brick texture patterns (not helper)

4

No new posts Attachment(s) Vellum Texture

14

No new posts Attachment(s) Paper Texture Help

10

No new posts Attachment(s) Beautify Texture & Border Ver.2

3

No new posts Attachment(s) Material like smooth texture

6



* Login  



Powered by phpBB3 © phpBB Group