MadJik

Donut distortion Effect Plugin

Recommended Posts

MadJik    155

Donut distortion Effect Plugin

 

 

What's this?

It would be more handy if I can find some good math skills to help me with sinus & co. formulas. Don't hesitate to PM if you like to solve my problem!

I'm not really happy with this distortion effect as I've not find the correct formula to apply what I had in mind.

But for now it gives some good results enough to be published.

 

 

How does it works?

The initial idea was to distort the image by a rotation between 2 circles and so create something like a Donut aspect. This is to illustrate the idea:

Donut_Settings.png

The red Arc should be the distortion of the green segment.

The result for now is just a distortion between 2 circles... and I named it the Donut effect!

 

Before:

rays.jpg

After:

rays1.jpg

 

I've found 4 modes of distortions:

Donut_Modes.png

 

This is a test of the modes on lightrays:

Donut_Modes2.png

 

 

Download the DLL

Plugin Donut.dll

ar.pngHere is the DLLal.png

 

The MadJik's All plugins package is available !

http://forums.getpaint.net/index.php?showtopic=7186

 

 

How to install?

Close Paint.net

Unzip and place the DLL in your Effect folder usually: C:/Program Files/Paint.NET/Effects

 

 

The User interface

This plugin is added to the menu Effects, submenu Distort.

Donut_UI.png

 

External radius (0,1000, dft 300)

Set the size of the donut by choosing its radius.

Internal radius (0,1000, dft 100)

Set the size of the hole of the donut.

Unit (checkbox, dft unchecked)

unchecked: External and internal raduis values are in pixels

checked: The values are in 1/1000 based on the smallest size of the selection.

- ex: for a 800x600 image, 1000 represents the full raduis of 600 = 300px

This is usefull to redo the effect over the image with a small selection here and there:

wooden.gif

 

Distortion angle (-360,+360, dft 10)

This value is issued to set the "strength" of the distortion.

Quality

Increasing the quality is slowering the rendering a bit, and should reduce the pixelisation.

Effect Mix

This is a slider to mix the final image with the orignal image to make the effect more or less subtile.

Mode

Choose the distortion mode (Soft, medium, hard, distroy).

 

New (yma: 170716)

- Erase background

- Offset vector

 

 

Some examples:

Donut11.jpg  Donut12.jpg

 

Donut21.jpg  Donut22.jpg

 

Donut31.jpg  Donut32.jpg

Edited by MadJik
New update, refresh UI and rehosted/more images
  • Upvote 1

Share this post


Link to post
Share on other sites

This is an interesting idea. However, I think this effect can be used similar to Twist plug-in (there's two, one of them by pyrochild), and I could achieve similar effect using pyrochild's liquifying plug-in. I'm not knocking your effort. It seem there's more option in this one than with Twist.

Share this post


Link to post
Share on other sites

Hello,

i really loved your plugin , very cool results, Nice concept and design .. good job there ! keep it up.any way , i tried to do some tricks with this plugin + my Lines Fractal plugin , look what i got ! 784033588.png

by rendering Lines Fractal 2 times each on a layer, Then flipping one of them horizontally , then applying Donut to them several times.

Thanks for your effort :)

Ahmed

Share this post


Link to post
Share on other sites
delpart    15

Missed this is my sweeps. I can see the distinction clearly Madjik.

Especially in the distinction it will leave the center of the zone un affected which requires masking with swirl and is harder to control. Single pass approach. Overlapping this effect, as you've demonstrated lends a far more complex distortion than simple swirls and it avoid the hard center point that will occur from that approach.

Because of the matching distortion similar to Ripples, etc. it may even be nice to see a highlight added to this one. (Cursory overview request/suggestion and I've not seen the code to know if this is possible or not with this implementation.)

Thanks again Madjik for another wonderful tool in the arsenal. (Or first thanks in writing. Tons of thanks in my head while using PDN so far ... :mrgreen: )

Example of overlapping distortions that I was seeing before downloading. Only other thing that came from this was that I had to use a selection box/bounding box approach to position the distortion. Would love to have the positional box included (not sure that that thing is called in the interface programming.)

th_donuttest.png

And another example of what you absolutely cannot do with just swirling:

th_donut_not_swirl.png

Edited by delpart

Share this post


Link to post
Share on other sites
MadJik    155
...it may even be nice to see a highlight added to this one.
Could you tell me more about this ?
Would love to have the positional box included (not sure that that thing is called in the interface programming.)
You just called it: interface! No chance for me to create such interface like for liquify or custom brushes. And this plugin isn't enough popular (due to its similarity) to spend too much effort on it.
  • Upvote 2

Share this post


Link to post
Share on other sites
delpart    15

I knew I should have played with it more before posting that. =O And thought of learning a few part names and screen-shot examples. Here's some screen shots of the controls I was thinking of.

Could you tell me more about this ?

Ripple and drop ripple both have this highlight function. It can be used to create gradient effects and not just as a distortion. A similar approach could be applied to this plugin with that feature.

Obviously here I may be lacking the knowledge of how these other distorts function, but the use of highlight in both of them will change the outcome. Sometimes dramatically.

Brief example of drop ripple on a white canvas using the highlight to create the pattern and a gradient with no highlight showing the distortion it is creating. Also note the centering/positional control in the interface as that's what I was thinking the Donut needed.

th_ripple_example.jpg

And the function pointed out (since I made this screenshot might as well use it):

th_highlight_function.jpg

You just called it: interface! No chance for me to create such interface like for liquefy or custom brushes. And this plugin isn't enough popular (due to its similarity) to spend too much effort on it.

Sorry for the confusion here. While that would be wonderful to see a liquefy-like interface, I was just thinking of this control:

th_POSITION_CONTROL-1.jpg

I hope that helps explain my ramblings. Thanks again Madjik and I'm not wishing to demand those changes. Just my feedback from a user's point of view.

Edited by delpart

Share this post


Link to post
Share on other sites
MadJik    155

The highlight is like a shadow or a light that could give some kind of volume aspect. I'll give it a try...

The offset control isn't too difficult to add but I think it isn't suitable for this effect as you should use the selection area for that. Maybe...

Your suggestions are good ideas. Thanks a lot for them!

Share this post


Link to post
Share on other sites
yellowman    205

Thanks Madjik for the nice plugin, the Effect Mix feature is not functioning well with me, this happens only on transparent layer (shape/object on a 100% transparent layer) the orginal shape stays there, not sure how to get rid of it.

Thanks

Share this post


Link to post
Share on other sites
MadJik    155
On ‎04‎/‎01‎/‎2013 at 9:13 AM, yellowman said:

Thanks Madjik for the nice plugin, the Effect Mix feature is not functioning well with me, this happens only on transparent layer (shape/object on a 100% transparent layer) the orginal shape stays there, not sure how to get rid of it.

Thanks

You could fill the layer with a white color and use blend mode or

use a transparent background not at 0 but at 1... Full transparancy is not handled.

 

 

Share this post


Link to post
Share on other sites
MadJik    155

New update (yma: 170716)

- Erase background

- Offset vector

 

Original pizza image from Photos Libres

 

Donut51.jpg  Donut52.png

Humm DONZZA

Shadow added after

 

 

Donut41.jpg  Donut42.jpg

  • Upvote 3

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