Doker Posted October 2, 2005 Share Posted October 2, 2005 Photoshop-like radial blur or caleidoscope if differently configurated. http://doker.toya.net.pl/Blurs.dll Tell what you think. See also my VB.net Plugin Scripting Studio which helped very much in creating the radial blur effect. http://doker.toya.net.pl/VBPaintEffect.zip Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 2, 2005 Share Posted October 2, 2005 This looks pretty sweet, I was playing with it for a bit. Here's some feedback: 1. You should not have a "Preview" checkbox. This should always be enabled -- in Paint.NET things always have a preview. 2. The Apply button should be labeled "OK" instead. 3. The dialog does not populate its values correctly the 2nd time. Paint.NET loads in the values used the last time the effect executed. It looks like the values don't update until you modify one of them and even then the sliders are at the wrong position. 4. The quality slider may be unnecessary. In Paint.NET we always render at highest quality (except when it's prohibitive). Tom is supposed to write a radial blur for v2.5 but he's been really busy, so it's still up in the air whether that'll even happen for this release. I'll have to nag him. The quality of the rendering looks good, although the performance could use some work. Looks like you're probably partially bottlenecked on Surface.GetBilinearSample though (yeah, I peeked with ILDASM). Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Doker Posted October 2, 2005 Author Share Posted October 2, 2005 Update and new effect included : The Warp Blur http://doker.toya.net.pl/Blurs.dll I'll try to adapt to your 'requirements'. And I also have some considerations... like for ex. the the EffectSourceSurface is still not accessable in initdialogfromtoken and inittoken methods what made me to hack a little bit (Form visiblity state change). The Quality slider works a bit differently the the max steps. Check it and it's not "render render" quality but algorithm render quality. I used the Bilinear cos it has Wraps option which made my life easier. And the plugin is so slow due to extreme use of trigonometric functions: two for every sample made to blur the pixel. ex =30 samples per pixer * 600 pixels per line * 400 lines * powerof {cos, sin, asin} Speaking of the dialog not setting up form the token, i'll check what i did wrong. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 3, 2005 Share Posted October 3, 2005 It doesn't seem to work right anymore -- whenever you change a value in the UI, the token is not being updated. Since the token is not updated, you're pretty much stuck with whatever the default values are. Also, why do you require access to EffectSourceSurface inside of those methods? Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Doker Posted October 3, 2005 Author Share Posted October 3, 2005 See the Warp Plugin. There's a Position Centering Control where you can choose the center of the warp. It needs to know the layer size to get the Width to Haight ratio to draw correctly. Yes. It doesn't work. Give me a moment cos when you have your best Internet surfing hours i have a middle of the night ( +6 hours) Il it something, go to see my doctor ( i cough awfully) and sand You the correct version. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 3, 2005 Share Posted October 3, 2005 Makes sense, I suspected it was something like that. I'll look into it. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Doker Posted October 3, 2005 Author Share Posted October 3, 2005 OK. New, working and faster(You were right - bilinear decreased performance a lot) version is available at http://doker.toya.net.pl/Blurs.dll Have fun while testing. Quote Link to comment Share on other sites More sharing options...
Doker Posted October 3, 2005 Author Share Posted October 3, 2005 And by the way. I find the blinding mode pick poor. Do you need help with finding out more blending algorithms? I really miss Overlay which (i think) would be Multiply & Additive combined Light which would be (?) Darken & Lighten, and especially Color, Hue and Luminosity(Brightness)...also Saturation would be interesting. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 9, 2005 Share Posted October 9, 2005 Quick note regarding the EffectSourceSurface access during the constructor: it is available during OnLoad, which should be just fine. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Crazy Man Dan Posted October 10, 2005 Share Posted October 10, 2005 So, where would I place this dll? I have put it in the Effects folder, but when Paint.NET is started, it cannot open the dll properly, stating that it may be corrupt or in need of re-compiling. Is this dll compatible with version 2.5 Beta? (That could be my problem...) Quote I am not a mechanism, I am part of the resistance; I am an organism, an animal, a creature, I am a beast. ~ Becoming the Archetype Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 10, 2005 Share Posted October 10, 2005 Things probably changed in Beta 3 that made it incompatible. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Doker Posted October 14, 2005 Author Share Posted October 14, 2005 I've rebuilt it with new version of paint.net now it works. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 14, 2005 Share Posted October 14, 2005 As an FYI, we're actually planning on having a Radial and Zoom blur in our v2.5 release. It's something we've been planning on for awhile, and Tom is finishing up the implementation over the next week or so. It's a different type of implementation, however (no quality configuration, for one). Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Crazy Man Dan Posted October 14, 2005 Share Posted October 14, 2005 I've rebuilt it with new version of paint.netnow it works. Yup. Works great. All in all, a top-notch plug-in. I did notice a small misspelling in the Warp Blur dialogue: "Strenght" should be "Strength." But that's just nitpicking. It doesn't affect the functionality at all, but you may want to fix it for the next version. Quote I am not a mechanism, I am part of the resistance; I am an organism, an animal, a creature, I am a beast. ~ Becoming the Archetype Link to comment Share on other sites More sharing options...
Doker Posted October 15, 2005 Author Share Posted October 15, 2005 thanks Crazy Man Dan. Btw: comparing to previous version Wrap Disable/Enable have been added. Quote Link to comment Share on other sites More sharing options...
Crazy Man Dan Posted October 17, 2005 Share Posted October 17, 2005 Drat! Something must have changed again for Beta4, because it doesn't load again... Oh well. There's little point in reconfiguring a plug-in to coincide with each new development release. I'll be waiting until 2.5 Final! Quote I am not a mechanism, I am part of the resistance; I am an organism, an animal, a creature, I am a beast. ~ Becoming the Archetype Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 17, 2005 Share Posted October 17, 2005 Hey Dan, it's because of our "strong naming" that we've put in to place for the latest releases. Luckily there's a workaround, and we're considering putting this in to place for our final release; otherwise versioning becomes a real pain. Create a text file (with Notepad) called PaintDotNet.exe.config in your installation directory (C:\Program Files\Paint.NET) and put the following in to it: publicKeyToken="85cad16301864386" culture="neutral" /> newVersion="2.5.2115.35517" /> publicKeyToken="85cad16301864386" culture="neutral" /> newVersion="2.5.2115.35517" /> You'll have to update the "newVersion" tags for each new release of Paint.NET. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Crazy Man Dan Posted October 17, 2005 Share Posted October 17, 2005 Hey, it worked! I do have a question, though. In the supplied text, newVersion is declared as "2.5.2115.35517". However, in the Help -> About screen, the version number is "2.5.2115.35521". When I change newVersion in the config file to 2.5.2115.35521, I get an error calling PdnLib.dll on Start up. So I checked, and the PdnLib.dll version number is 2.5.2115.35517. Is the PdnLib version number the one that needs to be specified in the newVersion declaration, not of the build number of the release? I just want to make sure for future development releases that I'm putting in the right numbers... Thanks for the help! Dan Quote I am not a mechanism, I am part of the resistance; I am an organism, an animal, a creature, I am a beast. ~ Becoming the Archetype Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 17, 2005 Share Posted October 17, 2005 Each DLL may have its own version number, so you have to specify the actual version number of the DLL in question. Paint.NET presents its version number to the user as the one that PaintDotNet.exe is tagged with. The reason each DLL might have a different version number is quite simple, really. The "C" number in the A.B.C.D sequence is the number of days since January 1, 2000 (currently 2115). The fourth number is the number of seconds since midnight on the current day, divided by 2. Since Paint.NET takes about a minute to build, it's only natural that the "D" part of the version number could be slightly different for each DLL. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Doker Posted October 17, 2005 Author Share Posted October 17, 2005 Yes it worked but the funny thing is that it was opening your paintnet radial blur not mine so i changed the name (and add center point control, btw) and it works now. I one wants to have smooth radial blur, he/she may reduce quality but do some normal bluring after. Quote Link to comment Share on other sites More sharing options...
Crazy Man Dan Posted October 17, 2005 Share Posted October 17, 2005 Actually, for me, first the Paint.NET radial blur is opened, then after that is applied, yours opens. If I cancel the first window, yours does not open. I thought something looked different when I opened Radial Blur yesterday... Quote I am not a mechanism, I am part of the resistance; I am an organism, an animal, a creature, I am a beast. ~ Becoming the Archetype Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 17, 2005 Share Posted October 17, 2005 Ha We've got a Radial Blur on the way, but I didn't feel that it was quite ready for primetime yet (mostly because Tom is rewriting it in various ways). So I "hid" it for the Beta 4 release, and now it is making things interesting for Doker's plugin. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Doker Posted October 18, 2005 Author Share Posted October 18, 2005 download the plugin again, please! I always put upgrades in the same place. http://doker.toya.net.pl/Blurs.dll Quote Link to comment Share on other sites More sharing options...
Doker Posted October 23, 2005 Author Share Posted October 23, 2005 it wont work it says its corropted I can't agree. It works with 2.5 beta 4 correctly. Quote Link to comment Share on other sites More sharing options...
Crazy Man Dan Posted October 23, 2005 Share Posted October 23, 2005 It works just fine for me (2.5 Beta4). With what version are you having the problem? Quote I am not a mechanism, I am part of the resistance; I am an organism, an animal, a creature, I am a beast. ~ Becoming the Archetype 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.