Jump to content
How to Install Plugins ×

DirectionalBlur Plugin


HorridoJoho

Recommended Posts

Hello,
 
this is my first plugin for PDN. Although it is my first plugin, i would like to share it with thoose who want to use it.
 
In the first place, this plugin was just intended for me to get familar with PDN plugin development. But after i noticed that my plugin can archive the exactly same effect than the buildin "Motion Blur" effect, while also beeing 6x faster than the buildin effect, i decided to share it.
 

Hidden Content: Description
This plugin applies a directional blur to the current layer.

Hidden Content: License
Copyright © 2014 Christian Buck
https://github.com/HorridoJoho/PaintDotNetPlugins

This software is provided 'as-is', without any express or implied warranty. In
no event will the authors be held liable for any damages arising from the use
of this software.

Paint.NET is an image editing software. The original Paint.NET software can be
found at http://www.getpaint.net/. The license and copyright holders can be
found at http://www.getpaint.net/license.html.

1. Permission is granted to anyone to use this software in any environment,
including but not necessarily limited to: personal, academic, commercial,
government, business, non-profit, and for-profit, but only together with
the original Paint.NET software.

2. Permission is granted to anyone to alter the sourcecode of this software
and redistribute the sourcecode of this software, altered and unaltered, for
free. "Free" in the preceding sentence means that there is no cost or charge
associated with getting the sourcecode of this software.

3. Permission to distribute binary forms of this software, altered and
unaltered, is only granted to the copyright holders of Paint.NET.

4. This notice may not be removed or altered from any source distribution.
Hidden Content: Globalization
  • Fallback Language: English
  • Globalizations
    • German (Deutsch)

Hidden Content: Motion Blur Comparisons

 

Sourcecode on github: https://github.com/HorridoJoho/PaintDotNetPlugins
 
Works with PDN 3.5.11 & PDN 4 Alpha.

DirectionalBlur_master_f2e721ec5ec4a7b2a89cf1faf3e952d13c3e4668.zip

Edited by HorridoJoho
Link to comment
Share on other sites

This...is surprisingly fun to play with!

I'm not a programmer myself, so I don't know how to do this, but it would be nice if this was placed under the blur menu.

Also, all the directions seem to be off by 90 degrees

No, Paint.NET is not spyware...but, installing it is an IQ test. ~BoltBait

Blend modes are like the filling in your sandwich. It's the filling that can change your experience of the sandwich. ~Ego Eram Reputo

Link to comment
Share on other sites

Hello HorridoJoho,

I have installed directional blur but cannot find it from the menus within Pdn.

It seems Pdnnoob and Welshblue have found it ok, so I presume this only works with Pdn 4 alpha ?
(I am using Pdn v3.5.11)
- or am I just looking in the wrong place - (I've double checked all effect & adjustment menus).

Which .NET Framework are you targetting? (if it is 4, then that would explain it. Pdn3.5.11 uses .NET 3.5).
 

  • Upvote 1

 

Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings

 

PdnForumSig2.jpg

Link to comment
Share on other sites

It can only be used with Pdn 4. alpha then.

Does the plugin need something particular in .Net framework 4.5 that isn't in 3.5? - If not, you could change it to use .Net 3.5 ...then it should work for both Pdn 3.5.11 and the 4alpha.

 

Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings

 

PdnForumSig2.jpg

Link to comment
Share on other sites

I added a note about the compatibility issue to the original post.  HorridoJoho, If you recompile it for 3.5.11, just delete that line.  :-)

  • Upvote 1

 

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.

Link to comment
Share on other sites

So when targeting .NET 3.5 it tells me it can't resolve the Paint.NET assemblies because they are build with .NET 4.0 which is a higher version.

 

I just have to reference the 3.x libraries and then it alo runs under 4 alpha?

Link to comment
Share on other sites

So when targeting .NET 3.5 it tells me it can't resolve the Paint.NET assemblies because they are build with .NET 4.0 which is a higher version.

 

I just have to reference the 3.x libraries and then it alo runs under 4 alpha?

 

That is correct.

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
Share on other sites

Updated:

Linked against the Paint.NET 3.5.11 libraries.

Compiled with .NET Framework 3.5 as target.

 

Now it works with PDN 3.5.11 & PDN 4 Alpha.

Edited by HorridoJoho
  • Upvote 1
Link to comment
Share on other sites

Thank you for updating and making it useable for 3.5.11. :)

Interesting effect - good work!
(perhaps you have the sign of the angle or Sine and Cosine the wrong way round somewhere as the angle chooser doesn't agree with the blur direction - still very useable though).

 

Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings

 

PdnForumSig2.jpg

Link to comment
Share on other sites

Upated:

Reduced the amount of blur controls to 4.

Removed hardcoded angle offset.

Added an angle offset control to the config ui.

Link to comment
Share on other sites

Updated:

Fixed a bug where the wrong ui culture was used in OnSetRenderInfo which led to a NullPointerException.

Included .pdb to get meaningfull output when the plugin crashes.

Edited by HorridoJoho
Link to comment
Share on other sites

  • 2 weeks later...

Users unfamiliar with *.pdb files might like to know where they should place that file.  In the same location as the *.dll?

Link to comment
Share on other sites

Users unfamiliar with *.pdb files might like to know where they should place that file.  In the same location as the *.dll?

Yes.

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
Share on other sites

The contents of the archive directly into the effects folder.

 

Effects/de/DirectionalBlur.resources.dll

Effects/DirectionalBlur.dll

Effects/DirectionalBlur.pdb

 

When the .PDB file is included, and an exception is thrown out of my code,

the error dialog box will show proper souce file and source line which can be reported.

Edited by HorridoJoho
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...