Bleek II

Displacement and Alpha mask plugin!(07/06/08:v1.4.1.1)

88 posts in this topic

The plugin distorts an image based on the light values of the mask. This is useful for mapping images to other surfaces.

Before

disn.jpg

After!!!

disy.jpg

example2: Before

godess2un.jpg

example2: after i mapped the paint to the brick using displacement and added some shadow highlights

godess2mapped.jpg

follow the this link for more on displacement (highly recommended)

http://revision3.com/pixelperfect/displacement/

^^Don't miss the video^^ it's been here from the start. high rez downloads to the right of the stream

viewtopic.php?f=15&t=24598&p=181513#p181513

^^Also read Drew's Paint.NET version!!^^ product below

(Japanese) http://paintnet.web.fc2.com/plugin/okikae/admask.htm

That is a great video. I actually found it before you posted that because I was searching frantically to understand how to use it. I've been playing around with this plug-in some, and I made a waving flag like that guy's.

Original from http://www.thegio.net/kazakhstan/american-flag.jpg:

flag2.png

After plug-in/tutorial:

flag.png

This plugin is based off the the AlphaMaskImport plugin.

Credits

pleska: File Handling

Illnab1024: Alpha Mask

MadJik: Coding help (lots of it)

Bleek II: Displacement

V1.0

release

V1.1

UI:

- smaller form

- reset buttons

- number boxes

V1.1.1

-UI issue fixed

V1.1.1.1

-fixed 1 off bug

V1.2.0.0

-Added neutral value control

v1.2.1.0

-fixed backwards neutral value

-UI update

-faster & cleaner displacement code

v1.3.0.0

-edge controls

v1.3.0.1

-UI font colors weren't the same on every system

v1.4.1.1

-fixxed dumb issues in 1.4.0.*

-You can now clip with the alpha vaules of masks

Also see:

My gallery: viewtopic.php?f=26&t=23561

ScreenPixel(a not very useful plug in): viewtopic.php?f=16&t=23620

==========================================================================

Edit by Ash:

Seems people usually don't read all the way to page3.

My easy to understand tips about this useful plugin.

Bottom layer=Image A

Top layer=Letters

Run the plugin on top layer, use Image A as "mask"

Adjust setting in plugin.

See letters change.

Alpha-Displacement Mask.zip

0

Share this post


Link to post
Share on other sites
Do you have any screenshots?

I do!! Also, I recommend everyone of you to watch the video I linked to.

0

Share this post


Link to post
Share on other sites

This is BRILLIANT. Photoshop's displacement tool isn't even half this easy.

0

Share this post


Link to post
Share on other sites

Great job!

GUI needs some work. Reset buttons would be awesome. Also, I'm a fan of pixel based distortion as opposed to the current % based distortion.

Otherwise, nice job.

As far as function goes, this is my new favorite plugin. :D

0

Share this post


Link to post
Share on other sites

GUI needs some work. Reset buttons would be awesome. Also, I'm a fan of pixel based distortion as opposed to the current % based distortion.

Good points. This was the first time I used the windows form builder in VS 2008. I'm use to text based c++ programing. About the % based distortion, it really works best that way. I'll explain. The plugin reads each of the map's pixel luminosity values ranging from 0 to 255. The closer that value is to 0 the more it moves it in one direction and closer to 255 it is the more it moves it to the other direction, 127 is neutral. At 100% it moves each pixel the range value that's on the map but that's a bit of over kill in most cases so % works well to tune the process. However, in most cases I agree, I like to know how many pixels things are moving by. You can think of it as a range in this case 100% = -128 to 128, 50% = 64 to 64, and so on... The source code is there if you would like a better UI, I am lazy. I will post any updates to the plugin that others make and add you to the credits.

0

Share this post


Link to post
Share on other sites

Nice, thank you!

This should take up much less screen.

2868_0d5fab72be9a0fcb1db5364f9a742253

0

Share this post


Link to post
Share on other sites
Nice, thank you!

This should take up much less screen.

If that's a complied plugin, please post! However I believe that's an image edit, right? The reason those bar are so large is because I didn't want to spend the time figuring out how to get those nice input boxes next to the bars in windows form builder. So to give the user more control... I made them huge!... yeah I'm lazy, also I have my laptop screen here set at 1600x1050 so it's not to bad for me.

0

Share this post


Link to post
Share on other sites

You are correct ;)

Image editing is more my thing.

I believe either you or someone else would be much better at doing this UI :)

0

Share this post


Link to post
Share on other sites
Nice, thank you!

This should take up much less screen.

If that's a complied plugin, please post! However I believe that's an image edit, right? The reason those bar are so large is because I didn't want to spend the time figuring out how to get those nice input boxes next to the bars in windows form builder. So to give the user more control... I made them huge!... yeah I'm lazy, also I have my laptop screen here set at 1600x1050 so it's not to bad for me.

You should use IndirectUI...

0

Share this post


Link to post
Share on other sites
You should use IndirectUI...

IndirectUI does not support a "Browse" button.

0

Share this post


Link to post
Share on other sites

I am regarding the sliders issue he was refering to. Can you not use IndirectUI and regular UI at the same time in a plugin?

0

Share this post


Link to post
Share on other sites

No, you can not.

0

Share this post


Link to post
Share on other sites

:shock: That is a disadvantage. Guess one learns something new everyday.

0

Share this post


Link to post
Share on other sites

I've updated the plugin as asked by many users.

I thank you all for the support!

0

Share this post


Link to post
Share on other sites

Even better, thank you for your time :)

0

Share this post


Link to post
Share on other sites

Much cleaner! :D

Bug:

Hitting 'Reset' for X or Y isn't cycling the preview render...

0

Share this post


Link to post
Share on other sites

Okay, I've uploaded a fixed Dll. I missed four little lines. It was dumb of me not to test the Dll on an image before release. But I'd like to see Microsoft have a 10min response time, haha I think not (*feels a little bit better about looking stupid*)

0

Share this post


Link to post
Share on other sites

you could add an anti-aliasing check box or so, very simple so that some jagged edges were corrected on the rendering

0

Share this post


Link to post
Share on other sites
you could add an anti-aliasing check box or so, very simple so that some jagged edges were corrected on the rendering

Please don't ever use "anti-aliasing" and "very simple" in the same sentence. Thank you. :roll:

0

Share this post


Link to post
Share on other sites
you could add an anti-aliasing check box or so, very simple so that some jagged edges were corrected on the rendering

Please don't ever use "anti-aliasing" and "very simple" in the same sentence. Thank you. :roll:

Sorry. I know i should not but what i meant (sarcasms aside) is that we don't need another feather plugin, just something to soften the edges.

and btw BoltBait when are you releasing an update to feather to correct that problem with the line that remained after running the plugin?

0

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