It is currently Wed Nov 22, 2017 4:21 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



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

Joined: Jan 20, 2013
Posts: 6955
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

_________________
Vanitas vanitatum et omnia vanitas.


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: 14135
thank you dinasset

_________________
Image


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

Joined: May 16, 2010
Posts: 13984
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


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: 1194
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: 14135
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: 1194
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: 4695
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: 4695
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

Joined: Jan 20, 2013
Posts: 6955
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?

_________________
Vanitas vanitatum et omnia vanitas.


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

Joined: Jan 20, 2013
Posts: 6955
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 4293 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 4293 times ]


Download Water Reflection from GIMP Scripts

_________________
Vanitas vanitatum et omnia vanitas.


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Reflection Tables by Gimper66

5

No new posts Attachment(s) 3D Text with a reflection - xgeous Style

43

No new posts Water and Sky

7

No new posts Attachment(s) Water Melon

3

No new posts Blender water

2



* Login  



Powered by phpBB3 © phpBB Group