It is currently Mon Sep 21, 2026 3:25 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: ~
PostPosted: Thu Dec 26, 2013 7:21 am  (#1) 
Offline
GimpChat Member

Joined: Apr 29, 2013
Posts: 203
~

_________________
~


Last edited by Zeo on Tue Nov 30, 2021 10:42 pm, edited 1 time 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: Fill Irregular Selection with Pattern?
PostPosted: Thu Dec 26, 2013 8:50 am  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
See the various distortion filters and also the "Map Object" filter (to wrap things over part of a sphere or a cylinder). But what you are looking for looks a lot like applying a texture over a 3D rendering, which falls in the basket of 3D programs.

_________________
Image


Top
 Post subject: Re: Fill Irregular Selection with Pattern?
PostPosted: Thu Dec 26, 2013 9:16 am  (#3) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
I know Saulgoode wrote a script for layer to selection. Whether it deforms to the selection as perspective well i don't know. However he did write Warp Text which will take any text layer and using 4 node points beginning top-left it will warp the image to it. It probably will work for layers or other types of objects i would guess. You can download it at the registry here.
http://registry.gimp.org/node/24568
The script's dialog offers the option to warp any path, not just text.
More information can be found here - http://gimpchat.com/viewtopic.php?f=9&t=306
There is also Ez-Perspective here.
http://registry.gimp.org/node/24537

One or both of those may work for your current needs.

_________________
Image


Top
 Post subject: Re: Fill Irregular Selection with Pattern?
PostPosted: Thu Dec 26, 2013 9:34 am  (#4) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5241
Location: Gimpville
It's on Gimp Scripts, as well.

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


Top
 Post subject: ~
PostPosted: Fri Dec 27, 2013 1:35 pm  (#5) 
Offline
GimpChat Member

Joined: Apr 29, 2013
Posts: 203
~

_________________
~


Last edited by Zeo on Tue Nov 30, 2021 10:44 pm, edited 1 time in total.

Top
 Post subject: Re: Fill Irregular Selection with Pattern?
PostPosted: Fri Dec 27, 2013 1:56 pm  (#6) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Quote:
Rod & GnuTux:
Somehow the WarpText plugin doesn't appear in my menu, after copy it to my Gimp plugins folder... (Gimp 2.6.7) :(
The Ez Perspective is working, btw

maybe warp text is in python and so goes in the plugin folder ?
i have a bad memory , not sure but check the extension of the file, if is "py" then move in plugin

_________________
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: ~
PostPosted: Fri Dec 27, 2013 6:16 pm  (#7) 
Offline
GimpChat Member

Joined: Apr 29, 2013
Posts: 203
~

_________________
~


Last edited by Zeo on Tue Nov 30, 2021 10:44 pm, edited 1 time in total.

Top
 Post subject: Re: Fill Irregular Selection with Pattern?
PostPosted: Sat Dec 28, 2013 3:09 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
Now you have mentioned you would like to fill a dress with the pattern then I would go for the displacement map filter.

Image 1. I have created a greyscale version of my cloth, showing light and shadow or you could create a depth map of your dress.
Image 2. I have created a new Layer filled with my pattern.
Image 3. Go>filter>Map>Displace and change your Displacement values and set your displacement image as your greyscale dress layer, note the pattern image and the greyscale dress image must be the same layer size.
Image 4. Just to enhance the displacement I duplicated my greyscale image and set it above my pattern layer and changed its mode to "Overlay" this the gives the pattern cloth the lights and shadows of the displacement.


Attachments:
Mapping to Dress 01.png
Mapping to Dress 01.png [ 836.35 KiB | Viewed 3929 times ]

_________________
Image
Top
 Post subject: Re: Fill Irregular Selection with Pattern?
PostPosted: Sat Dec 28, 2013 6:01 am  (#9) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14206
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
he4rty wrote:
Now you have mentioned you would like to fill a dress with the pattern then I would go for the displacement map filter.

Image 1. I have created a greyscale version of my cloth, showing light and shadow or you could create a depth map of your dress.
Image 2. I have created a new Layer filled with my pattern.
Image 3. Go>filter>Map>Displace and change your Displacement values and set your displacement image as your greyscale dress layer, note the pattern image and the greyscale dress image must be the same layer size.
Image 4. Just to enhance the displacement I duplicated my greyscale image and set it above my pattern layer and changed its mode to "Overlay" this the gives the pattern cloth the lights and shadows of the displacement.

I think you've nailed it He4rty. That's the way he should go. :bigthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Fill Irregular Selection with Pattern?
PostPosted: Sat Dec 28, 2013 10:35 am  (#10) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
If your image (of just the dress) is in it's own layer it can be overlayed with a pattern of the exact dress selection. Try layer modes on a top layer of a pattern cut to the dresses exact selection. Place the dress layer under it.

_________________
Image


Top
 Post subject: ~
PostPosted: Mon Dec 30, 2013 7:11 am  (#11) 
Offline
GimpChat Member

Joined: Apr 29, 2013
Posts: 203
~

_________________
~


Last edited by Zeo on Tue Nov 30, 2021 10:45 pm, edited 1 time in total.

Top
 Post subject: Re: Fill Irregular Selection with Pattern?
PostPosted: Mon Dec 30, 2013 7:20 am  (#12) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14206
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Zeo wrote:
@he4rty & Rod: Thanks for the explanation and example :hehe

Actually that is my method that I use this far (but without displacement map), place pattern layer in front of color (or grayscale) layer and change pattern layer mode. Usually 'multiply' layer mode works better than any other layer mode. If the color don't suit, just 'colorize' pattern layer... :)
[ Image ]

... but it feels... err... not natural, so maybe next time I will do it... manually... :(

Using displacement will give the fabric a more natural look.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group