Jump to content

Asmageddon's Strange Bulger & Strange Bulger B


ReMake
 Share

Recommended Posts

When you run these two effects (Strange Bulger & Strange Bulger B from the Asmageddon Tools Pack v3) you get the following error message (also in PDN 3.5.11):

 

SB_err.png

 

I slightly modified script of effects and recompiled them (edit: I made it after reading Incompatible Plugins - an incomplete list (updated for 4.0.5284) topic).

Now, each of them has a new interface:

 

SB_ui.png      SBB_ui.png

 

You can find it under Effects-> Asmageddon Tools

 

For PDN 4.X.X

Strange Bulger & Strange Bulger B.zip

 

Below the sourse code for CodeLab.

 

// Name: Strange Bulger
// Submenu: Asmageddon Tools
// Author: Asmageddon Prince
// Title: Strange Bulger
// Desc: 
// Keywords: strange|bulger
// URL: http://www.getpaint.net/redirect/plugins.html
// Help: Makes strange looking bulge.\n\nRecompiled by ReMake.

#region UICode
double Amount1 = 45; // [-180,180] Angle Chooser
#endregion

void Render(Surface dst, Surface src, Rectangle rect)
{
    int vy,vx;
    int xOffset=0,yOffset=0;
    int Zoom;
    bool Tiled;
    double Variant=Amount1*Math.PI/180;

    Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt();

    Zoom=1000;
    Tiled=true;

    int cX = ((selection.Right - selection.Left) / 2)+selection.Left;
    int cY = ((selection.Bottom - selection.Top) / 2)+selection.Top;

    if(Zoom<=0){Zoom=1;}

    for(int y = rect.Top; y < rect.Bottom; y++)
    {
        for (int x = rect.Left; x < rect.Right; x++)
        {
            vx=cX-x;
            vy=y;
            vx=vx*vx/cX;
            vy=vy*vy/cY;
            vx=(int)(x+(x-vx)*Math.Cos(Variant)+(y-vy)*Math.Sin(Variant));
            vy=(int)(y+(x-vx)*Math.Sin(Variant)+(y-vy)*Math.Cos(Variant));
            vx=((vx-xOffset)*1000)/Zoom;
            vy=((vy-yOffset)*1000)/Zoom;
            if(Tiled==true)
            {
                while(vx<selection.Left) {vx=vx+selection.Right;}
                while(vx>(selection.Right-1)) {vx=vx-selection.Right;}
                while(vy<selection.Top) {vy=vy+selection.Bottom;}
                while(vy>(selection.Bottom-1)) {vy=vy-selection.Bottom;}
            }
            dst[x,y]=src.GetBilinearSample(vx,vy);
        }
    }
}
 

// Name: Strange Bulger B
// Submenu: Asmageddon Tools
// Author: Asmageddon Prince
// Title: Strange Bulger B
// Desc: 
// Keywords: strange|bulger
// URL: http://www.getpaint.net/redirect/plugins.html
// Help: Makes strange looking bulge.\n\nRecompiled by ReMake.

#region UICode
double Amount1 = 20; // [-180,180] Angle Chooser
#endregion

void Render(Surface dst, Surface src, Rectangle rect)
{
    int vy,vx;
    int xOffset=0,yOffset=0;
    int Zoom;
    bool Tiled;
    double Variant=Amount1*Math.PI/180;

    Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt();

    Zoom=1000;
    Tiled=true;

    int cX = ((selection.Right - selection.Left) / 2)+selection.Left;
    int cY = ((selection.Bottom - selection.Top) / 2)+selection.Top;

    if(Zoom<=0){Zoom=1;}

    for(int y = rect.Top; y < rect.Bottom; y++)
    {
        for (int x = rect.Left; x < rect.Right; x++)
        {
            vx=x;
            vy=cY-y;
            vx=vx*vx/cX;
            vy=vy*vy/cY;
            vx=(int)(x+(x-vx)*Math.Cos(Variant)+(y-vy)*Math.Sin(Variant));
            vy=(int)(y+(x-vx)*Math.Sin(Variant)+(y-vy)*Math.Cos(Variant));
            vx=((vx-xOffset)*1000)/Zoom;
            vy=((vy-yOffset)*1000)/Zoom;
            if(Tiled==true)
            {
                while(vx<selection.Left) {vx=vx+selection.Right;}
                while(vx>(selection.Right-1)) {vx=vx-selection.Right;}
                while(vy<selection.Top) {vy=vy+selection.Bottom;}
                while(vy>(selection.Bottom-1)) {vy=vy-selection.Bottom;}
            }
            dst[x,y]=src.GetBilinearSample(vx,vy);
        }
    }
}

 

This is the icon for both effects: 31.png

 

For CodeLab v1.8 remove these three lines:

// Desc: 
// Keywords: strange|bulger

// Help: Makes strange looking bulge.\n\nRecompiled by ReMake.

For PDN 3.5.11 (also compatible with PDN 4.X.X)

Strange Bulger & Strange Bulger B 3.5.11.zip

 

P.S. The author of these effects -  Asmageddon Prince, I only recompiled them.

  • Upvote 5
Link to comment
Share on other sites

This forum is for publishing only.  Please post this error in the Asmageddon pack thread.

 

Thanks.  Locked.

Edited by david.atwell
Redacted! My apologies. Reading too quickly and thought it was just an error report!

 

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

Thank you for reviving these plugins ReMake!

I edited the link to the list of incompatible plugins - it was pointing to the CodeLab thread.

  • Upvote 1
Link to comment
Share on other sites

Redacted my original post!  My apologies.  Reading too quickly and thought it was just an error report!

  • Upvote 1

 

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

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.

 Share

×
×
  • Create New...