Sign in to follow this  
BoltBait

BoltBait's Object Inner Shadow - Version 3.0 - Updated Jan 31, 2015

Recommended Posts

As requested here... http://forums.getpaint.net/index.php?/topic/31461-b

Object Inner Shadow Plugin

ObjectInnerShadowUI.png

Download here for paint.net 4.0+:

http://forums.getpaint.net/index.php?/topic/28488-b

Download here for Paint.NET 3.5.11:

InnerShadow3511.zip

I'll edit in a nice description of this later when I'm not so tired. You all know what to do.

For the curious... (This does NOT work in CodeLab, sorry):

Hidden Content: Source code for v3.0

History:

v1.0 - Initial Release

v2.0 - Speed up rendering for all but the first two controls

v3.0 - Corrected "keep only shadow" alpha calculation

post-44727-0-31855900-1422502148_thumb.p

  • Upvote 9

Share this post


Link to post
Share on other sites

U.I. looks good, results look good and thanks for the source code too. B)

(I'll try and compile it to run on 3.5.11 ;))

Share this post


Link to post
Share on other sites

Nice compact code!!

Coming from the Plugin of the Year Author, you're making me blush. :D

Thanks.

Nice pics everyone! Glad you like it.

I'm going to try to speed it up before I put it into my plugin pack.

InnerShadowBevel.png

Share this post


Link to post
Share on other sites

OK, so all 32 people that downloaded the first version, time to upgrade!

Updates:

-The first 2 controls in the UI take some time to calculate, same as before.

-The other controls in the UI are MUCH faster.

Please test the hell out of it. If it looks good, I'll add it to my plugin pack.

Wut?

Well, if you change either Angle or Distance the calculations are done in a single thread... so it is slow. If you change the other controls the calculations are done in multiple threads... so the calculations are faster. This is a change from the first version where ALL the calculations were done in a single thread.

Share this post


Link to post
Share on other sites

Hello. I really like the faster speeds for some of the settings, the plugin is looking better and better. :)

Here is some more feedback though...

Most of the plugin is looking pretty good, I love all of the available settings and features it has to offer. But I do want to point out that the option to keep only the shadow (uncheck "keep original image") gives the shadow rough outer edges.

InnerShadowTestShadowOnly_zpsga5v80hm.pn

Share this post


Link to post
Share on other sites

I do want to point out that the option to keep only the shadow (uncheck "keep original image") gives the shadow rough outer edges.

If only there was a plugin to... uh... feather those edges.

:D

 

I'm afraid that this is just something you'll have to learn to live with.  There is no easy way to calculate a proper edge alpha.

Share this post


Link to post
Share on other sites

Since the shadow has a blur to it, when you apply feather it takes away the hard outer edge, which then lessens the “inner shadow" appearance and gives the shadow an overall blurry appearance. Other edge smoothing plugins don't seem to smooth just the hard outer edge either, they smooth everything, which effects the "inner shadow" area.

Here is a sample image of trying to use feather.

InnerShadowTestFeather_zpslvw2axan.jpg

 

I really like the feature to have the shadow only, as it allows me to place objects under the shadow layer and make cool layering effects.

Edited by Cc4FuzzyHuggles

Share this post


Link to post
Share on other sites

I see it only works on the latest version of pdn.   ;)

I compiled it against 4.0. So it should work on 4.0+.

 

It contains certain features that are only supported on 4.0, so that's the reason.  I posted the source, so you can try to change it to work on 3.5.11 if you like.

Share this post


Link to post
Share on other sites

I'm afraid that this is just something you'll have to learn to live with.  There is no easy way to calculate a proper edge alpha.

It's a shame to hear that. I was hoping for an all in one plugin. I thought some kind of anti-aliasing might be possible or some kind of one-sided AA's assistant thing. I wasn't thinking to add more settings, just a behind the scenes edge smoothing processes.

 

But alright, I guess the Alpha Mask plugin is still going to be my best friend for cutting off ugly edges.

Edited by Cc4FuzzyHuggles

Share this post


Link to post
Share on other sites

I do want to point out that the option to keep only the shadow (uncheck "keep original image") gives the shadow rough outer edges.

 

There is no easy way to calculate a proper edge alpha.

Turns out that was a lie. I have a solution to that problem.  I'll post a fix tonight.

I see it only works on the latest version of pdn.

I'll post a version for 3.5.11 tonight.

Share this post


Link to post
Share on other sites

Turns out that was a lie. I have a solution to that problem.  I'll post a fix tonight.

Posted.

I'll post a version for 3.5.11 tonight.

Posted.

Share this post


Link to post
Share on other sites

Thanks! It is going to be a favorite for its flexibility. Thanks for includding the requested options. The last version renders very fast.  ;)

Share this post


Link to post
Share on other sites

I just added a similar plugin to my plugin pack. Only this one bases the shadow on the selection outline (Marching Ants).

The only place to get it is in my plugin pack.

Enjoy.

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
Sign in to follow this