Sign in to follow this  
MadJik

Gradient Blur (ymd:100710)

Recommended Posts

Gradient Blur Effect Plugin

What's this?

There is an effect for the gaussian blur...

There is a tool for the gradient...

This is a mix of both: the Gradient Blur!

I took the code of the gaussian blur from Paint.net source (vers. 3.10)

and I've added two radius to allow to keep an area un-blurred or gradually blurred.

gradientblurtut1.jpg

 

 

Download it!

Plugin Gradient Blur.dll

ar.pngHere is the DLLal.png

 

The MadJik's All plugins package is available !
http://forums.getpaint.net/index.php?showtopic=7186

 

How to install

Close Paint.net

Unzip and (re)place the DLL in your Effect folder usually: C:/Program Files/Paint.NET/Effects

 

The User interface

This plugin is added to the menu Effects, submenu Blur.

gradientblur_UI.png

 

X,Y Offset:

...you could choose the center of the blurred area.

Blur amount:

...Level of blur you want to have

Unblurred distance:

...Distance (radius) from the center you want to keep unchanged.

Blurred distance:

...Distance (radius) from the center you want to blur.

Choose the shape of blur:

...Circle/Ellipse or

...Square/Rectangle or

...Horizontal or Vertical New!.

Distance mode:

...OFF:from the center, you'll have Circle or Square; On: you'll have Ellipse or Rectangle.

Show the guide lines:

...Check to see the lines for the both distances.

Invert the blur direction: New!

...Blur in the middle or around the image

The area between the both distances is gradually blurred creating some kind of halo.

If you set both distances amounts to zero, then you'll have a usual gaussian blur.

 

Some examples:

Model / Result :

gradientblur01.jpg  gradientblur02.jpg

 

 

Model / Result :

gradientblur11.jpg  gradientblur12.jpg

 

gradientblur21.jpg  gradientblur22.jpg

Edited by MadJik
refresh UI and rehosting images

Share this post


Link to post
Share on other sites
I don't exactly understand what this does, but I'll check it out I suppose.

It's a Gaussian Blur, but instead of a uniform blur as with other blurs, the intensity of the blur varies based on distance from the center.

MadJik, this is useful and all, but desperately needs a better UI. And options to choose the center of the effect.

Also, Blur amount -> Blur Amount

unBlured Radius -> Unblurred Radius

Blured Radius -> Blurred Radius

Share this post


Link to post
Share on other sites

"Also, Blur amount -> Blur Amount

unBlured Radius -> Unblurred Radius

Blured Radius -> Blurred Radius"

Was gonna say that!

Thanks for this explanation, I already love this plugin.

Share this post


Link to post
Share on other sites
It's a Gaussian Blur, but instead of a uniform blur as with other blurs, the intensity of the blur varies based on distance from the center.

I think it would be even more useful if it did what you are describing...:P

Think about it like this:

Take an image, duplicate it. Gaussian Blur the top layer at 20px. Now use the regular Gradient tool in 'Transparency Mode' and draw a linear gradient across the image.

It doesn't actually get more/less blurry(blur radius) as it fades across; you just see more/less(opacity wise) of the blurred layer. The blur amount stays static.

If it gave you a direction/shape based graduation of blur radius, it would be awesome. If it had the same control as Rick's tool(or even BB's plugin), it would be A-mazing!

Share this post


Link to post
Share on other sites
It's a Gaussian Blur, but instead of a uniform blur as with other blurs, the intensity of the blur varies based on distance from the center.

I think it would be even more useful if it did what you are describing...:P

Don't you get technical with me, boy!

Share this post


Link to post
Share on other sites

Thanks all of you for your comments.

I've fixed the wrong spelling...

The gradient tool is using some built-in functions that includes the differente 'shapes' for the gradient (linear, diamond, etc..)

I can't rewrite all these shapes for this plugin. But I could think about a square version from the center or a rectangle following the borders.

gbtutsq.jpg

gbtutre.jpg

Share this post


Link to post
Share on other sites

Great work, MadJIk. Not to bee greedy, but might i suggest a vertical, oval shape? It would bee great for portraits. Blur around a face. Is this possible?

Share this post


Link to post
Share on other sites

It WOULD be cool. :-)

Although I have a feeling it would require a complete rewrite, and it would require a similar group of commands as Alpha Mask. (Image, save, load, etc.)

Share this post


Link to post
Share on other sites

Following the DOF topic here it is

I've worked with it and it's really good, I just wanted to make a suggestion: could the gradient come in various layouts like the :GradientTool: diamond, diagonal, horizontal, vertical, horizontal line, etc...

for DOF the horizontal centered line would be the best.

Share this post


Link to post
Share on other sites

I'm working on square instead circle, and I want to use the width/height of the image to allow ellispe/rectangle...(see previous posts)

I'll see about Horizontal/Vertical...

Share this post


Link to post
Share on other sites

Just been playing with this and I noticed that the centering system is based on the full image even if you only have a small area selected.

I did have a thought though but it's probably miles out. Couldn't this work by the user selecting the area to start the blur from and then blur from the edge of the selection outwards based upon the blur distance specified by the user?

Share this post


Link to post
Share on other sites
Just been playing with this and I noticed that the centering system is based on the full image even if you only have a small area selected.

That's the way it is working actually...or I miss your point. Try the two check boxes :distance mode & show guide lines to help you.

I did have a thought though but it's probably miles out. Couldn't this work by the user selecting the area to start the blur from and then blur from the edge of the selection outwards based upon the blur distance specified by the user?
I'm calculating the distance from the center to define the blur amount. It is then more 'natural' to me to set the distance from the center...The other way (from the edge) will be to difficult to implemant!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this