HorridoJoho Posted January 13, 2014 Share Posted January 13, 2014 (edited) 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 Buckhttps://github.com/HorridoJoho/PaintDotNetPluginsThis software is provided 'as-is', without any express or implied warranty. Inno event will the authors be held liable for any damages arising from the useof this software.Paint.NET is an image editing software. The original Paint.NET software can befound at http://www.getpaint.net/. The license and copyright holders can befound 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 withthe original Paint.NET software.2. Permission is granted to anyone to alter the sourcecode of this softwareand redistribute the sourcecode of this software, altered and unaltered, forfree. "Free" in the preceding sentence means that there is no cost or chargeassociated with getting the sourcecode of this software.3. Permission to distribute binary forms of this software, altered andunaltered, 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 GlobalizationsGerman (Deutsch) Hidden Content: Motion Blur Comparisons Single side motion blurhttp://pasteboard.co/2Ju8QodF.png http://pasteboard.co/2JubfYaS.png Double side motion blurhttp://pasteboard.co/2JhZWkXl.png http://pasteboard.co/2JhUIA3C.png Sourcecode on github: https://github.com/HorridoJoho/PaintDotNetPlugins Works with PDN 3.5.11 & PDN 4 Alpha. DirectionalBlur_master_f2e721ec5ec4a7b2a89cf1faf3e952d13c3e4668.zip Edited February 10, 2014 by HorridoJoho Quote Link to comment Share on other sites More sharing options...
pdnnoob Posted January 13, 2014 Share Posted January 13, 2014 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 Quote 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 More sharing options...
Red ochre Posted January 14, 2014 Share Posted January 14, 2014 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). 1 Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
HorridoJoho Posted January 14, 2014 Author Share Posted January 14, 2014 I have the project targeting .Net Framework 4.5. Quote Link to comment Share on other sites More sharing options...
Red ochre Posted January 14, 2014 Share Posted January 14, 2014 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. Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
david.atwell Posted January 14, 2014 Share Posted January 14, 2014 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. :-) 1 Quote 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 More sharing options...
HorridoJoho Posted January 14, 2014 Author Share Posted January 14, 2014 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? Quote Link to comment Share on other sites More sharing options...
null54 Posted January 15, 2014 Share Posted January 15, 2014 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. Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint 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 More sharing options...
HorridoJoho Posted January 15, 2014 Author Share Posted January 15, 2014 (edited) 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 January 15, 2014 by HorridoJoho 1 Quote Link to comment Share on other sites More sharing options...
HorridoJoho Posted January 15, 2014 Author Share Posted January 15, 2014 Update: Now the plugin is shown under the "Blur" submenu. Quote Link to comment Share on other sites More sharing options...
Red ochre Posted January 15, 2014 Share Posted January 15, 2014 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). Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
HorridoJoho Posted January 15, 2014 Author Share Posted January 15, 2014 Upated: Reduced the amount of blur controls to 4. Removed hardcoded angle offset. Added an angle offset control to the config ui. Quote Link to comment Share on other sites More sharing options...
HorridoJoho Posted January 16, 2014 Author Share Posted January 16, 2014 (edited) 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 January 16, 2014 by HorridoJoho Quote Link to comment Share on other sites More sharing options...
HorridoJoho Posted January 29, 2014 Author Share Posted January 29, 2014 Updated: Added license. Added link to sourcecode repository on github. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted February 1, 2014 Share Posted February 1, 2014 Users unfamiliar with *.pdb files might like to know where they should place that file. In the same location as the *.dll? Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
null54 Posted February 1, 2014 Share Posted February 1, 2014 Users unfamiliar with *.pdb files might like to know where they should place that file. In the same location as the *.dll? Yes. Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint 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 More sharing options...
HorridoJoho Posted February 1, 2014 Author Share Posted February 1, 2014 (edited) 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 February 1, 2014 by HorridoJoho Quote Link to comment Share on other sites More sharing options...
HorridoJoho Posted February 10, 2014 Author Share Posted February 10, 2014 Updated:Improved handling of pixels with an alpha value of 0. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.