Jump to content


Photo

Gradient versus gaussian blur


  • This topic is locked This topic is locked
22 replies to this topic

#1 bugman

bugman
  • Newbies
  • 4 posts
  • Reputation:0

Posted 25 April 2012 - 07:36 PM

Hi

I am wondering why the gradients that paint.net generate look so dull, and i've experimented with creating the gradient by just filling two colors and then applying gaussian blur. Is there a reason why the gradient looks dull? and is there already a tool for creating a gradient like a gaussian blur provides?

it looks like the gradient tool creates a lot of "in between" color, in my example gray.

I've attached an example. The gadient is on the left, gaussian blur on the right.

Attached Thumbnails

  • Gaussian gradient.png


#2 Ego Eram Reputo

Ego Eram Reputo

    Master of Competition Ideas and 2012 Proton Award Winner

  • Moderators
  • 5,613 posts
  • LocationNorth Canterbury, New Zealand
  • Reputation:217

Posted 26 April 2012 - 12:23 AM

I'm thinking that your gradient is stretched out more than the blur (which blurs the border between the two colors).

Try the gradient again and this time don't drag the start/finish nubs so far. Keep them more central.

#3 bugman

bugman
  • Newbies
  • 4 posts
  • Reputation:0

Posted 26 April 2012 - 07:51 AM

I'm thinking that your gradient is stretched out more than the blur (which blurs the border between the two colors).

Try the gradient again and this time don't drag the start/finish nubs so far. Keep them more central.


This is not the issue at hand. If you try to edit the image you can see that the colors change throughout the height of the image in both cases.
What I think is the explanation is that the gaussian blur formula does not blend linear, and the gradient does

Now i'm just wondering if it wouldn't be a nice option to have when making gradients that you can select linear or gaussian blending? or is it just me that thinks that the gaussian blur looks much better?

#4 Ego Eram Reputo

Ego Eram Reputo

    Master of Competition Ideas and 2012 Proton Award Winner

  • Moderators
  • 5,613 posts
  • LocationNorth Canterbury, New Zealand
  • Reputation:217

Posted 26 April 2012 - 08:10 AM

I'm still convinced that it's to do with the length of the gradient vs the blur.

#5 bugman

bugman
  • Newbies
  • 4 posts
  • Reputation:0

Posted 26 April 2012 - 08:53 AM

I'm still convinced that it's to do with the length of the gradient vs the blur.


You can use the PDN color picker with 0 tolerance on the image i've attached. It's pretty clear that the color changes throughout the image height in both cases.

#6 Rick Brewster

Rick Brewster

    Paint.NET Author and Developer

  • Administrators
  • 12,554 posts
  • LocationKirkland, WA
  • Reputation:120

Posted 26 April 2012 - 05:24 PM

Onoz, the gradients look so dull. Onoz indeed, whatever shall we do. *something about the British drinking tea and saying onoz, I don't know why but it sounds funny*

Try something like this out: draw the gradient it on its own layer and use something like Brightness/Contrast or Curves to adjust the effective gamma ramp.

Gradients are drawn with a linear ramp, like you mentioned.
The Paint.NET Blog: http://blog.getpaint.net/
Donations are always appreciated! http://www.getpaint.net/donate.html

Posted Image

#7 BoltBait

BoltBait
  • Administrators
  • 8,906 posts
  • LocationCalifornia, USA
  • Reputation:103

Posted 27 April 2012 - 12:57 AM

bugman, will this do?

http://forums.getpai...radient-plugin/

Let me know.
Click to play:
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Download: BoltBait's Plugin Pack | CodeLab | More... and how about a Computer Dominos Game

#8 bugman

bugman
  • Newbies
  • 4 posts
  • Reputation:0

Posted 27 April 2012 - 07:49 AM

bugman, will this do?

http://forums.getpai...radient-plugin/

Let me know.


Wow. That's really nice. Just what I had in mind. Thanks a lot, I hope it will be useful to other people too. I think it would be a great addition to the standard gradient tool.

#9 Rick Brewster

Rick Brewster

    Paint.NET Author and Developer

  • Administrators
  • 12,554 posts
  • LocationKirkland, WA
  • Reputation:120

Posted 27 April 2012 - 05:25 PM

BTW I am considering some additional Gradient tool options for a post-4.0 release. Choosing the "gamma ramp" method (linear, quadratic, ...) is among the properties I'm considering. (The code is easy, but I gotta make sure the toolbar doesn't overflow.)
The Paint.NET Blog: http://blog.getpaint.net/
Donations are always appreciated! http://www.getpaint.net/donate.html

Posted Image

#10 minners71

minners71
  • Competition Hosts
  • 687 posts
  • LocationWanganui - New Zealand
  • Reputation:38

Posted 27 April 2012 - 09:32 PM

Onoz, the gradients look so dull. Onoz indeed, whatever shall we do. *something about the British drinking tea and saying onoz, I don't know why but it sounds funny*

Try something like this out: draw the gradient it on its own layer and use something like Brightness/Contrast or Curves to adjust the effective gamma ramp.

Gradients are drawn with a linear ramp, like you mentioned.


I'm british and have never said onoz while drinking tea :(

blkwhtline_zps1c36cef6.png


#11 welshblue

welshblue

    King of Paint.NET for 2012

  • Competition Hosts
  • 4,233 posts
  • Reputation:202

Posted 27 April 2012 - 10:02 PM

I'm british and have never said onoz while drinking tea :(


Me neither.

Posted Image


Gallery



4 April



#12 BoltBait

BoltBait
  • Administrators
  • 8,906 posts
  • LocationCalifornia, USA
  • Reputation:103

Posted 27 April 2012 - 10:24 PM

Maybe you should try it.
Click to play:
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Download: BoltBait's Plugin Pack | CodeLab | More... and how about a Computer Dominos Game

#13 welshblue

welshblue

    King of Paint.NET for 2012

  • Competition Hosts
  • 4,233 posts
  • Reputation:202

Posted 27 April 2012 - 10:36 PM

I'll give it a miss. Onoz sounds like an indigestion remedy ...

Posted Image


Gallery



4 April



#14 barbieq25

barbieq25
  • Members
  • 4,244 posts
  • LocationQueensland, Australia
  • Reputation:101

Posted 27 April 2012 - 11:17 PM

Me neither.


Is British not same as Ingerlish? Not being a smarty here just wondering.

Never heard of the whole thing but them I'm from the land down under... :Tutorials:

Sig2.png


Knowledge is no burden to carry.

 

April Jones, 2012

 

Gallery

My DA Gallery


#15 Ego Eram Reputo

Ego Eram Reputo

    Master of Competition Ideas and 2012 Proton Award Winner

  • Moderators
  • 5,613 posts
  • LocationNorth Canterbury, New Zealand
  • Reputation:217

Posted 28 April 2012 - 05:47 AM

... I'm from the land down under... :Tutorials:


..where the beer does flow and men chunder. Can you hear, can you hear the thunder? You better run, you better take cover. (Men at Work) :lol:

#16 barbieq25

barbieq25
  • Members
  • 4,244 posts
  • LocationQueensland, Australia
  • Reputation:101

Posted 28 April 2012 - 06:35 AM

..where the beer does flow and men chunder. Can you hear, can you hear the thunder? You better run, you better take cover. (Men at Work) :lol:


Ah, looks like chunder must be universal. I'll hand you a vegemite sandwich ;)

Sig2.png


Knowledge is no burden to carry.

 

April Jones, 2012

 

Gallery

My DA Gallery


#17 welshblue

welshblue

    King of Paint.NET for 2012

  • Competition Hosts
  • 4,233 posts
  • Reputation:202

Posted 29 April 2012 - 10:01 AM

Is British not same as Ingerlish?


Britain is the collective name for Wales, Scotland, Northern Ireland and Ingerland ... although most people describe themselves as from the country of birth not as being British.

Edited by welshblue, 29 April 2012 - 10:06 AM.

Posted Image


Gallery



4 April



#18 Djisves

Djisves
  • Members
  • 148 posts
  • LocationCyprus
  • Reputation:4

Posted 29 April 2012 - 11:46 AM

I was under the impression that Britain (however great or little) is the island east of Ireland.
The "collective name for Wales, Scotland, Northern Ireland and Ingerland" is the UK. Hence the official name: The United Kingdom of Great Britain and Northern Ireland.

No signature image good enough for this forum


#19 Rick Brewster

Rick Brewster

    Paint.NET Author and Developer

  • Administrators
  • 12,554 posts
  • LocationKirkland, WA
  • Reputation:120

Posted 29 April 2012 - 09:20 PM

Ok I see to have derailed this thread. Sorry about that :)

Onoz is the plural form of "oh no," and is tongue-in-cheek. It's not actually British.
The Paint.NET Blog: http://blog.getpaint.net/
Donations are always appreciated! http://www.getpaint.net/donate.html

Posted Image

#20 minners71

minners71
  • Competition Hosts
  • 687 posts
  • LocationWanganui - New Zealand
  • Reputation:38

Posted 29 April 2012 - 09:23 PM

^ Ban him !..................................................................................................jk

I am in fact Ingerlish not British ;)

blkwhtline_zps1c36cef6.png