Paint.NET

Welcome to the Paint.NET forum!
It is currently Sun Nov 22, 2009 10:55 am

All times are UTC


Forum rules


Questions or problems with plugin installation? Click here.



Post new topic Reply to topic  [ 60 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Displacement and Alpha mask plugin!(07/06/08:v1.4.1.1)
PostPosted: Tue May 13, 2008 5:06 pm 
Offline
User avatar

Joined: Sun Dec 31, 2006 8:53 pm
Posts: 85
The plugin distorts an image based on the light values of the mask. This is useful for mapping images to other surfaces.

Before
Image

After!!!
Image

example2: Before
Image

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


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

drew wrote:
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:
Image

After plug-in/tutorial:
Image


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.

Ash wrote:
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.


Attachments:
File comment: DLL (plugin)
Alpha-Displacement Mask.zip [9.77 KiB]
Downloaded 4702 times
File comment: Source (C# VS2008)
AlphaDismask.7z [45.67 KiB]
Downloaded 1270 times


Last edited by Bleek II on Sun Jul 06, 2008 4:54 pm, edited 34 times in total.
Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Tue May 13, 2008 6:02 pm 
Offline
User avatar

Joined: Sun Aug 12, 2007 3:43 am
Posts: 3595
Do you have any screenshots?

_________________
Image


Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Tue May 13, 2008 10:26 pm 
Offline
User avatar

Joined: Sun Dec 31, 2006 8:53 pm
Posts: 85
Mike Ryan wrote:
Do you have any screenshots?


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


Last edited by Bleek II on Wed May 14, 2008 12:33 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Tue May 13, 2008 10:43 pm 
Offline
User avatar

Joined: Sat May 26, 2007 2:44 pm
Posts: 809
Location: Portugal
this is simply amazing great job bleek :D

_________________


Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Tue May 13, 2008 10:46 pm 
Offline
Forum Admin and 2008 "Proton Award" Winner
User avatar

Joined: Tue Feb 06, 2007 9:45 pm
Posts: 9483
Location: Indianapolis, IN (39°46′5.88″N 86°9′29.52″W)
This is BRILLIANT. Photoshop's displacement tool isn't even half this easy.

_________________


Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Tue May 13, 2008 10:58 pm 
Offline
User avatar

Joined: Tue Jul 25, 2006 10:12 pm
Posts: 3118
Location: Rochester, NY
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

_________________
Image
Take responsibility for your own intelligence. ;) -Rick Brewster


Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Wed May 14, 2008 12:01 am 
Offline
User avatar

Joined: Sun Dec 31, 2006 8:53 pm
Posts: 85
barkbark00 wrote:
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.


Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Wed May 14, 2008 12:26 am 
Offline

Joined: Fri Sep 14, 2007 11:09 pm
Posts: 1953
I love it. Bless you, child! Bless you!

_________________
http://synthastic.deviantart.com
http://myspace.com/distodisco

Lockerz invites are available, PM me ;)


Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Wed May 14, 2008 12:39 am 
Offline
Site Admin, 2008 "Monet" Award Winner, and 2008 King of Paint.NET
User avatar

Joined: Fri Dec 22, 2006 8:29 am
Posts: 5708
Location: http://tinyurl.com/6kqz9v
Nice, thank you!

This should take up much less screen.


Attachments:
UI.jpg
UI.jpg [ 58.22 KiB | Viewed 507 times ]

_________________
Image
All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]
Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Wed May 14, 2008 1:13 am 
Offline
User avatar

Joined: Sun Dec 31, 2006 8:53 pm
Posts: 85
Ash wrote:
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.


Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Wed May 14, 2008 1:17 am 
Offline
Site Admin, 2008 "Monet" Award Winner, and 2008 King of Paint.NET
User avatar

Joined: Fri Dec 22, 2006 8:29 am
Posts: 5708
Location: http://tinyurl.com/6kqz9v
You are correct ;)
Image editing is more my thing.
I believe either you or someone else would be much better at doing this UI :)

_________________
Image
All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]


Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Wed May 14, 2008 1:19 am 
Offline
User avatar

Joined: Sun Aug 12, 2007 3:43 am
Posts: 3595
Bleek II wrote:
Ash wrote:
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...

_________________
Image


Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Wed May 14, 2008 1:27 am 
Offline
Site Admin and 2008 "Homer Simpson Award for Humor" Winner
User avatar

Joined: Tue Aug 02, 2005 10:27 pm
Posts: 6662
Location: California, USA Weather: Sunny
Mike Ryan wrote:
You should use IndirectUI...

IndirectUI does not support a "Browse" button.

_________________
Warning: The above post contains sarcasm. Use as directed.
Image
BoltBait's Plugin Pack | CodeLab | More... and a Dominoes Computer Game


Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Wed May 14, 2008 1:30 am 
Offline
User avatar

Joined: Sun Aug 12, 2007 3:43 am
Posts: 3595
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?

_________________
Image


Top
 Profile  
 
 Post subject: Re: Displacement and Alpha mask plugin!(05/13/08)
PostPosted: Wed May 14, 2008 1:31 am 
Offline
Site Admin and 2008 "Homer Simpson Award for Humor" Winner
User avatar

Joined: Tue Aug 02, 2005 10:27 pm
Posts: 6662
Location: California, USA Weather: Sunny
No, you can not.

_________________
Warning: The above post contains sarcasm. Use as directed.
Image
BoltBait's Plugin Pack | CodeLab | More... and a Dominoes Computer Game


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 60 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: georgian and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosted by Forumer & phpBB

Get your Forumer™ today!

Adding a forum to your website is a great way to get return visitors.

» Get your own Free Forum!

Terms of Use

Privacy Policy

Report Abuse

Copyright © 2003-2009 Forumer. All Rights Reserved. | Copyright © paint.NET