PDA

View Full Version : 4 ways to get Variable Blurs in GIMP



RobA
05-12-2008, 04:12 PM
Over in my Not so Random Coastline Tutorial (http://www.cartographersguild.com/showthread.php?t=875) I suggested using a variable blur to control the randomness of the coastline. I had a few pm's asking how to do this, so I will give you four ways (in four posts).

#1 - Feathered Selection, Bigger Blur
Start with your base shape:
3541

Blur it the lesser amount (20 px here):
3542

Use the lasso tool to make a selection around the area you want to have a larger blur. Set it to a 100px feather. Leave lots of space:
3543

Blur it again, with the greater amount (100px here):
3544

The result:
3545

-Rob A>

RobA
05-12-2008, 04:17 PM
#2 Feathered Selection - Curves Adjust
Start with the base shape:
3546

Blur it the larger amount (100px):
3547

Use the lasso tool to make a selection around the area you want to have a smaller blur. Set it to a 100px feather:
3548

use the curves dialog as shown. This pulls the shades closer to the middle. The advantage here is by moving the slope left and right you can move the tighter band in and out:
3549

The result:
3550

-Rob A>

RobA
05-12-2008, 04:25 PM
#3 Layer Masks

Start with the base shape:
3551

Duplicate this layer. Blur the bottom one the lesser amount, and the upper one the greater amount (I'm not showing this, as it is the same as the other methods).

Create a layer mask on the upper layer and fill the layer mask with a B/W gradient. With layer masks, white is opaque, black is transparent. Here is the mask I used:
3552

The final result, showing the layers and the layer mask:
3553

Note: To use this, you will either need to merge the two layers together or do a "copy visible" then "Paste as new layer".

-Rob A>

RobA
05-12-2008, 04:35 PM
#4 Using the Focus Blur Plugin

This provided the "sweetest" results, creating a true variable blur, rather than a blend between two blurs, as the other three do. The plugin is computationally intensive, however. This sample took 4 minutes to run on my machine...

If running Linux, head over to the plugin home page (http://sudakyo.hp.infoseek.co.jp/gimp/fblur/focusblur_e.html) and get the plugin and install it as per the instructions there. There is also a windows binary mirror here (http://earth2marsh.com/fblur.zip) but I don't know for how long...

Start with the base image:
3554

Create a new layer, and fill it with a gradient that will be the focal blur map:
3558

Run the Focal Blur plugin. Set Focus to 255 (white in the map will be in focus, the more black, the more blurred). Select the distance map option, and select the map you made. The bigger the radius here, the longer it will take to run... start small and work it up. Here were my settings:
3556

The result:
3557

Notice how the blur blends smoothly from the narrow area to the wide area. Nice...

-Rob A>

torstan
05-14-2008, 11:24 AM
It can also be done with quick masks - very similar to the feathered lasoo method.

Start with the standard circle and run a light blur over it so you have something like this to start with:

3596

Now click the quick mask button (circled in green on the following image). It should now look like this:

3598

Now use the gradient tool to get a nice graded selection. Drawing over the image with white creates a see-through areas of the mask (the red) that will be interprested as the selection later on. Therefore using a gradien tool we can leave some areas black (unselected) and then as it fades to white, the area becomes selected. Using the gradient like this:

3597

... should give a quick mask that looks like this:

3599

Now click the quickmask button again to turn the quickmask into a selection. You should now have what looks like a rectangular selection around the bottom. With this selection in place, run the Gaussian Blur filter again at 100px to get the following:

3595