MadJik

MadJik' all plugins (last updated: 2012-01-01)

Recommended Posts

MadJik    153

ThreadsMarker is an utility to help you to understand that the rectangles of interest aren't strictly sorted, and so we need to adapt the code to work regardless the sequence of the rect or the Y value (I think I'm not clear, but I can't find other words for now).

Read the code and the comments, it should help you to understand this utility:

// Count one by one and color in scale per channel the pixels in the usual x,y loops.
// You could think you will create a gradient, but surprise!

//Set the steps per channel
int Amount1=2;  //[-100,100]Red Step
int Amount2=2;  //[-100,100]Green Step
int Amount3=2;  //[-100,100]Blue Step

// Define the counter to be unique regardless the (multi)threads
[ThreadStatic]
public static int threadCount = 0;

void Render(Surface dst, Surface src, Rectangle rect)
{
 // Count + 1
 ++threadCount;

 ColorBgra CurrentPixel;
 for(int y = rect.Top; y < rect.Bottom; y++)
 {
   for (int x = rect.Left; x < rect.Right; x++)
   {
     CurrentPixel = src[x,y];
     CurrentPixel.R = (byte)((threadCount * Amount1) % 255);
     CurrentPixel.G = (byte)((threadCount * Amount2) % 255);
     CurrentPixel.B = (byte)((threadCount * Amount3) % 255);
     dst[x,y] = CurrentPixel;
   }
 }
}

Share this post


Link to post
Share on other sites
MadJik    153

Yes and no, it's an utility linked to the use of codelab (not really).

I was about to create a new sub menu 'utility' for it (and I could add here the XYCoord as well)

I think nobody will use it as a render!

Share this post


Link to post
Share on other sites
MadJik    153

new.jpg

////Last updates:

Seamless Texture Maker

Tube Effect

New installer, test it and give me some feedback, please!

Check out the first post for details

Share this post


Link to post
Share on other sites
simple    0

OMG! MAJIK! "I just did something naughty in my pants" only kidding :P .

Thanks for these they really have helped :D

Share this post


Link to post
Share on other sites
MadJik    153

:oops: the link to the Package with the setup was wrong! Now you could test it!

New!

Page Curl Effect Plugin (submenu Distort)

pc1.jpg

  • Upvote 1

Share this post


Link to post
Share on other sites
Kat    0

One question from a n00b:

Just downloaded Madjik's Effects.zip ... and is it mandatory that I also download the setup.zip? Don't they go just into the effects and file types folders?

(Sorry if it's the wrong place... I looked up the open zip file and there is no readme there, so I'm a bit insecure now what to do.)

Share this post


Link to post
Share on other sites
Ash    9

If you know how to install the effects using just the DLL file, you don't need the setup version.

Share this post


Link to post
Share on other sites
Kat    0

The central point of my question was:

Don't they go just into the effects and file types folders?

As I'm not exacly sure what you mean to say with your answer (Do I have to go different way than the one I did with the other plugins which were just moved from folder x to folder y?), I'd rather get the setup.zip and see what happens.

But thanks anyway! :D

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