Illnab1024

Alpha Mask Import Plugin (2.0)

Recommended Posts

Sweet...an update! Thanks Illnab! :D

I am really late to this "game" and the Alpha Mask 2.0 plugin is no longer available. Would someone mind emailing it to me at Orgsitesinfo@aol.com? This would be a very helpful tool!

Currently using Paint.Net v3.58.

-Scott

Share this post


Link to post
Share on other sites

Thanks for creating this plugin. This is the ONE-AND-ONLY feature missing in Paint.NET that kept it from being my primary editor of choice for making game textures (normal maps in particular...as noted by my tutorial below).

If I can make a suggestion, please include readme files in your archives. They are very important since they will become detached from their source location (such as this thread).

Including a readme can provide very helpful information as well as keeping credits with the file and your permissions/licensing info too.

Here is a readme file I put together and have with my local copy. Feel free to use.

Name: Alpha Mask Import Plugin
Version: 2.0
Date: 10/15/2009
Author: Illnab1024
Source: http://forums.getpaint.net/index.php?showtopic=1854

Description
===========
This plugin allows you to import an image from a file or the clipboard and make it an alpha mask. If the image has color, it will be converted to greyscale.

The supported image types at the moment is kinda sketchy, but the kicker is it works for stuff copied inside Paint.NET, which is 99% of this plugin's use, anyway.

NOTE: The Effects API cannot handle layer information so the image used must be flat and non-layered.

Installation
============
Copy the .dll file to the "Effects" sub-folder under Paint.NET's installation folder.

Example:

C:\Program Files\Paint.NET\Effects\AlphaMask.dll

Tutorial
========
Let's say we have a color map (texture) and a normal map and we need to get a slightly darker version of the color map copied into the alpha channel of the normal map so we can save it to DDS (DXT5+Mipmap) format.

1. Open both files in Paint.NET (you should see two thumbnail images in the top-right corner)
2. Select the color map image, click Adjustments --> Brightness and reduce the brightness by -20 and click OK
3. Press CTRL + A to select the entire image and press CTRL + C to copy it into memory.
4. Select the normal map image, click Effects --> Alpha Mask and make sure "paste from clipboard" is checked and click OK
5. Your normal map now looks partially transparent which means the alpha mask worked.  Save your image in the native .pdn format so you can edit it later if necessary.
6. Now save your image to DDS format and choose DXT5 format and make sure "Generate Mip Maps" is checked and click Save.

Credits
=======
Clipboard idea courtesy BoltBait.
The file import is based from pleska's Photo Flood Fill Plugin.

Thanks,

LHammonds

Edited by LHammonds
spam
  • Upvote 1

Share this post


Link to post
Share on other sites

Hi everybody,

 

this is a great plug-in. I was exactly looking for something like that.

I like to apply maskes like keyholes, of blur-style frames on the pic and thats what i can do with it.

 

If i may suggest some enhancement:

If the mask and the picture are not of the same size, the mask will be "tiled" amoung the picture.

It would be very handy, if you could choose between stretch and tile.

 

Now, I manually adapt the mask size to the pic size, before i apply it. This is not a big deal, however, it would be nice, if the plug-in did that for me :-)

 

Best regards

Share this post


Link to post
Share on other sites

I joined this forum just to say thank you, the plugin is awesome!! I've been using an alternate program to do this effect for ages. This makes things so much easier :)

Share this post


Link to post
Share on other sites

An update to support HighDPI (Screen scaling > 200%) would be fine. In the moment the plugin is only usable if you know the settings.

 

post-79572-0-31252700-1438541063_thumb.j

Share this post


Link to post
Share on other sites

have installed alphamask.dll into paint.net/effects folder.  Attempting to use, have followed AWholeCanOfCranky's youtube tute but get to 'copy from clipboard' in doing the alphamask but the option is not available - have invert mask and mix alpha as the only options.

 

running windows 7, 32bit; and paint.net v4.0.9

 

if alphamask is showing when running paint.net I assume it is in the correct folder ie. paint.net/effects.  Are there any other .DLLs required?

 

any and all assistance would be appreciated.

Share this post


Link to post
Share on other sites

I'm having trouble installing this plugin , I've tried several times and it doesn't seem to be working .

Does it go in the effects file ? As it doesn't show up there .

Is there a different plugin I should be using for Alpha mask ?

I have PDN 4.0.19

 

Edit - Found it !  Please ignore .

Edited by TooOld

Share this post


Link to post
Share on other sites

I am trying some of the tutorials and they require Alpha Mask v 2.0.

The link for that version is broken so I could only download v 1.14 which does not have the paste from clipboard option.

Is the Alpha Mask v 2.0 file available somewhere else?

Share this post


Link to post
Share on other sites

@Eagle1, it seems to be a common problem for files uploaded through the forum.

 

Just download the file on the first post and save it on your desktop. Then re-name it to anything you like and add the ".zip" extention. You should then be able to extract the dll.  

Share this post


Link to post
Share on other sites
On 12/28/2017 at 1:48 PM, Eagle1 said:

I am trying some of the tutorials and they require Alpha Mask v 2.0.

The link for that version is broken so I could only download v 1.14 which does not have the paste from clipboard option.

Is the Alpha Mask v 2.0 file available somewhere else?

 

On 12/28/2017 at 2:25 PM, Djisves said:

@Eagle1, it seems to be a common problem for files uploaded through the forum.

 

Just download the file on the first post and save it on your desktop. Then re-name it to anything you like and add the ".zip" extention. You should then be able to extract the dll.  

 

Hi Djisves, 

Thanks for that info. I managed to get the file successfully using your tip. 

Share this post


Link to post
Share on other sites
On 12/28/2017 at 4:25 AM, Djisves said:

it seems to be a common problem for files uploaded through the forum.

 

We lost some filenames during a forum upgrade. Sorry about that.

 

I have corrected the download link in the first post.

  • Upvote 1

Share this post


Link to post
Share on other sites

I've just been using a tutorial here for creating gold text and installed both this Alpha Mask and the Multi Color Gradient ones recommended for the purpose.

 

I've installed plenty of Paint.net DLL plugins/packs manually before, its not rocket science, but these are the first ones I've used that have just been added straight to the main "Effects" menu. Indeed the tutorial says the "Alpha Mask" is found in "Effects > Object" and the Multi Color Gradient in "Effects > Render". That makes sense too because there are other related plugins in "Object" like Switch Alpha and Paste Alpha and similarly in "Render" there is another Gradient plugin.

 

The question is there anything to be concerned about in them not having installed where they 'should' be? As far as I've been able to test them so far they're working correctly. I've tried deleting and re-installing but when Paint.net reboots they're still in the same place. So is this just because they're oldish plugins and not as compatible with recent Paint.net builds as they were meant to be?

 

 

 

 

 

Share this post


Link to post
Share on other sites
6 hours ago, IHaveNoName said:

... they're still in the same place. So is this just because they're oldish plugins and not as compatible with recent Paint.net builds as they were meant to be?

 

No, paint.net version compatibility has nothing to do with menu placement. Plugins are placed in the menu that the developer(s) have designated in their code.

If a tutorial or some documentation claims they should be in another menu, that information is simply incorrect or out-of-date.

Share this post


Link to post
Share on other sites

Thanks for the replies.

 

I installed the v2.0 Alpha Mask version which is what is linked to by the OP in the first post in this thread. The v1.1 indeed is marked as incompatible with PDN 4 > which is why I installed the v2.0, assuming that it was the last version and the one which would have been later updated for PDN 4 compatibility. As said it does seem to function correctly but I've only done minimum testing.

 

The v1.1 version linked to by Ego Eram Reputo is as mentioned there too,  like the tutorial I was using said,  being installed in "Effects > Object". But v2.0 installs as I described 'loose' in the "Effects" menu likewise the completely unrelated Multi Color Gradient one.

 

But if this is normal and that's where the two developers decided they should be instead of their earlier versions location then there is nothing to be concerned about presumably.  However isn't it unusual that they changed the location?

 

Edit1

I've been trying out that gold text tutorial again to test everything and it appears there is actually a problem but not with the Alpha Mask, its the Multi Color Gradient plugin that's not working properly. It should just apply the graduated colour to the selected text mask but it doesn't. It behaves weirdly so I just tested it on a completely new image and it simply didn't work.

 

You can use the PDN's  built in two colour gradient tool + other tools/plugins to create a similar effect to that suggested in the gold text tutorial anyway. But it is a pity that multi-color plugin doesn't work as I can think of other situations where it would have been very useful.

 

Edit2

There's irony; just tried and failed to install the Multi Color Gradient plugin on my WinXP VM using PDN v3.5.11 (last version that supported XP). I thought that may have been because it was a basic PDN installation so I did not have an Effect > Object menu. So I installed BoltBait's Plugin pack for v3.5.11, no problems with that, everything working, Effects > Object menu added.

 

But the Multi-Color Gradient plugin installed to Effects still didn't appear anywhere let alone Render where it apparently is meant to be.

 

PDN v3.5.11 too old for this plugin version?

Edited by IHaveNoName
Additional Information

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