GIMP users / Discuss

Current Discussion

STICKY  Gimp 2.7 portable and virus/malware alert
Latest: 4 days ago
Gimp Challenge 30 - Theme to be chosen by Orlando Braga
Latest: 59 minutes ago
Gimp Challenge 29 - Old and New - Time to vote
Latest: 63 minutes ago
Flickr is not displaying proper Exif data for photos edited with GIMP 2.8
Latest: 14 hours ago
My present problems with Gimp and UFRaw Windows
Latest: 14 hours ago
can pspi work with 64 bit gimp (2.8)?
Latest: 19 hours ago
announce: delaboratory 0.7.1 (unstable development)
Latest: 32 hours ago
How do I get this almost white-washed look?
Latest: 3 days ago
Lightroom 4 and Gimp 2.8
Latest: 4 days ago
Help: scripts and curves to create dreamy light/ sunset glare
Latest: 4 days ago
Orange and Gimp
Latest: 9 days ago
ubuntu 10.04 lucid lynx and final release of gimp
Latest: 9 days ago
More...

Search this group's discussions

Water reflection simulation

view profile

alebedenko says:

Not sure if this was already discussed...
I've tried to find any automatic tool to create realistic water reflection.
The easiest way to do so is to use Map -> Displace, however it require a proper displacement map.

Wasn't able to find any script or tool to create one. So I've ended with no choice but create a script.

So, if you need it... it is Displacement Map Generator v.1.0

The result of use one of the map could be seen here:

Water in Paris
Posted at 5:30PM, 22 January 2009 PDT (permalink)

view photostream

jeffegg2  Pro User  says:

It just so happens, the G'mic toolbox has just this tool....

registry.gimp.org/node/13469
Posted 41 months ago. (permalink)

view photostream

François Collard is a group administrator François Collard  Pro User  says:

I'll try it, alebedenko, but your link does not work. It should be: andrey.lebedenko.googlepages.com/dm-gen-1.rar
Posted 41 months ago. (permalink)

view photostream

alebedenko says:

jeffegg2 "It just so happens, the G'mic toolbox has just this tool...." -- yes, I've just found it too. However, as you can see the way reflection looks is quite different ;-) This is primarily because there is no perspective correction nor horizon blur.

François Collard -- Thanks!
Posted 41 months ago. (permalink)

view photostream

J0hno says:

Thanks - This looks nice. I recall once doing a displacement map for water reflections manually, and it was rather fiddly.
Posted 41 months ago. (permalink)

view photostream

jeffegg2  Pro User  says:

so how to open a .rar in ubuntu?
Posted 41 months ago. (permalink)

view photostream

alebedenko says:

jeffegg2 : unrar ?...
Posted 41 months ago. (permalink)

view photostream

jeffegg2  Pro User  says:

ok, got the unrar to work, but how did you use the displacement map to create that photo? all it did for me was render a new image of green water....
Posted 41 months ago. (permalink)

view photostream

alebedenko says:

Ok. Quick tutorial. :-)

1. Crop your photo, so there will be only area which you would like to reflect.

2. Increase the vertical size of canvas to 200%. Keep image in topmost area. (Remember the original size of the image)

3. Duplicate layer

4. Mirror the layer vertically

5. Align it vertically in the way it will look like "perfect" reflection

6. Duplicate layer. Clean it.

7. Create the displacement map using original sizes from #2

8. Copy and paste displacement map into layer #6

9. Go to "Perfect Reflection" layer (created at #5). Use Filters -> Map -> Displace and specify the layer with DM in drop-down menus. Adjust X and Y displacement in a way that Y = 2*X

10. Add more layers with effects like desaturation, soft ligh (black gradient), colour (dark blue) etc.
Originally posted 41 months ago. (permalink)
alebedenko edited this topic 41 months ago.

view photostream

PhotoComiX is a group administrator PhotoComiX  Pro User  says:

alebedenko

May be MUCH quicker:

There is a very useful script to mirror , that take care of 1,2,3,4, 5 and 6 steps automatically.

(step 5 is very critical i get good results only zooming at 200% , often allignement issues get noticed only after flattening, and then is to late ,only UNDO will help )

Is from Saulgoode "mirror-dup.scm" you may found here
flashingtwelve.brickfilms.com/GIMP/Scripts/

if you have FX-Foundry pack is, you have it already in the layer submenu, mirror can be done horizontally, vertically or in both direction.

When using it i suggest to chose "create new image" option,
Originally posted 40 months ago. (permalink)
PhotoComiX (a group admin) edited this topic 40 months ago.

view photostream

alebedenko says:

Yes, that's a very good idea!
I would also add a motion blur step (90 degrees) against mirrored layer.
Posted 40 months ago. (permalink)

view photostream

PhotoComiX is a group administrator PhotoComiX  Pro User  says:

maybe also a option for a slightly change of hue, toward bluish,(with a preset or in Interactive mode ) for the mirrored part may be useful.
water reflex are usually a bit more bluish then the original

well thinking better is not too important since is easy and quick doing manually after..

thank for the script
Posted 40 months ago. (permalink)

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).

RSS 2.0 feedSubscribe to a feed of stuff on this page...</!!> Feed – Subscribe to GIMP users discussion threads