Jotaf

Grim Color Reaper plugin

53 posts in this topic

Updated 9/10/2011:

Right, it turns out that the original plug-in is no longer compatible with PDN. I fixed it, and also decided to make it open-source! This way I can take contributions to improve this, and maybe it will also help improve other plug-ins with this sort of alpha handling.

The code is only a few lines of code long, but it uses (*gasp!*) MATH! ;) Check it out if you're the coder type.

The attached zip file includes both the DLL and source code (which you can open with CodeLab).

Original post:

Hi there! Long time lurker, first time poster. PDN has been my favorite graphics tool for quite some time.

There's the old problem of recovering alpha information lost in compositing, for example when you *ahem* borrow images from the web. Say, smooth edge pixels on a black background; you'd prefer if they were transparent. A few plugins are available, and they do OK 90% of the time, but they fall short in recovering the original color information...

See, it's not enough to figure out the alpha channel. You also have to use it to change the colors so they will look good when compositing again. Otherwise, there would be a visible halo (the color of the background) around the edge. AFAIK this happens with all existing plugins to eliminate backgrounds. So, I decided to make this one.

I've got some pictures to demonstrate the effect and illustrate what I mean about the color correction :)

GrimColorReaper.zip

post-59750-131830720943_thumb.jpg

post-59750-131830729087_thumb.jpg

post-59750-131830729863_thumb.jpg

Edited by Jotaf
1

Share this post


Link to post
Share on other sites

nice plug in. just downloaded it. the problem is, after you kill the colour, there will be some lines around the edges of the images. you should kill those lines too. like the feather plug in

0

Share this post


Link to post
Share on other sites

I like the idea, how could you choose the color that want to kill it, can you post some more screenshots of the plugin GUI please?

0

Share this post


Link to post
Share on other sites

I would suggest a slightly deferent name, as there is another plugin with that name. Right now I have two plugins with the same name.

0

Share this post


Link to post
Share on other sites

You're already using IndirectUI, so why not use the Color Wheel control instead of a dropdown?

0

Share this post


Link to post
Share on other sites

Thank you yy10 and yellowman, and everyone else for the feedback!

You're already using IndirectUI, so why not use the Color Wheel control instead of a dropdown?

I considered it, but then found that for this application it's a waste of space. Most of the time you'll choose the color with the color picker or use a predefined one like black or white; so why would you need the color wheel to adjust it? It would just be ignored. (IMO; unless you guys argue otherwise...)

I would suggest a slightly deferent name, as there is another plugin with that name. Right now I have two plugins with the same name.

Damn, that's unfortunate. I thought it was original enough. Any suggestions?

nice plug in. just downloaded it. the problem is, after you kill the colour, there will be some lines around the edges of the images. you should kill those lines too. like the feather plug in

Hm, I don't really know what you mean. It's supposed to eliminate those kinds of artifacts. If some transparent colors remain (ie, small patches of very transparent pixels), you can cut them off automatically with the second slider.

Can somebody confirm if this is similar to a Color to Alpha plugin?

It's similar to all those plugins, the main advantage is the color correction that prettifies a lot the pixels with modified alpha. See the screenshot (the "no color correction" shot is what you'd get with other plugins).

0

Share this post


Link to post
Share on other sites
I would suggest a slightly deferent name, as there is another plugin with that name. Right now I have two plugins with the same name.

Damn, that's unfortunate. I thought it was original enough. Any suggestions?

how about Color Murderer? :D

0

Share this post


Link to post
Share on other sites
I would suggest a slightly deferent name, as there is another plugin with that name. Right now I have two plugins with the same name.

Damn, that's unfortunate. I thought it was original enough. Any suggestions?

how about Color Murderer? :D

Good, good. Color Sniper? :lol:

("I was thinking about something a bit less blasphemous." -Ned Flanders)

0

Share this post


Link to post
Share on other sites

Let me just leave you with a couple more pics, I hope it's ok :wink:

31114_801257740f20df219dc32fde1f8edd33

31114_975abc9a59d7017854b06d421c9e1bc1

0

Share this post


Link to post
Share on other sites
I would suggest a slightly deferent name, as there is another plugin with that name. Right now I have two plugins with the same name.

Damn, that's unfortunate. I thought it was original enough. Any suggestions?

Check the Plugin Index for the current list of plugins. The index has them listed by name and author.

BTW: a revision is due out this weekend.

Grim Color Reaper ? :D

0

Share this post


Link to post
Share on other sites
The index has them listed by name and author.

BTW: a revision is due out this weekend.

Grim Color Reaper ? :D

Hey thanks for the tip! That would be a pimpin' name too, since we're talking about taking that poor color's life.

Backgroundless?

This is a bit more serious so I'll have to consider it too :)

Feel free to add any more suggestions, I'm afraid I'll be silent for about a week but when I get back I'll change the name to one of those (unless another one pops up in the meanwhile!).

0

Share this post


Link to post
Share on other sites

This is basically just chroma key for any color. Why not call it Chroma Key?

"Color to Alpha" was another simple suggestion.

Is "Isolate" taken?

0

Share this post


Link to post
Share on other sites

We already have plugins called "Chroma Key" and "Color to Alpha". Check out the latest revision of the plugin index: viewtopic.php?f=16&t=30570

"Isolate Color" might work as we only have "Isolate Lineart", but does this plugin merely isolate or completely extinguish the color?

0

Share this post


Link to post
Share on other sites

Hmm, the plugin has to do with transparency and specific colors, Decolourize?

0

Share this post


Link to post
Share on other sites

Thanks for all the suggestions, I went with Grim Color Reaper out of a whim mostly (thanks EER!), and also because I didn't wanna waste the cool icon. Unless most of you think it's too silly or there's an even better name around. Oh and it looks good next to a skull icon :D

The code is pretty small, you'll be surprised! What's really special are the formulas for correcting the color, although they're not rocket science. Is there a real interest in seeing the code? If there is, I'll post it whenever I get back to a place with net access again (summer vacations are when I get to detox myself from the internet addiction!).

0

Share this post


Link to post
Share on other sites
does this plugin merely isolate or completely extinguish the color?

The idea is that it completely extinguishes the color, not only through alpha but through color modification also. So I tried to convey that through the naming too :)

0

Share this post


Link to post
Share on other sites
Thanks for all the suggestions, I went with Grim Color Reaper out of a whim mostly (thanks EER!), and also because I didn't wanna waste the cool icon. Unless most of you think it's too silly or there's an even better name around. Oh and it looks good next to a skull icon :D

You should go with just Color Reaper.

0

Share this post


Link to post
Share on other sites

What's wrong with the "Grim Color Reaper" GCReaper.gif ? coughmysuggestionandthat'sa16x16imagetoocough

0

Share this post


Link to post
Share on other sites

EER: That is a 16x16 image, thanks! Where did you get it? I found the skull online but had to re-paint over it in order to not steal it, and also because when simply resizing the original it looked funkay!

(Since teh pixels change, tis not the same!!1 :mrgreen: )

Stuart: Color Reaper is a bit... fanboyish, don't you think? Like your 10-yr-old makes a drawing of a robot with missiles and calls it Color Reaper. Oh well it might be just my imagination! Grim Color Reaper is a nice name IMO, but I'm sure it's not for everyone's taste (what is?).

Also, you're welcome gingerfreak, I'm glad you find it useful!

0

Share this post


Link to post
Share on other sites
EER: That is a 16x16 image, thanks! Where did you get it?

I whipped it up in PDN of course :D

I quickly sketched the "Reaper" on paper (with a pencil no less) over a 16x16 grid, then transferred that image to a 16x16 canvas in PDN. A bit of colour, antialiasing, duplicate the layer & blurred the lower layer. Flatten & save. That's it really.

Please use it with my blessing if you like it. That was my intention in posting it.

1

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