It is currently Sun Sep 27, 2026 7:01 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Displacement filter doesn't work
PostPosted: Mon Jun 24, 2019 5:46 am  (#1) 
Offline
GimpChat Member

Joined: Jun 24, 2019
Posts: 5
GIMP Version: 2.8.14
Operating System: Windows
OS Version: 10
GIMP Experience: Basic Level



I am trying to wrap some text around an image of a cork coming out of a bottle and I have followed several displacement map tutorials step by step but the filter has no effect.

I am using gimp 2.10


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: Displacement filter doesn't work
PostPosted: Mon Jun 24, 2019 6:07 am  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
goNative wrote:
GIMP Version: 2.8.14
Operating System: Windows
OS Version: 10
GIMP Experience: Basic Level



I am trying to wrap some text around an image of a cork coming out of a bottle and I have followed several displacement map tutorials step by step but the filter has no effect.

I am using gimp 2.10

As the filter works for me you must be doing something wrong, but we can't guess. So either:

- describe accurately what you are doing
- give the URL of a tutorial you are following to the letter (knowing that most tutorials are pre-2.10, so they could be hard to follow to the letter in 2.10).

_________________
Image


Top
 Post subject: Re: Displacement filter doesn't work
PostPosted: Mon Jun 24, 2019 7:43 am  (#3) 
Offline
GimpChat Member

Joined: Jun 24, 2019
Posts: 5
- give the URL of a tutorial you are following to the letter (knowing that most tutorials are pre-2.10, so they could be hard to follow to the letter in 2.10).

That's part of the problem.

I am making a duplicate of the portrait image (a cork being pulled from a wine bottle) I am desaturating and blurring the top duplicate. I create the text layer and move it between the desaturated, blurred layer and the unretouched layer. I select the text layer and click on displacement map. I am choosing cartesian, cubic and clamp options.

The graphic shows that the displacement is going ahead but nothing happens.


Top
 Post subject: Re: Displacement filter doesn't work
PostPosted: Mon Jun 24, 2019 8:09 am  (#4) 
Offline
GimpChat Member

Joined: Sep 23, 2016
Posts: 317
goNative wrote:
I create the text layer and move it between the desaturated, blurred layer and the unretouched layer. I select the text layer and click on displacement map.


I don't quite understand what you are trying to achieve. Which layer is to be displaced, and which layer are you using as the displacement map?

Things to note:
1) Layers must be the same size. Use "Layer > Layer to Image Size" on the text layer if necessary.

2) Select the layer to be displaced. Then "Filters > Map > Displace". Then specify which layer is to be used as the displacement map. In 2.10 this is selected with Aux Input and Aux2 Input.


Top
 Post subject: Re: Displacement filter doesn't work
PostPosted: Mon Jun 24, 2019 8:39 am  (#5) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2615
I have a feeling that displacement map is probably the wrong tool anyway. As usual it all depends on the image (s) and requirements.

For a cork = cylinder there is Filters -> Map -> Map Object Not the easiest to set up, tends to be a bit trial and error.

Round the circumference: https://i.imgur.com/238MCbq.jpg
Lengthways: https://i.imgur.com/NVGVzLe.jpg

Although it might come down to more than a bit of hand editing. https://i.imgur.com/enVWQ9c.jpg

One thing that is needed is bumpmap the text, against the texture of the cork, so it shows.


Top
 Post subject: Re: Displacement filter doesn't work
PostPosted: Tue Jun 25, 2019 6:44 am  (#6) 
Offline
GimpChat Member

Joined: Jun 24, 2019
Posts: 5
Thanks for the responses.

What I want is of the text to look like it is printed on the cork


Attachments:
corkB1demo.jpg
corkB1demo.jpg [ 2.91 MiB | Viewed 7922 times ]
Top
 Post subject: Re: Displacement filter doesn't work
PostPosted: Tue Jun 25, 2019 7:15 am  (#7) 
Offline
GimpChat Member

Joined: Sep 23, 2016
Posts: 317
I have used a simpler, quicker method here.

1) Give the text layer a slight curve using the Warp Transfrom tool.
https://docs.gimp.org/2.10/en/gimp-tool-warp.html

2) Bump map the text. Use the cork layer as the pattern (Aux Input).
(Use "Layer > Layer to Image Size" before bump mapping.
https://docs.gimp.org/2.8/en/plug-in-bump-map.html


Attachments:
Cork1.jpg
Cork1.jpg [ 95.73 KiB | Viewed 7913 times ]
Top
 Post subject: Re: Displacement filter doesn't work
PostPosted: Tue Jun 25, 2019 7:18 am  (#8) 
Offline
GimpChat Member

Joined: Jun 24, 2019
Posts: 5
Awesome! Annoyingly quick! Thanks. I will get on it. That's what I am going for.


Top
 Post subject: Re: Displacement filter doesn't work
PostPosted: Tue Jun 25, 2019 7:28 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1837
Agree with rich2005. Map Object using cylinder is what you want. Overlay using "Grain Merge" blending mode.

Attachment:
cork.jpg
cork.jpg [ 247.95 KiB | Viewed 7909 times ]


Top
 Post subject: Re: Displacement filter doesn't work
PostPosted: Tue Jun 25, 2019 9:21 am  (#10) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2615
Probably gone a bit OTT with this. Using the warp tool as Blighty's post will be the easiest.

But another way, using a script to deform the text. Saul Goodes warp text - attached, unzip pop in your scripts folder.

Attachment:
corkB1dmo.jpg
corkB1dmo.jpg [ 257.54 KiB | Viewed 7897 times ]


Video demo, long one me, 6 minutes so I must have over-complicated things ;)

https://youtu.be/dirhln2IveM


Attachments:
sg-warptext.scm.zip [5.01 KiB]
Downloaded 283 times
Top
 Post subject: Re: Displacement filter doesn't work
PostPosted: Tue Jun 25, 2019 10:59 am  (#11) 
Offline
GimpChat Member

Joined: Jun 24, 2019
Posts: 5
This is where I am now. Thanks again. Two days of frustration solved in 2 minutes.


Attachments:
corkB1demo.jpg
corkB1demo.jpg [ 3.01 MiB | Viewed 3505 times ]
Top
 Post subject: Re: Displacement filter doesn't work
PostPosted: Tue Jun 25, 2019 7:47 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Apr 15, 2017
Posts: 1837
Ofnut's "Bend Paths" plugin also works well for this. You can bend objects as well as text.

Attachment:
cork.jpg
cork.jpg [ 87.42 KiB | Viewed 3486 times ]


Top
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group