Sign in to follow this  
Red ochre

Pointers and speed (re. edge-shader for objects)

Recommended Posts

The plugin could be made more efficient for small selections by only computing the distances for edge pixels within the maximum distance of the selection edge. The distance buffer size could also be decreased to either the selection size plus, in each direction, twice the maximum distance, or the twice the maximum value of the maximum distance. The smaller version would require allocating a new buffer if the maximum distance increased, so I think the second version is probably better.

Share this post


Link to post
Share on other sites

I noticed that the Fill8 flood fill routine still uses the old, ugly method of pushing phony spans at the beginning, which doesn't even always work right if the seed pixel isn't filled. I never used the Fill8 routine much, so I guess I never got around to fixing it. Darn! Now I've got to figure out how the silly thing works again.

Share this post


Link to post
Share on other sites

Thanks MJW - will study what you've done later.

Re: the original version - I got the list<T> thing working on Pdn4 with Rick's "..Rendering.PointInt32" struct.
(The alternative version I was thinking of produces a different result - so will not pursue that).
Also, finally got VS working on windows 10!(Though, ideally the finished effect will be 3.5.11 compatible).
I'm hoping to restrict how much of the edgepixels list gets examined for each pixel, based on 'maxdistance' too. Something, it seems, that you've picked up on already.

That may also allow checking each 'area' of the edgepixels list for both minimum and maximum distance - which should allow it to automatically get a full range of shades between edges.

Glad you can see the potential Eli!

Share this post


Link to post
Share on other sites

@MJW and @Ego Eram Reputo

 

One of Paint.Net's hidden treasures. 

After using the MJWEdgeshader version plugin several times on my latest project I discovered this plugin has not been officially released but it has been mentioned in several threads as being very usefull.

This would also explain why it can't be found in the index.

Sorry to awaken after 3 years - but I think it's worth it.  B)

  • Like 1

Share this post


Link to post
Share on other sites
34 minutes ago, AndrewDavid said:

One of Paint.Net's hidden treasures.

 

I use this plugin frequently...it is a hidden treasure!  :)

Share this post


Link to post
Share on other sites

I'll try to officially release it soon. Unfortunately, I haven't seen co-developer @Red ochre around the PDN forum for quite a long time, but I'm pretty sure he would have no objection.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this