Sign in to follow this  
HorridoJoho

DirectionalBlur Plugin

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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).

Share this post


Link to post
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

Share this post


Link to post
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

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