Jump to content

New Plugin


Doker

What you think?  

10 members have voted

  1. 1. What you think?

    • May be useful
      9
    • interesting but middling useful
      1
    • Stupid not useful at all
      0
    • I can do that in 5 minutes
      0


Recommended Posts

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).

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Update and new effect included : The Warp Blur

7.jpg

8.jpg

9.jpg

10.jpg

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.

Link to comment
Share on other sites

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?

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...)

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

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).

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

I've rebuilt it with new version of paint.net

now 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.

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

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!

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

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.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

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

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

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.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

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

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.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

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...