Results 1 to 5 of 5

Thread: 4 ways to get Variable Blurs in GIMP

  1. #1

    Tutorial 4 ways to get Variable Blurs in GIMP

    Over in my Not so Random Coastline Tutorial 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:
    Click image for larger version. 

Name:	vb_fs00001.png 
Views:	335 
Size:	6.2 KB 
ID:	3541

    Blur it the lesser amount (20 px here):
    Click image for larger version. 

Name:	vb_fs00002.png 
Views:	91 
Size:	20.3 KB 
ID:	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:
    Click image for larger version. 

Name:	vb_fs00003.png 
Views:	118 
Size:	111.8 KB 
ID:	3543

    Blur it again, with the greater amount (100px here):
    Click image for larger version. 

Name:	vb_fs00004.png 
Views:	84 
Size:	24.6 KB 
ID:	3544

    The result:
    Click image for larger version. 

Name:	vb_fs00005.png 
Views:	93 
Size:	46.9 KB 
ID:	3545

    -Rob A>

  2. #2

    Post

    #2 Feathered Selection - Curves Adjust
    Start with the base shape:
    Click image for larger version. 

Name:	vb_cv00001.png 
Views:	74 
Size:	6.2 KB 
ID:	3546

    Blur it the larger amount (100px):
    Click image for larger version. 

Name:	vb_cv00002.png 
Views:	97 
Size:	20.2 KB 
ID:	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:
    Click image for larger version. 

Name:	vb_cv00003.png 
Views:	107 
Size:	112.4 KB 
ID:	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:
    Click image for larger version. 

Name:	vb_cv00004.png 
Views:	100 
Size:	91.6 KB 
ID:	3549

    The result:
    Click image for larger version. 

Name:	vb_cv00005.png 
Views:	73 
Size:	40.0 KB 
ID:	3550

    -Rob A>

  3. #3

    Post http://forum.cartographersguild.com/newreply.php?do=postreply&t=2016

    #3 Layer Masks

    Start with the base shape:
    Click image for larger version. 

Name:	vb_ma00001.png 
Views:	118 
Size:	6.2 KB 
ID:	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:
    Click image for larger version. 

Name:	vb_ma00002.png 
Views:	482 
Size:	12.9 KB 
ID:	3552

    The final result, showing the layers and the layer mask:
    Click image for larger version. 

Name:	vb_ma00003.png 
Views:	87 
Size:	166.7 KB 
ID:	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>

  4. #4

    Post

    #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 and get the plugin and install it as per the instructions there. There is also a windows binary mirror here but I don't know for how long...

    Start with the base image:
    Click image for larger version. 

Name:	vb_fb00001.png 
Views:	81 
Size:	6.2 KB 
ID:	3554

    Create a new layer, and fill it with a gradient that will be the focal blur map:
    Click image for larger version. 

Name:	vb_fb00002.png 
Views:	174 
Size:	122.7 KB 
ID:	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:
    Click image for larger version. 

Name:	vb_fb00003.png 
Views:	73 
Size:	23.0 KB 
ID:	3556

    The result:
    Click image for larger version. 

Name:	vb_fb00004.png 
Views:	87 
Size:	38.4 KB 
ID:	3557

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

    -Rob A>

  5. #5
    Community Leader Facebook Connected torstan's Avatar
    Join Date
    Jul 2007
    Posts
    4,199

    Post

    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:

    Click image for larger version. 

Name:	firstblur.jpg 
Views:	395 
Size:	6.9 KB 
ID:	3596

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

    Click image for larger version. 

Name:	mask.jpg 
Views:	714 
Size:	43.1 KB 
ID:	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:

    Click image for larger version. 

Name:	mask2.jpg 
Views:	109 
Size:	85.1 KB 
ID:	3597

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

    Click image for larger version. 

Name:	selection1.jpg 
Views:	92 
Size:	45.4 KB 
ID:	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:

    Click image for larger version. 

Name:	final.jpg 
Views:	170 
Size:	8.9 KB 
ID:	3595

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •