It is currently Thu Mar 28, 2024 4:50 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 69 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Water Reflection
PostPosted: Mon May 12, 2014 6:41 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
For those of you who are lazy like I am, and do not follow many times the excellent tutorial of Mahvin, but still like to have a way to create a water reflection of an image, I attach here one of my scripts:
warning: it is NOT the implementation of Mahvin's tutorial, it is more an extension of the dm-gen-1.2 script by Andrey Lebedenko (this is also reflected in the name of my script); Andrey's script constitutes the core of my script in creating a displacement map, I just added some front-end and back-end code in order to let the user getting the final result just opening his/her image and running the script.
The results seem acceptable to me, even if following with attention Mahvin's tutorial you get better outcomes.
Two examples are shown for the same base image, using different gradients (the names of the images let you understand the gradients used).
The script creates a new image, which can be or not flattened depending on your parameter choice.
As water gradient the default is Caribbean Blues, but obviously you can choose the one you prefer.
I also created a slightly modified version of the Caribbean Blues standard gradient; it is included in the package (My Caribbean Blues), as well as another of my gradients (My Water 1).
Warning: the creation of the displacement map takes some time, better if you experiment the script
with images not too huge; on my PC (Window 7 32-bit 3-4 years old) an image of around 1900*1300
took 40-45 seconds to be "water-reflected".


Graechan: feel totally free - if you like - to amend/improve this script in order to give to all gimp-chatters a better and more flexible plug-in, as all your scripts are.

Download Water Reflection from GIMP Scripts

_________________
"Where am I ?"


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: Water Reflection
PostPosted: Mon May 12, 2014 7:13 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
thank you dinasset

_________________
Image


Top
 Post subject: Re: Water Reflection
PostPosted: Mon May 12, 2014 4:48 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Nicely done and pretty awesome results. I used default settings.
Windows 8.1 64 bit GIMP-2.8.10 with 4 gigs RAM took about 3.5 seconds. :)
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: Water Reflection
PostPosted: Mon May 12, 2014 5:29 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2605
Location: California
After the script is downloaded, where can we find it in Gimp?


Top
 Post subject: Re: Water Reflection
PostPosted: Mon May 12, 2014 5:34 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
mackenziehm In Gimp, go to Help > click plug-in browser
In the search box type the name of the script you want, when it comes up hi-lite it and on the right it will say where to find the script.
Image

You can also right click on the script and open with notepad or gedit and look through the script and it will also tell you there. sometimes it is at the top, sometimes at the bottom. depending where the script writer wants to put it.

_________________
Image


Top
 Post subject: Re: Water Reflection
PostPosted: Mon May 12, 2014 8:04 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2605
Location: California
molly wrote:
mackenziehm In Gimp, go to Help > click plug-in browser
In the search box type the name of the script you want, when it comes up hi-lite it and on the right it will say where to find the script.
[ Image ]

You can also right click on the script and open with notepad or gedit and look through the script and it will also tell you there. sometimes it is at the top, sometimes at the bottom. depending where the script writer wants to put it.


Thanks, I found it.


Top
 Post subject: Re: Water Reflection
PostPosted: Mon May 12, 2014 9:15 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Dinasset Mahvins tutorial is a classic and I believe you have done it justice with this fine script thank you for this great script now I'll continue with my test drive :yes :bigthup

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Water Reflection
PostPosted: Mon May 12, 2014 11:02 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Works well this is my first quick try
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Water Reflection
PostPosted: Tue May 13, 2014 12:10 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
Thanks, Rod!
Thanks Graechan! there is room for enhancements in my script, for instance applying a smoother transition...

Molly, did you try it?
Mackenzieh did you try it?

_________________
"Where am I ?"


Top
 Post subject: Re: Water Reflection
PostPosted: Tue May 13, 2014 7:39 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
I put here an update of my script.
The modifications are:
1-a technical modification: added a smoothing mask to have a better transition
2-a menu modification: following a recommendation of Graechan, the script goes now to:
<Image>/Script-Fu/Map as the original dm-gen
3-the insertion of the standard gimp script copyright

The technical modification was made because I like to have a smooth transition between the original part of the image and the reflected part.
To understand what I mean I put here Rod's and Graechan's examples remade with the new version: you may compare.
The standard smoothing gradient is "FG to BG (RGB)", so you have to set FG to black and BG to white if not already so (standard configuration), but to have a better result you may download and install my "BlackToWhite" gradient (included in the pack), then select that one.
The difference with the standard is that the black part is reduced in favour of the white part (as in the reality, the upper part of the water area is more "compressed" compared with the lower, closer part).
Make your experiments, if you like...

Attachment:
196_reflection-water-script_RD_DIEGO.png
196_reflection-water-script_RD_DIEGO.png [ 2.07 MiB | Viewed 6264 times ]


Attachment:
707_Graechan-2014-05-13-13-53-14022_DIEGO.jpg
707_Graechan-2014-05-13-13-53-14022_DIEGO.jpg [ 432.11 KiB | Viewed 6264 times ]


Download Water Reflection from GIMP Scripts

_________________
"Where am I ?"


Top
 Post subject: Re: Water Reflection
PostPosted: Tue Oct 21, 2014 11:42 am  (#11) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
This is truly a nice script. I don't know how I missed it the first time around. I did find that using gradients that aren't blue works well too. The lion image gradient is green, the Athens image gradient is CD.

I lowered the opacity of the gradient layer on both.

Image

Image

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


Top
 Post subject: Re: Water Reflection
PostPosted: Tue Oct 21, 2014 12:34 pm  (#12) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7694
Location: On the other side of this screen
I must have missed this one too, It is cool. First try
Image

_________________


Top
 Post subject: Re: Water Reflection
PostPosted: Tue Oct 21, 2014 12:36 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
very good outcomes, Oregonian!
I like especially the lions...

_________________
"Where am I ?"


Top
 Post subject: Re: Water Reflection
PostPosted: Tue Oct 21, 2014 12:38 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
SallyAnne, if this is your "first" try I guess you should use it often! very nice!

_________________
"Where am I ?"


Top
 Post subject: Re: Water Reflection
PostPosted: Tue Oct 21, 2014 12:43 pm  (#15) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7694
Location: On the other side of this screen
Thank you dinasset.
I was just wondering where you were and then I saw a post from you.
I know I haven't been around but only for less than a week.

_________________


Top
 Post subject: Re: Water Reflection
PostPosted: Tue Oct 21, 2014 3:17 pm  (#16) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Thanks dinasset!
Sallyanne, your picture is so cool. What is it a picture of? Looks like ruins in a jungle somewhere. Love it.

Had to play around a bit with the script. Putting the fish into the image took a bit more time than it looks like.

Image

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


Top
 Post subject: Re: Water Reflection
PostPosted: Tue Oct 21, 2014 3:30 pm  (#17) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Very cool O

_________________
Image


Top
 Post subject: Re: Water Reflection
PostPosted: Tue Oct 21, 2014 3:37 pm  (#18) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
molly wrote:
Very cool O
Thank you, molly. :coolguy

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


Top
 Post subject: Re: Water Reflection
PostPosted: Tue Oct 21, 2014 6:28 pm  (#19) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Dinasset you have done a good job with this script, it's easy and simple to use and the results are great :bigthup

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Water Reflection
PostPosted: Tue Oct 21, 2014 7:02 pm  (#20) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I just noticed your script dinasset. Thank you for sharing, it is great.
I will play with it more tomorrow when I get a decent picture.
Image

_________________
Image


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Mask Over Photographers in Reflection?

5

No new posts a drop of rainwater where we see a reflection

1

No new posts Water droplets.

4

No new posts Attachment(s) Abstract Water Color

8

No new posts Attachment(s) Water displacement map (SOLVED)

4



* Login  



Powered by phpBB3 © phpBB Group