Jump to content
How to Install Plugins ×
Paint.NET 5.1 is now available! ×

Recommended Posts

Posted

I appreciate your customer service :-)

You could just copy the 3.5.11 libs and exe and reference them. In this case the target project must be .NET 3.5.

There is no special need to build on a different computer.

midoras signature.gif

  • 1 month later...
Posted

I made a photo manip using the old version of this plugin and I think I have the old one figured out pretty good.  The new version looks a lot different and closer to the "Quadrilateral Reshape" plug in than the old version of "Distort This" and I am afraid I may not be able to do some of the things with the new version that I can with the old. Will the new overwrite the old or should I rename the old one first if possible? I am not sure if I should keep both or not. How much different are they? 

 

This is the original pic I used;     th_pumpkins-foster-city-oracle-buildings

 

 

And with the old version of "Distort This" and a few more plugins,I made this;   th_216-c_zps7b7ddfc0.png

 

                                                              http://forums.getpaint.net/index.php?/topic/21233-skullbonz-art-gallery

Posted

fear not, the algorithm is the same algorithm, the results will be the same.

 

Sometimes Code Lab (God bless it) only takes you so far. I just incorporated the four controls into one. I also added single pixel nudging,  I also incorporated a Busy indicator so you know when it's done. 

 

Yes it overwrites the old one, but I wouldn't worry. 

 

Ominous graphics by the way.  Makes me think of Rush 2112 for some reason.

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Posted (edited)

I downloaded it,it replaced the old,I can't do the things I used to be able to. It's the same but different,lol.

 

I should have kept the old,lol.

 

 

i thought,Hey I still have the old one in downloads and I'll just rename and put it in effects.  Wrong,,, It overwrote that too,lol. Oh well this one is cool but I loved the old one.  ;)

Edited by skullbonz

 

                                                              http://forums.getpaint.net/index.php?/topic/21233-skullbonz-art-gallery

Posted (edited)

Hmmm. I'm curious as to what you can't do. I want to let you do what you want to do. This system should let you do everything and more since you can align to the pixel, but if there's something that has been taken away let me know so I can correct it.

 

Can you site some specifics and i'll do my best.

 

Here is a copy of V2.2.  you can run them concurrently

 

DistortThis2_2.zip

Edited by TechnoRobbo

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Posted (edited)

Skull,

 

Here's V 2.5.2 update - after I looked over the code I decided I can make it render faster. It will still run concurrently with 2.2.

 

see original post for file.

 

http://forums.getpaint.net/index.php?/topic/26672-trs-distort-this-plugin-v252-dec-24-2013/?p=393261

Edited by TechnoRobbo

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Posted (edited)

This is the one I had;          http://www.youtube.com/watch?v=cNFHjSDoL0o#t=15

 

 

 

The new one acts more like the Quadrilateral Reshape but with a fancier control which is real nice if that is what you want to do. The old one did not change where the corners of the image were,just parts of the image. I could do some cool things with that in like the image I posted above or in my space nebulae in my gallery.

Edited by skullbonz

 

                                                              http://forums.getpaint.net/index.php?/topic/21233-skullbonz-art-gallery

Posted (edited)

should look like this 

 

Like%20this.png?raw=1

I tested on a PDN 3.511 Vista Machine and PDN 4.0 Windows 7.

 

Make sure you overwrote the old DLL.

 

Hovering your mouse over the file in the Effects folder should show this description

Like%20this2.png?raw=1

 

Third possiblility is that PDN was running when downloaded and needed to restart for changes to take effect

Edited by TechnoRobbo
  • Upvote 1

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Posted
Thanks, is my fault,  I was looking for as named Distort this... plugin but the fact is TR's Distort this ...

The plugin name is Distort This not TR's Distort this ...

Z1VxGgW.png

Posted (edited)

Skull, Before I do anything, here's a proof of concept code for the barrel distortion - is this what you meant?

in essence I would apply this code prior to mapping the texture.

 

CodeLab Code

Hidden Content:

#region UICode

double Amount1 = 0.5; // [0,.75] Control Description
#endregion
 
void Render(Surface dst, Surface src, Rectangle rect)
{
    // Delete any of these lines you don't need
    Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt();
    float CenterX = selection.Width/2;
    float  CenterY = selection.Height/2;
    float A1= (float)Amount1;
    ColorBgra CurrentPixel;
 
    for (int y = rect.Top; y < rect.Bottom; y++)
    {
        for (int x = rect.Left; x < rect.Right; x++)
        {
            float ox=(float)x;
            float oy =(float)y;
            float nx = (ox - CenterX) / CenterX;
            float ny = (oy - CenterY)/ CenterY;
            
 
            nx= nx * nx * Math.Sign(nx);
            nx = (nx + 1) / 2 * CenterX * 2;
            ny= ny * ny * Math.Sign(ny);
            ny = (ny + 1) / 2 * CenterY * 2;
            
            nx=nx * A1 + ox - ox * A1;
            ny=ny * A1 + oy - oy * A1;
 
            
            CurrentPixel = src.GetBilinearSampleClamped((int)nx,(int)ny);
            
            dst[x,y] = CurrentPixel;
        }
    }

}

BarrelTest.zip

Edited by TechnoRobbo

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Posted

bloody potato,I haven't upgraded to PDN 4 yet so I can't see them.   :(    With all the other plugins that aren't working in the upgrade I have been hesitant to do it yet. 

 

 

But here is something I made with the new Distort This plugin,started with a gold fish,lol.  

 

th_219-b_zpsfd683dfb.png

 

 

lol,bloody potato,lol,not what i typed,lol

 

                                                              http://forums.getpaint.net/index.php?/topic/21233-skullbonz-art-gallery

  • 3 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...